DeleteVariableGroup - Delete variable group
Updated at:
Applicable editions | Centralized Edition, Regional Edition |
Service endpoint and authorization
- Get the service endpoint: Replace {domain} in the request syntax.
- Get a personal access token.
- Get the organization ID: Required only for the Centralized Edition. Find your organization ID on the basic information page in the organization management console.
Product | Resource | Required permissions |
Application Delivery | variable group | read-write |
Request syntax
Centralized Edition
DELETE https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/variableGroup/{variableGroupName}
Regional Edition
DELETE https://{domain}/oapi/v1/appstack/apps/{appName}/variableGroup/{variableGroupName}
Request header
Parameter | Type | Required | Description | Example |
x-yunxiao-token | string | Yes | Your personal access token. | pt-0fh3****0fbG_35af****0484 |
Request parameters
Parameter | Type | In | Required | Description | Example |
appName | string | path | Yes | The application name. | my-web-service |
variableGroupName | string | path | Yes | The variable group name. | dev |
organizationId | string | path |
| The organization ID. | ec766e63aee3437d9a51f334d6exe671 |
Request examples
Centralized Edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps/my-web-service/variableGroup/dev' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Regional Edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/appstack/apps/my-web-service/variableGroup/dev' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
Parameter | Type | Description | Example |
- | boolean | Indicates whether the request was successful. | true |
Response example
true
Error codes
For a list of API error codes, see the Error Code Center.
Is this page helpful?