Disassociates an internal-facing or Internet-facing SLB instance from an application.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request headers. For more information, see Common request parameters and common response parameters.

Request syntax

DELETE /pop/v1/sam/app/slb HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes 0099b7be-5f5b-4512-a7fc-56049ef1****

The ID of the application from which you want to disassociate the SLB instance.

Internet Boolean Query No true

Specifies whether to disassociate the Internet-facing SLB instance. Valid values:

  • true: indicates that the Internet-facing SLB instance will be disassociated.
  • false: indicates that the Internet-facing SLB instance will not be disassociated.
Intranet Boolean Query No true

Specifies whether to disassociate the internal-facing SLB instance. Valid values:

  • true: indicates that the internal-facing SLB instance will be disassociated.
  • false: indicates that the internal-facing SLB instance will not be disassociated.

Response parameters

Parameter Type Example Description
RequestId String 91F93257-7A4A-4BD3-9A7E-2F6EAE6D****

The ID of the request.

Message String success

The returned message.

  • success is returned when the request succeeds.
  • An error code is returned when the request fails.
TraceId String 0a98a02315955564772843261e****

The ID of the trace. It can be used to query the details of a request.

Data Object

The returned data.

ChangeOrderId String 4a815998-b468-4bea-b7d8-59f52a44****

The ID of the change order. It can be used to query the task status.

ErrorCode String This parameter is left empty.

The error code.

  • The ErrorCode parameter is not returned when the request succeeds.
  • The ErrorCode parameter is returned when the request fails. For more information, see Error codes in this topic.
Code String 200

The HTTP status code. Valid values:

  • 2xx: indicates that the request was successful.
  • 3xx: indicates that the request was redirected.
  • 4xx: indicates that the request was invalid.
  • 5xx: indicates that a server error occurred.
Success Boolean true

Indicates whether the internal-facing or Internet-facing SLB instance was disassociated successfully. Valid values:

  • true: The SLB instance was disassociated successfully.
  • false: The SLB instance could not be disassociated.

Examples

Sample requests

DELETE /pop/v1/sam/app/slb?AppId=0099b7be-5f5b-4512-a7fc-56049ef1****&Internet=true&Intranet=true HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<UnbindSlbResponse>
    <RequestId>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</RequestId>
    <Message>success</Message>
    <TraceId>0a98a02315955564772843261e****</TraceId>
    <Data>
        <ChangeOrderId>4a815998-b468-4bea-b7d8-59f52a44****</ChangeOrderId>
    </Data>
    <Code>200</Code>
    <Success>true</Success>
</UnbindSlbResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
  "Message" : "success",
  "TraceId" : "0a98a02315955564772843261e****",
  "Data" : {
    "ChangeOrderId" : "4a815998-b468-4bea-b7d8-59f52a44****"
  },
  "Code" : "200",
  "Success" : true
}

Error codes

HttpCode Error code Error message Description
400 InvalidApplication.NotFound The current application does not exist. The error message returned because the specified application is not found.
400 InvalidParameter.NotEmpty You must specify the parameter %s. The error message returned because the value of the %s parameter is invalid. This parameter cannot be left empty.
400 InvalidParameter.Obviously The specified parameter is invalid {%s}. The error message returned because the value of the %s parameter is invalid.
400 InvalidParameter.WithMessage The parameter is invalid {%s}: %s The error message returned because the value of the %s parameter is invalid: %s.
400 System.Upgrading The system is being upgraded. Please try again later. The error message returned because the system is being upgraded. Try again later.
400 Application.ChangerOrderRunning An application change process is in progress. Please try again later. The error message returned because an application change is in progress. Try again later.
400 Application.InvalidStatus The application status is abnormal. Please try again later. The error message returned because the application status is abnormal. Try again later.
400 Application.NotDeployYet The application has not been deployed. Please deploy it and try again. The error message returned because the application is not deployed. Deploy the application and try again.

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