Creates a business scenario. You can group task flows by business scenarios.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateScenario

The operation that you want to perform. Set the value to CreateScenario.

Tid Long No 3***

The ID of the tenant.

Note The ID of the tenant is displayed when you move the pointer over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see the "View information about the current tenant" section of the Manage DMS tenants topic.
ScenarioName String Yes Business scenario-test

The name of the business scenario.

Description String No test

The description of the business scenario.

Response parameters

Parameter Type Example Description
RequestId String 4E1D2B4D-3E53-4ABC-999D-1D2520B3471A

The ID of the request.

ErrorCode String UnknownError

The error code returned if the request failed.

ErrorMessage String UnknownError

The error message returned if the request failed.

Success Boolean true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
ScenarioId Long 36***

The ID of the business scenario.

Examples

Sample requests

http(s)://dms-enterprise.aliyuncs.com/?Action=CreateScenario
&Tid=3***
&ScenarioName=Business scenario-test
&Description=test
&Common request parameters

Sample responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateScenarioResponse>
    <RequestId>4E1D2B4D-3E53-4ABC-999D-1D2520B3471A</RequestId>
    <ScenarioId>36***</ScenarioId>
    <Success>true</Success>
</CreateScenarioResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "4E1D2B4D-3E53-4ABC-999D-1D2520B3471A",
  "ScenarioId" : "36***",
  "Success" : true
}

Error codes

For a list of error codes, see Service error codes.