Obtaining a Resource Pool
Function
This API is used to obtain the details of a specified resource pool. This API is used when you need to query details about a specified resource pool, such as its configuration, status, resource usage, or resource management. Before using this API, ensure that you have the required permission and the specified resource pool exists in the system. After the query, the API returns the resource pool details, including the resource pool ID, name, type, status, resource quota, and usage. If the specified resource pool does not exist, the user does not have the permission to perform the operation, or the input parameters are incorrect, the API will return an error message.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
GET /v2/{project_id}/pools/{pool_name}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: N/A Range: N/A Default Value: N/A |
|
pool_name |
Yes |
String |
Definition: Resource pool ID. The value is obtained from the metadata.name field in the resource pool details. Constraints: N/A *Range: The value can contain 36 to 63 characters. It must start with a lowercase letter and cannot end with a hyphen (-). Digits and hyphens (-) are allowed. Default Value: N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-ModelArts-User-ID |
No |
String |
Definition: Tenant ID. This ID is used for authentication when this parameter is transferred. Constraints: N/A Range: N/A Default Value: N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
apiVersion |
String |
Definition: API version of the resource. Range:
|
|
kind |
String |
Definition: Resource type. Range:
|
|
metadata |
PoolMetadata object |
Definition: Metadata of the resource pool. |
|
spec |
PoolSpecModel object |
Definition: Specifications of a resource pool. |
|
status |
PoolStatus object |
Definition: Status of a resource pool. |
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
String |
Definition: Resource pool ID. Range: N/A |
|
creationTimestamp |
String |
Definition: Time when a resource pool is created. For example, 2025-11-01T03:49:41Z. Range: N/A |
|
labels |
PoolMetaLabels object |
Definition: Tags of a resource pool. |
|
annotations |
PoolMetaAnnotations object |
Definition: Comments of a resource pool. Constraints: N/A Range: N/A Default Value: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
os.modelarts/name |
String |
Definition: Displayed name of a resource pool. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/workspace.id |
String |
Definition: Workspace ID. [For details about how to obtain the ID, see Querying the Workspace List.] (tag:hc,hk) Constraints: N/A Range: N/A Default Value: 0 |
|
os.modelarts/node.prefix |
String |
Definition: Custom node prefix. This parameter is optional. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/resource.id |
String |
Definition: Resource ID used for resource pool billing. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/tenant.domain.id |
String |
Definition: ID of the tenant to which a resource pool belongs. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/tenant.project.id |
String |
Definition: ID of the tenant project that a resource pool belongs to. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/enterprise.project.id |
String |
Definition: ID of the enterprise project that a resource pool belongs to. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts.pool/biz |
String |
Definition: Business type of a resource pool. The value can be public or private. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/create-from |
String |
Definition: Source of a resource pool, for example, admin-console, indicating that the resource pool is created by the administrator on the ModelArts console. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/nobilling |
String |
Definition: Indicates whether the resource pool is charged. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/order.name |
String |
Definition: Last order job record associated with the resource pool. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/region |
String |
Definition: Region where the resource pool is located. Constraints: N/A Range: N/A Default Value: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
os.modelarts/description |
String |
Definition: Resource pool description. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/billing.mode |
String |
Definition: Billing mode. Constraints: N/A Range:
Default Value: N/A |
|
os.modelarts/period.num |
String |
Definition: Subscription period of a yearly/monthly resource pool. Constraints: This parameter is used together with the os.modelarts/period.type field. Range: N/A Default Value: N/A |
|
os.modelarts/period.type |
String |
Definition: Subscription type of a yearly/monthly resource pool. Constraints: This parameter is used together with the os.modelarts/period.num field. Range:
Default Value: N/A |
|
os.modelarts/auto.renew |
String |
Definition: Auto-renewal status of a yearly/monthly resource pool. Constraints: N/A Range:
Default Value: 0 |
|
os.modelarts/promotion.info |
String |
Definition: Discount information selected when a yearly/monthly resource pool is purchased. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/service.console.url |
String |
Definition: URL to which you are redirected after the order of a yearly/monthly resource pool is paid. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/order.id |
String |
Definition: Order ID transferred when a yearly/monthly resource pool is purchased. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/flavor.resource.ids |
String |
Definition: Resource ID of the resource specifications in a yearly/monthly resource pool. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/tms.tags |
String |
Definition: Resource tags of a resource pool. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts.pool/scheduler.queue.strategy |
String |
Definition: Policy of the resource pool scheduling queue, which is used to define task scheduling rules. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts.pool/subpools.count |
String |
Definition: Number of logical subpools in a resource pool. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts/tenant.domain.name |
String |
Definition: Tenant account of the resource pool. Constraints: N/A Range: N/A Default Value: N/A |
|
os.modelarts.pool/scope.external.dependency.train |
String |
Definition: External dependency ID of the training job. Constraints: N/A Range: N/A Default Value: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Definition: Resource pool type. Constraints: N/A Range:
Default Value: N/A |
|
scope |
Array of strings |
Definition: Job types supported by a resource pool. |
|
resources |
Array of resources objects |
Definition: Resource specifications in a resource pool, including resource specifications and the number of resources for each specification. |
|
containernetwork |
containernetwork object |
Kubernetes container network. |
|
network |
network object |
Definition: Network parameters of a resource pool. |
|
jobFlavors |
Array of strings |
Definition: Job specifications supported by a resource pool. The value is the job specification name. |
|
driver |
PoolDriver object |
Definition: Resource pool driver information. |
|
controlMode |
Integer |
Definition: Restriction status of a resource pool. Multiple statuses are allowed. For example, 9 indicates that it is frozen and changing its billing mode to yearly/monthly is restricted. Range:
|
|
Parameter |
Type |
Description |
|---|---|---|
|
flavor |
String |
Definition: Resource flavor ID. Range: N/A |
|
count |
Integer |
Definition: Number of resource specification instances in a resource pool. Range: N/A |
|
maxCount |
Integer |
Elastic resource amount of the resource specifications. The value must be the same as that of count in the physical pool. |
|
azs |
Array of PoolNodeAz objects |
Definition: AZ distribution of the resource specification instances to be created in a resource pool. |
|
extendParams |
extendParams object |
Definition: Custom parameters of a resource pool. |
|
os |
Os object |
Definition: OS image information of nodes in a resource pool. |
|
dataVolumes |
dataVolumes object |
List of custom cloud data disks. The list cannot be modified after being specified. |
|
volumeGroupConfigs |
volumeGroupConfigs object |
Advanced disk configurations. |
|
Parameter |
Type |
Description |
|---|---|---|
|
dockerBaseSize |
String |
Definition: Container engine space of a node created in a resource pool. The value 0 indicates that the size is not limited. Constraints: N/A Range: N/A Default Value: N/A |
|
volumeGroup |
String |
Disk group name. |
|
runtime |
String |
Model runtime environment. |
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
String |
Definition: OS name. Range: N/A |
|
imageId |
String |
Definition: OS image ID. Range: N/A |
|
imageType |
String |
Definition: OS image type. Range:
|
|
Parameter |
Type |
Description |
|---|---|---|
|
volumeType |
String |
Disk type.. Options:
|
|
size |
String |
Disk size, in GiB. |
|
count |
String |
Number of disks. |
|
extendParams |
extendParams object |
Custom disk configuration. |
|
Parameter |
Type |
Description |
|---|---|---|
|
billing |
String |
Indicates whether the storage instance is billed. If this parameter is left blank, the storage instance is not billed. This field cannot be specified or modified by users. |
|
volumeGroup |
String |
Name of a disk group, which is used to divide storage space. Options:
|
|
Parameter |
Type |
Description |
|---|---|---|
|
volumeGroup |
String |
Disk group name. Index of the volume group in the dataVolumes. |
|
dockerThinPool |
String |
Percentage of container disks to data disks on nodes in a resource pool. This parameter can be specified only when volumeGroup is vgpaas (container disk). |
|
lvmConfig |
lvmConfig object |
LVM configuration management. |
|
Parameter |
Type |
Description |
|---|---|---|
|
lvType |
String |
LVM write mode. Options:
|
|
Parameter |
Type |
Description |
|---|---|---|
|
mode |
String |
Container network model. Options: overlay_l2: an overlay_l2 network (container tunnel network) built for containers by using OpenVSwitch (OVS).
|
|
Parameter |
Type |
Description |
|---|---|---|
|
gpuVersion |
String |
Definition: Default GPU driver version of a resource pool. This parameter is only valid when the physical resource pool contains GPU specifications. Range: N/A |
|
npuVersion |
String |
Definition: Default NPU driver version of a resource pool. This parameter is only valid when the physical resource pool contains NPU specifications. Range: N/A |
|
updateStrategy |
String |
Definition: Driver upgrade policy of a resource pool. Range:
|
|
Parameter |
Type |
Description |
|---|---|---|
|
phase |
String |
Definition: Resource pool status. Range:
|
|
message |
String |
Definition: Prompt information about the resource pool status. Range: N/A |
|
resources |
resources object |
Definition: Resource information in different states of the resource pool. |
|
scope |
Array of scope objects |
Definition: Status of the service type supported by the resource pool. |
|
driver |
driver object |
Definition: Resource pool driver status. |
|
parent |
String |
Definition: ID of the parent resource pool to which a resource pool belongs. The physical pool is empty. Range: N/A |
|
root |
String |
Definition: ID of the root resource pool. Range: N/A |
|
clusters |
clusters object |
Resource pool cluster information. This parameter is available only for privileged pools. |
|
Parameter |
Type |
Description |
|---|---|---|
|
creating |
PoolResourceFlavorCount object |
Definition: Resource information in creating states of the resource pool. |
|
available |
PoolResourceFlavorCount object |
Definition: Resource information in available states of the resource pool. |
|
abnormal |
PoolResourceFlavorCount object |
Definition: Resource information in abnormal states of the resource pool. |
|
deleting |
PoolResourceFlavorCount object |
Definition: Resource information in deleting states of the resource pool. |
|
Parameter |
Type |
Description |
|---|---|---|
|
flavor |
String |
Definition: Resource flavor ID. Range: N/A |
|
count |
Integer |
Definition: Number of resource specification instances in a resource pool. Range: N/A |
|
maxCount |
Integer |
Definition: Number of elastic resource specification instances in a resource pool. The value of this parameter in a physical pool is the same as that of count. Range: N/A |
|
azs |
Array of PoolNodeAz objects |
Definition: AZ distribution of the resource specification instances to be created in a resource pool. |
|
nodePool |
String |
Definition: Node pool ID. Range: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
az |
String |
Definition: AZ name. Range: N/A |
|
count |
Integer |
Definition: Number of AZ resource instances. Range: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
scopeType |
String |
Definition: Service type of the resource pool. Range:
|
|
state |
String |
Definition: Service type status of the resource pool. Range:
|
|
Parameter |
Type |
Description |
|---|---|---|
|
gpu |
PoolDriverStatus object |
Definition: GPU driver status of a resource pool. Range: N/A |
|
npu |
PoolDriverStatus object |
Definition: NPU driver status of a resource pool. Range: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
version |
String |
Definition: Current driver version of a resource pool. Range: N/A |
|
state |
String |
Definition: Current driver status of a resource pool. Range:
|
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
String |
Cluster name. |
|
clusterFlavor |
String |
Cluster flavor of a standard pool. |
|
type |
String |
Type of the resource pool cluster. |
|
version |
String |
Cluster version. |
|
plugins |
plugins object |
Name of the plugin supported by the cluster. |
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
String |
Name of the plugin supported by the cluster. |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Range: N/A |
|
error_msg |
String |
Definition: Error message. Range: N/A |
Example Requests
Obtain details about a resource pool.
GET https://{endpoint}/v2/{project_id}/pools/{pool_name}
{ }
Example Responses
Status code: 200
OK
{
"kind" : "Pool",
"apiVersion" : "v2",
"metadata" : {
"name" : "auto-pool-os-86c13962597848eeb29c5861153a391f",
"creationTimestamp" : "2022-09-16T03:10:40Z",
"labels" : {
"os.modelarts/name" : "auto-pool-os",
"os.modelarts/workspace.id" : "0",
"os.modelarts/resource.id" : "maos-auto-pool-os-72w8d"
},
"annotations" : {
"os.modelarts/description" : "",
"os.modelarts/billing.mode" : "0"
}
},
"spec" : {
"type" : "Dedicate",
"scope" : [ "Train", "Infer" ],
"resources" : [ {
"flavor" : "modelarts.vm.cpu.4ud",
"count" : 2
} ],
"network" : {
"name" : "network-maos-86c13962597848eeb29c5861153a391f"
}
},
"status" : {
"phase" : "Running",
"root" : "auto-pool-os-86c13962597848eeb29c5861153a391f",
"scope" : [ {
"scopeType" : "Train",
"state" : "Enabled"
}, {
"scopeType" : "Infer",
"state" : "Enabled"
} ],
"resources" : {
"available" : [ {
"flavor" : "modelarts.vm.cpu.4ud",
"count" : 2,
"azs" : [ {
"az" : "cn-north-7c",
"count" : 2
} ]
} ]
}
}
}
Status code: 404
Not found.
{
"error_code" : "ModelArts.50015001",
"error_msg" : "pool not found"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
404 |
Not found. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot