DeleteGlobalVar - Delete global variable group

Updated at:

Applicable versions

Center, Region

Service endpoint and authorization

  • Get service endpoint: Replace {domain} in the API request syntax.
  • Get personal access token.
  • Get the organization ID: Required only for Center. Go to the Organization Management console and find your organization ID on the Basic Information page.

Product

Resource

Required permission

application delivery

global variable group

Read/Write

Request syntax

Center

DELETE https://{domain}/oapi/v1/appstack/organizations/{organizationId}/globalVars/{name}

Region

DELETE https://{domain}/oapi/v1/appstack/globalVars/{name}

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Your personal access token for authentication.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

In

Required

Description

Example

name

string

path

Yes

The name of the global variable group.

my-global-var-group

organizationId

string

path

  • Yes: Center

  • No: Region

The organization ID.

ec766e63aee3437d9a51f334d6exe671

Request examples

Center

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/globalVars/my-global-var-group' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region

curl -X 'DELETE' \
  'https://{domain}/oapi/v1/appstack/globalVars/my-global-var-group' \
  -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. A value of true indicates success.

true

Response example

true

Error codes

For a list of API error codes, see the Error Code Center.