Skip to main content

Bind or Unbind Approval Group Resources

Binds an approval group to specified resources, or removes the approval group binding from specified resources.

Request URL: /openapi/v1/approval/group/bind

Request Method: POST

Request Parameters

ParameterTypeRequiredDescriptionExample
idStringNoApproval group ID. Pass null or an empty string to remove the approval group binding from the resources.30044
resourceTypeStringYesResource type. Valid values: env, datasource, group.env
resourceIdListArrayYesResource ID list. At least one resource ID is required.["env-dev"]

Request Example

{
"id": "30044",
"resourceType": "env",
"resourceIdList": ["env-dev"]
}

Unbind Request Example

{
"id": "",
"resourceType": "env",
"resourceIdList": ["env-dev"]
}

Response Parameters

ParameterTypeDescriptionExample
successBooleanWhether the request is successful.true
requestIdStringRequest ID for troubleshooting and tracing.Aw1s9LIO-kqqrvUEnqojy5TJdmqc1OBK
dataStringExecution result.success
errorCodeStringError code returned when the call fails.None
messageStringError message returned when the call fails.None

Successful Invocation Example

{
"success": true,
"requestId": "Aw1s9LIO-kqqrvUEnqojy5TJdmqc1OBK",
"data": "success"
}