Obtaining Details About a Notebook Resource Pool
Function
This API is used to obtain details about a notebook resource pool. This API is used when you need to query details about a specified cluster when creating a notebook instance job. Before using this API, ensure that the cluster has been managed and you have the required permission. After this API is called, the system returns the instance ID, name, flavor, instance status, and URL for accessing the cluster. If the cluster does not exist, is not managed, or you do not have the access permission, 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 /v1/{project_id}/authoring/clusters/{cluster_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed. Range: N/A Default Value: N/A |
|
cluster_id |
Yes |
String |
Definition: ID of the managed cluster. Constraints: N/A Range: N/A Default Value: N/A |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
logic_cluster_id |
String |
Definition: Logical resource pool ID. Range: N/A |
|
status |
String |
Definition: Resource pool status. Range:
|
|
pool_id |
String |
Definition: Resource pool ID. Range: N/A |
|
type |
String |
Definition: Resource pool type. Range:
|
|
resource_categories |
String |
Definition: Resource type. Range:
|
|
workspace_id |
String |
Definition: Workspace ID. For details about how to obtain the value, see Obtaining Workspaces. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value. Range: N/A |
|
create_at |
String |
Definition: UTC time when the instance is created, accurate to millisecond. Range: N/A |
|
update_at |
String |
Definition: Time (UTC) when the instance was last updated, accurate to millisecond. Range: N/A |
|
project_id |
String |
Definition: User project ID. For details, see Obtaining a Project ID and Name. Constraints: N/A Range: N/A Default Value: N/A |
|
domain_id |
String |
Definition: Account ID. Range: N/A |
|
flavors |
Array of Flavor objects |
Definition: Resource pool flavors. |
|
Parameter |
Type |
Description |
|---|---|---|
|
arch |
String |
Definition: Hardware architecture type. Range:
|
|
billing |
BillingInfo object |
Definition: CDR information. |
|
category |
String |
Definition: Processor type. Range:
|
|
description |
String |
Definition: Flavor description. Range: N/A |
|
evs_max_size |
String |
Definition: Maximum size (GB) of EVS storage that can be created. Range: N/A |
|
evs_sku_code |
String |
Definition: SKU code of EVS storage. Range: N/A |
|
feature |
String |
Definition: Flavor type. Range:
|
|
free |
Boolean |
Definition: Indicates whether a free flavor is used. Range: Boolean
|
|
grow_support_type |
String |
Definition: Site type. Range:
|
|
id |
String |
Definition: Flavor ID. Range: N/A |
|
memory |
String |
Definition: Memory size. Range: N/A |
|
name |
String |
Definition: Flavor name. Range: N/A |
|
sold_out |
Boolean |
Definition: Indicates whether the flavor is sold out. Range: Boolean
|
|
storages |
Array of strings |
Definition: Storage type supported by the flavor. Range:
|
|
vcpus |
Integer |
Definition: Number of CPU cores. Range: N/A |
|
gpu |
GPUsInfo object |
Definition: GPU specifications when the processor type is GPU. |
|
ascend |
AscendInfo object |
Definition: Ascend specifications when the processor type is ASCEND. |
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Definition: Billing code. Range: N/A |
|
unit_num |
Integer |
Definition: Billing unit. Range: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Definition: GPU type. Range: N/A |
|
gpu |
Double |
Definition: Number of GPUs. Range: N/A |
|
gpu_memory |
String |
Definition: GPU memory. Range: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
npu |
Integer |
Definition: Number of NPUs. Range: N/A |
|
npu_memory |
String |
Definition: NPU memory. Range: N/A |
|
type |
String |
Definition: NPU type. Range: N/A |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Range: N/A |
|
error_msg |
String |
Definition: Error message. Range: N/A |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Range: N/A |
|
error_msg |
String |
Definition: Error message. Range: N/A |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Range: N/A |
|
error_msg |
String |
Definition: Error message. Range: N/A |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Request succeeded. |
|
401 |
Unauthorized. |
|
403 |
Forbidden. |
|
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