Removing an Instance from an AS Group

Function

This interface is used to remove a specified instance from an AS group.

Manually added instances are removed from an AS group but are not deleted.

URI

DELETE /autoscaling-api/v1/{project_id}/scaling_group_instance/{instance_id}

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

instance_id

Yes

String

Specifies the instance ID. For details, see Querying Instances in an AS Group.

instance_delete

No

String

Specifies whether an instance is deleted when it is removed from the AS group.

Options:

  • no (default): The instance will not be deleted.
  • yes: The instance will be deleted.

Request

None

Example Request

This example removes the instance with ID b25c1589-c96c-465b-9fef-d06540d1945c from the AS group but does not delete the instance.

DELETE https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_group_instance/b25c1589-c96c-465b-9fef-d06540d1945c?instance_delete=no

Response

None

Example Response

None

Returned Values

Error Codes

See Error Codes.