DetachClusterNodeVolume - Amazon SageMaker

DetachClusterNodeVolume

Detaches your Amazon Elastic Block Store (Amazon EBS) volume from a node in your EKS orchestrated SageMaker HyperPod cluster.

This API works with the Amazon Elastic Block Store (Amazon EBS) Container Storage Interface (CSI) driver to manage the lifecycle of persistent storage in your HyperPod EKS clusters.

Request Syntax

{ "ClusterArn": "string", "NodeId": "string", "VolumeId": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

ClusterArn

The Amazon Resource Name (ARN) of your SageMaker HyperPod cluster containing the target node. Your cluster must use EKS as the orchestration and be in the InService state.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 256.

Pattern: arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:cluster/[a-z0-9]{12}

Required: Yes

NodeId

The unique identifier of the cluster node from which you want to detach the volume.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: i-[a-f0-9]{8}(?:[a-f0-9]{9})?

Required: Yes

VolumeId

The unique identifier of your EBS volume that you want to detach. Your volume must be currently attached to the specified node.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: vol-[a-f0-9]{8}(?:[a-f0-9]{9})?

Required: Yes

Response Syntax

{ "AttachTime": number, "ClusterArn": "string", "DeviceName": "string", "NodeId": "string", "Status": "string", "VolumeId": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

AttachTime

The original timestamp when your volume was initially attached to the node.

Type: Timestamp

ClusterArn

The Amazon Resource Name (ARN) of your SageMaker HyperPod cluster where the volume detachment operation was performed.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 256.

Pattern: arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:cluster/[a-z0-9]{12}

DeviceName

The device name assigned to your attached volume on the target instance.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 32.

Pattern: /dev/(xvd[a-z]|sd[b-z]|sd[f-p][1-6])

NodeId

The unique identifier of the cluster node from which your volume was detached.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: i-[a-f0-9]{8}(?:[a-f0-9]{9})?

Status

The current status of your volume detachment operation.

Type: String

Valid Values: attaching | attached | detaching | detached | busy

VolumeId

The unique identifier of your EBS volume that was detached.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: vol-[a-f0-9]{8}(?:[a-f0-9]{9})?

Errors

For information about the errors that are common to all actions, see Common Errors.

ResourceNotFound

Resource being access is not found.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: