All Products
Search
Document Center

Security Center:DescribePlaybook

Last Updated:Dec 10, 2024

Queries the XML configuration of a playbook.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • The required resource types are displayed in bold characters.
    • 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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:DescribePlaybookget
*Playbook
acs:yundun-sas::{#accountId}:playbook/{#PlaybookUuid}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PlaybookUuidstringYes

The UUID of the playbook.

Note You can call the DescribePlaybooks operation to query the UUIDs of playbooks.
9030076b-6733-4842-b05a-xxxxx
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh
TaskflowMd5stringNo

The MD5 hash value of the playbook.

7a8f608dc64c242632aa578xxxxx
DebugFlagintegerNo

The flag that indicates whether the playbook is of the debugging or published version. Valid values:

  • 1: playbook of the debugging version
  • 0: playbook of the published version
0

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

2989BC59-E9F0-5C83-B453-B368857649C8
Playbookobject

The configuration of the playbook.

GmtCreatestring

The creation time of the playbook. The value is a 13-digit timestamp.

1665288858000
GmtModifiedstring

The modification time of the playbook. The value is a 13-digit timestamp.

1677482519000
PlaybookUuidstring

The UUID of the playbook.

8db257d3-e2b2-44fd-b2cc-xxxxx
Taskflowstring

The XML configuration of the playbook.

<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
TaskflowTypestring

The playbook configuration type.

  • xml: XML format.
  • x6: JSON format.
xml
Creatorstring

The ID of the Alibaba Cloud account that is used to create the playbook.

124xxxxx3435
OwnTypestring

The type of the playbook. Valid values:

  • preset: predefined playbook
  • user: custom playbook
preset
SuccessExeNuminteger

The number of times that the playbook was successfully run.

100
FailExeNuminteger

The number of times that the playbook failed to be run.

1
LastExeTimelong

The time when the playbook was last run. The value is a 13-digit timestamp.

1665288858000
Modifierstring

The ID of the Alibaba Cloud account that is used to modify the playbook.

124xxxxx3435
DisplayNamestring

The display name of the playbook.

demo_test
InputParamsstring

The input parameter configuration of the playbook. The value is a JSON array.

Note For more information, see DescribePlaybookInputOutput .
[ { "typeName": "String", "dataClass": "normal", "dataType": "String", "description": "period", "example": "", "name": "period", "required": false } ]
Descriptionstring

The description of the playbook.

demo playbook
OnlineActiveboolean

The status of the playbook. Valid values:

  • 0: disabled
  • 1: enabled
0
OnlineReleaseTaskflowMd5string

The MD5 hash value in the latest published version of the playbook.

asdfsdfe232-e2b2-44fd-b2cc-xxxxx

Examples

Sample success responses

JSONformat

{
  "RequestId": "2989BC59-E9F0-5C83-B453-B368857649C8",
  "Playbook": {
    "GmtCreate": "1665288858000",
    "GmtModified": "1677482519000",
    "PlaybookUuid": "8db257d3-e2b2-44fd-b2cc-xxxxx",
    "Taskflow": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><bpmn:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" targetNamespace=\"http://bpmn.io/schema/bpmn\" id=\"Definitions_1\"><bpmn:process id=\"Process_1\" isExecutable=\"false\"><bpmn:startEvent id=\"StartEvent_1\"/></bpmn:process><bpmndi:BPMNDiagram id=\"BPMNDiagram_1\"><bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1\"><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_2\" bpmnElement=\"StartEvent_1\"><dc:Bounds height=\"36.0\" width=\"36.0\" x=\"173.0\" y=\"102.0\"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>",
    "TaskflowType": "xml",
    "Creator": "124xxxxx3435",
    "OwnType": "preset",
    "SuccessExeNum": 100,
    "FailExeNum": 1,
    "LastExeTime": 1665288858000,
    "Modifier": "124xxxxx3435",
    "DisplayName": "demo_test",
    "InputParams": "[\n    {\n        \"typeName\": \"String\",\n        \"dataClass\": \"normal\",\n        \"dataType\": \"String\",\n        \"description\": \"period\",\n        \"example\": \"\",\n        \"name\": \"period\",\n        \"required\": false\n    }\n]",
    "Description": "demo playbook",
    "OnlineActive": true,
    "OnlineReleaseTaskflowMd5": "asdfsdfe232-e2b2-44fd-b2cc-xxxxx"
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-19The response structure of the API has changedView Change Details