Removing Regions from a Skill Package
Function
This API is used to remove OBS regions from an enterprise-developed skill package in batches.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
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.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
workspace:skillPackage:removeRegion
Write
-
-
-
obs:object:deleteObject
URI
POST /v3/ai-agents/skills/{skill_id}/packages/{package_id}/regions/delete
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| skill_id | Yes | String | Skill ID. |
| package_id | Yes | String | Skill package ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Language | No | String | Language, which is used for internationalization. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| regions | Yes | Array of strings | IDs of regions to be removed. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | - |
| Parameter | Type | Description |
|---|---|---|
| total | Integer | Total number of items. |
| success_count | Integer | Number of successful items. |
| failed_count | Integer | Number of failed items. |
| failed_details | Array of RegionFailedDetail objects | Failed item list. |
| Parameter | Type | Description |
|---|---|---|
| region | String | Failed region ID. |
| error_code | String | Error code, in the format of WKS.XXXXXXXX. |
| error_msg | String | Error information. |
Status code: 207
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | - |
| Parameter | Type | Description |
|---|---|---|
| total | Integer | Total number of items. |
| success_count | Integer | Number of successful items. |
| failed_count | Integer | Number of failed items. |
| failed_details | Array of RegionFailedDetail objects | Failed item list. |
| Parameter | Type | Description |
|---|---|---|
| region | String | Failed region ID. |
| error_code | String | Error code, in the format of WKS.XXXXXXXX. |
| error_msg | String | Error information. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | - |
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, which is returned upon failure. |
| error_msg | String | Error message. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | - |
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, which is returned upon failure. |
| error_msg | String | Error message. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | - |
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, which is returned upon failure. |
| error_msg | String | Error message. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | - |
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, which is returned upon failure. |
| error_msg | String | Error message. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| X-Request-Id | String | - |
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, which is returned upon failure. |
| error_msg | String | Error message. |
Example Requests
/v3/ai-agents/skills/skill-uuid-002/packages/pkg-uuid-010/regions/delete
{
"regions" : [ "cn-south-1" ]
} Example Responses
Status code: 200
{
"total" : 1,
"success_count" : 1,
"failed_count" : 0,
"failed_details" : [ ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 207 | Multi-Status |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Internal Server Error |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank 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