Querying Order Details
Function
This API is used to query order details.
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}/orders/{order_name}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition: User project ID. For details, see Obtaining a Project ID and Name. Constraints: N/A Range: N/A Default Value: N/A |
|
order_name |
Yes |
String |
Range: N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Constraints: N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
count |
Integer |
Definition: Number of resources associated with the order. Constraints: N/A Range: N/A Default Value: N/A |
|
items |
Array of OrderDetailItem objects |
Definition: Resource information list associated with the order. Constraints: N/A Range: N/A Default Value: N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
resourcename |
String |
Definition: Resource ID. The value is obtained from the metadata.name field in resource details. Constraints: N/A Range: N/A Default Value: N/A |
|
action |
String |
Definition: Type of the resource change associated with the order. Constraints: N/A Range:
Default Value: N/A |
|
status |
String |
Definition: Change status of the resource associated with the order. Constraints: N/A Range:
Default Value: N/A |
|
begintimestamp |
String |
Definition: Timestamp when the resource starts to change, in milliseconds. For example, 1744285793000. Constraints: N/A Range: N/A Default Value: N/A |
|
updatetimestamp |
String |
Definition: Timestamp when the resource is last updated, in milliseconds. For example, 1744285793000. Constraints: N/A Range: N/A Default Value: N/A |
|
message |
String |
Definition: Execution information of resource change, for example, failure cause. Constraints: N/A Range: N/A Default Value: N/A |
Status code: 400
|
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
Query resource information in the order details.
GET /v1/{project_id}/orders/{order_name}
Example Responses
Status code: 200
Default Value: N/A
{
"count" : 4,
"items" : [ {
"action" : "createPool",
"resourcename" : "pool-9495-6f5da086876d4cd084d36f8bd3346036",
"status" : "succeed",
"begintimestamp" : 1744285793000,
"updatetimestamp" : 1744286479000
}, {
"action" : "createNode",
"resourcename" : "os-node-created-8jsnk",
"status" : "succeed",
"begintimestamp" : 1744286228000,
"updatetimestamp" : 1744286479000
}, {
"action" : "createNode",
"resourcename" : "os-node-created-lq4f8",
"status" : "succeed",
"begintimestamp" : 1744286228000,
"updatetimestamp" : 1744286479000
}, {
"action" : "createNode",
"resourcename" : "os-node-created-ggthb",
"status" : "succeed",
"begintimestamp" : 1744286228000,
"updatetimestamp" : 1744286479000
} ]
}
Status code: 400
Bad request.
{
"error_code" : "ModelArts.50004000",
"error_msg" : "Bad request."
}
Status code: 404
Not found.
{
"error_code" : "ModelArts.50015001",
"error_msg" : "Order {name} not found."
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Default Value: N/A |
|
400 |
Bad request. |
|
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