Obtaining the Atomic Capabilities
Function
This API is used to obtain the atomic capability list of a job.
URI
GET /v1/atomics
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
limit |
No |
String |
Definition: Pagination parameter. Constraints: Maximum number of records returned on each page. If this parameter is not set, 10 records are queried on the first page by default. Value range: N/A. Default value: N/A. |
|
offset |
No |
String |
Definition: Pagination parameter. Constraints: The query starts from the next data specified by offset. If this parameter is not transferred, the preset value 0 is used. Value range: N/A. Default value: N/A. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
Array of AtomicModel objects |
Definition: Atomic capabilities. Value range: N/A. |
|
total |
Long |
Definition: Total number of records. Value range: N/A. |
|
Parameter |
Type |
Description |
|---|---|---|
|
atomic_unique_key |
String |
Definition: Unique ID of an atomic capability. Value range:
|
|
atomic_name_zh |
String |
Definition: Chinese name. Value range: N/A. |
|
atomic_name_en |
String |
Definition: English name. Value range: N/A. |
|
tags |
Array of strings |
Definition: Tag information. Value range:
|
Example Requests
Obtain the atomic capability list.
GET https://{Endpoint}/v1/atomics
Example Responses
Status code: 200
Request succeeded.
{
"data" : [ {
"atomic_unique_key" : "coc_step_pause",
"atomic_name_zh" : "Pause",
"atomic_name_en" : "pause",
"tags" : [ "CONTROL" ]
}, {
"atomic_unique_key" : "coc_step_review",
"atomic_name_zh" : "Review",
"atomic_name_en" : "review",
"tags" : [ "CONTROL" ]
}, {
"atomic_unique_key" : "coc_step_loop",
"atomic_name_zh" : "Loop",
"atomic_name_en" : "loop",
"tags" : [ "CONTROL" ]
}, {
"atomic_unique_key" : "coc_step_branch",
"atomic_name_zh" : "Branch",
"atomic_name_en" : "branch",
"tags" : [ "CONTROL" ]
}, {
"atomic_unique_key" : "execute_api",
"atomic_name_zh" : "Execute API",
"atomic_name_en" : "Execute API",
"tags" : [ "CLOUD_API" ]
}, {
"atomic_unique_key" : "coc_step_sleep",
"atomic_name_zh" : "Sleep",
"atomic_name_en" : "sleep",
"tags" : [ "CONTROL" ]
}, {
"atomic_unique_key" : "custom_script_execute",
"atomic_name_zh" : "Execute a custom script.",
"atomic_name_en" : "Execute script",
"tags" : [ "CUSTOM" ]
}, {
"atomic_unique_key" : "coc_execute_command",
"atomic_name_zh" : "Execute a command.",
"atomic_name_en" : "Execute Command",
"tags" : [ "CUSTOM" ]
} ],
"total" : 8
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Request succeeded. |
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