Changing the Primary Key of a Multi-Region AWS Key
Use the post /v1/cckm/aws/keys/{id}/update-primary-region
API to set a replica key as the primary key of a multi-region AWS key. The original primary key becomes the replica key.
Syntax
Here, {id}
represents the resource ID of the replica key that you want to set as the primary key for the multi-region AWS key.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
PrimaryRegion | string | Region ID (for example, us-east-1 or ap-southeast-2 ) of the new primary key. The replica with the specified resource ID must exist in the PrimaryRegion region. |
Example Request
Example Response
The sample output shows that the replica key (with the unique ID a152ad26-df3f-4116-abae-b93a914e76ac
) is set as the new primary key in the AWS region "ap-southeast-1"
.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.