Creating a One-Click Experience Task
Function
This API is used to create a one-click experience task.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
URI
POST /v2/meshes/{mesh_id}/workshops
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| mesh_id | Yes | String | Mesh ID |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Content-Type | Yes | String | Message body type (format) Range: |
| X-Auth-Token | Yes | String | API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| description | No | String | Description |
| metadata | Yes | WorkshopMetadata object | Basic information about the grayscale release task. Metadata is a collection of attributes. |
| spec | Yes | WorkshopSpec object | One-click experience task attributes |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | One-click experience task name |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| primaryCluster | Yes | String | ID of the cluster where the workload and gateway reside for one-click experience task deployment |
| ingress | Yes | WorkshopIngress object | Gateway attributes in a one-click experience task |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| elbId | Yes | String | ELB ID used by the gateway |
| elbIp | Yes | String | ELB IP address used by the gateway |
| port | Yes | Integer | Port provided by the gateway for external systems to access |
| imageAddress | No | String | Image address of the one-click experience task |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| description | String | Description |
| metadata | WorkshopMetadata object | Basic information about the grayscale release task. Metadata is a collection of attributes. |
| spec | WorkshopSpec object | One-click experience task attributes |
| status | WorkshopStatus object | One-click experience task status |
| Parameter | Type | Description |
|---|---|---|
| name | String | One-click experience task name |
| uid | String | One-click experience task ID, which is unique. The value is automatically generated after the task is created. A custom value will not take effect. |
| creationTimestamp | String | Time when the one-click experience task is created |
| Parameter | Type | Description |
|---|---|---|
| primaryCluster | String | ID of the cluster where the workload and gateway reside for one-click experience task deployment |
| ingress | WorkshopIngress object | Gateway attributes in a one-click experience task |
| Parameter | Type | Description |
|---|---|---|
| elbId | String | ELB ID used by the gateway |
| elbIp | String | ELB IP address used by the gateway |
| port | Integer | Port provided by the gateway for external systems to access |
| imageAddress | String | Image address of the one-click experience task |
| Parameter | Type | Description |
|---|---|---|
| updateTime | String | Time when the one-click experience task is updated |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code |
Example Requests
None
Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | The one-click experience task is created. |
| 400 | Failed to create the request body for creating the one-click experience task due to incorrect parameters. |
| 500 | Internal error. |
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