You can call this operation to release a public endpoint of an ApsaraDB for Redis instance.

For more information about how to perform the corresponding operation in the console, see Release public endpoints.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
InstanceId String Yes r-bp1xxxxxxxxxxxxx

The ID of the instance for which you want to release a public endpoint.

CurrentConnectionString String Yes r-bp1xxxxxxxxxxxxx.redis.rds.aliyuncs.com

The public endpoint to release.

Action String No ReleaseInstancePublicConnection

The operation that you want to perform. Set this parameter to ReleaseInstancePublicConnection.

AccessKeyId String No Lxxxxxxxxxxxxxxw

The AccessKey ID that Alibaba Cloud provides for you to access services.

Response parameters

Parameter Type Example Description
RequestId String 88F850B5-CC68-48B4-83CA-5497C3C191DE

The ID of the request.

Examples

Sample request


https://r-kvstore.aliyuncs.com/
? Action=ReleaseInstancePublicConnection
&InstanceId=r-bp1xxxxxxxxxxxxx
&CurrentConnectionString=r-bp1xxxxxxxxxxxxx.redis.rds.aliyuncs.com
&<Common request parameters>

Sample success response

XML format

<ReleaseInstancePublicConnectionResponse>
  <RequestId>88F850B5-CC68-48B4-83CA-5497C3C191DE</RequestId>
</ReleaseInstancePublicConnectionResponse>

JSON format

{
	"RequestId":"88F850B5-CC68-48B4-83CA-5497C3C191DE"
}

Error codes

For more information, see Error codes.