You are not logged in.
UpdateSecurityGroup
This API is used to change the security group associated with a DB instance.
Name | Type | IN | Mandatory | Description |
---|---|---|---|---|
x-auth-token | string | header | Yes | Specifies the user token obtained from the IAM service. |
instance_id | string | path | Yes | Specifies the instance ID, which can be obtained by calling the API for querying instances and details. If you do not have an instance, you can call the API used for creating an instance. |
project_id | string | path | Yes | Specifies the project ID of a tenant in a region. |
Name | Type | Mandatory | Description |
---|---|---|---|
security_group_id | string | Yes | Specifies the ID of the new security group. |
Success.
Name | Type | Description |
---|---|---|
job_id | string | Indicates the workflow ID. |
security_group_id | string | Indicates the ID of the new security group. |
Client or server error.
Name | Type | Description |
---|---|---|
error_code | string | Specifies the error returned when a task submission exception occurs. |
error_msg | string | Specifies the description of the error returned when a task submission exception occurs. |
"POST https://{endpoint}/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/e73893ef73754465a8bd2e0857bbf13ein02/modify-security-group"
{
"security_group_id": "73bed21a-708b-4985-b697-a96d0e0d2b39"
}