Retrieve the list of playbooks.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:DescribePlaybooks | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Active | integer | No | Activation status of the playbook. Values:
| 1 |
OwnType | string | No | Type of the playbook. Values:
| user |
StartMillis | long | No | Start time for the query, in 13-digit timestamp format. | 1683526277415 |
EndMillis | long | No | End time for the query, in 13-digit timestamp format. | 1683858064361 |
PlaybookUuid | string | No | The UUID of the playbook. Note
You can use the UUID to query specific playbook information.
| 8baa6cff-319e-4ede-97bc-1xxxxxx |
Name | string | No | The name of the playbook. | demo_playbook |
Lang | string | No | Specifies the language type for the request and response, default is zh. Values:
| zh |
PageSize | integer | No | Specifies the maximum number of items to display per page in a paginated query. The default number of items per page is 20. If the PageSize parameter is empty, it will return 10 items by default. Note
It is recommended that the PageSize value is not empty.
| 10 |
PageNumber | long | No | Sets the page number from which to start displaying the query results. The default value is 1, indicating the first page. | 1 |
Sort | string | No | The sorting basis, with a default value of 1. Values:
| 1 |
Order | string | No | The sorting logic, with a default value of desc. Values:
| desc |
ParamTypes | string | No | The trigger method for the playbook, with a default value of query all. Values:
| template-alert |
PlaybookUuids | string | No | UUID List of the playbook. Note You can use the UUID list to query specific playbook information. Call the DescribePlaybooks API to obtain this parameter. | 8baa6cff-319e-4ede-97bc-1xxxxxx,7745e6cff-319e-4ede-97bc-1xxxxxx |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "138B5AB7-****-5814-87A3-E3E****F207E",
"Playbooks": [
{
"DisplayName": "demo_playbook",
"PlaybookUuid": "bb5a8640-a14f-44ef-8376-cxxxxx",
"OwnType": "user",
"Active": 1,
"LastRuntime": 1683526277415,
"GmtCreate": 1683526277415,
"GmtModified": "1681396398000",
"ParamType": "template-alert",
"Description": "aegis_kill_process",
"TenantId": "296004"
}
],
"Page": {
"TotalCount": 100,
"PageNumber": 1,
"PageSize": 10
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-11-01 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |