GetAppVariableGroupsRevision - Get variable group revision
Applicable editions | Central Edition, Region Edition |
Service endpoint and authorization
- Get the service endpoint: Replace
{domain}in the request syntax. - Get a personal access token.
- Get the organization ID. This is required only for Central Edition. You can find your ID on the Basic Information page in the Organization Management backend.
Product | Resource | Required permission |
Application Delivery | variable group | Read-only |
Request syntax
Central Edition
GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/variableGroups:revision
Region Edition
GET https://{domain}/oapi/v1/appstack/apps/{appName}/variableGroups:revision
Request headers
Parameter | Type | Required | Description | Example |
x-yunxiao-token | string | Yes | Your personal access token. | pt-0fh3****0fbG_35af****0484 |
Request parameters
Parameter | Type | Location | Required | Description | Example |
appName | string | path | Yes | The application name. | my-web-service |
organizationId | string | path |
| The organization ID. | ec766e63aee3437d9a51f334d6exe671 |
Request examples
Central Edition
curl -X 'GET' \
'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps/my-web-service/variableGroups:revision' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region Edition
curl -X 'GET' \
'https://{domain}/oapi/v1/appstack/apps/my-web-service/variableGroups:revision' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
Parameter | Type | Description | Example |
| - | object | The details of the variable group revision. | |
| author | string | The author of the commit. | 10df6011-2837-4fdb-ad92-356a679a60ca |
| commitTime | number | The commit timestamp. | 1.63e+12 |
| message | string | The commit message. | message-xxxx |
| refs | array[string] | Associated references. | |
| repoMeta | object | The repository information. | |
| name | string | The repository name. | my-repo |
| type | string | The repository type. | VARIABLE |
| sha | string | The SHA value of the revision. | a80102ee37cca462a23865e7a3e66ac1ca032a5c |
Response example
{
"author": "10df6011-2837-4fdb-ad92-356a679a60ca",
"commitTime": 1.63e+12,
"message": "message-xxxx",
"refs": [
],
"repoMeta": {
"name": "my-repo",
"type": "VARIABLE"
},
"sha": "a80102ee37cca462a23865e7a3e66ac1ca032a5c"
}
Error codes
For API-related error codes, refer to the Error Code Center.