Allocates a public connection.
Operation description
By default, a lightweight database instance does not have a public connection. To access the database from a lightweight container service or DMS over the internet, you must allocate a public connection.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:AllocatePublicConnection |
create |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the lightweight database instance. You can call ListRegions to view supported regions. |
cn-hangzhou |
| DatabaseInstanceId |
string |
Yes |
The ID of the lightweight database instance. |
db-38263fa955774501a2ae1bdaed6f**** |
| ClientToken |
string |
No |
A client-generated token to ensure the idempotence of the request. The token must be unique for each request, contain only ASCII characters, and not exceed 64 characters in length. For more information, see How to ensure idempotence. |
123e4567-e89b-12d3-a456-426655440000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
30637AD6-D977-4833-A54C-CC89483E**** |
| PublicConnection |
string |
The public connection. |
db-38263fa955774501a2ae1bdaed6f****.mysql.rds.aliyuncs.com |
Examples
Success response
JSON format
{
"RequestId": "30637AD6-D977-4833-A54C-CC89483E****",
"PublicConnection": "db-38263fa955774501a2ae1bdaed6f****.mysql.rds.aliyuncs.com"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.