All Products
Search
Document Center

ApsaraDB for OceanBase:ModifyTenantPrimaryZone

Last Updated:Apr 29, 2024

You can call this operation to switch the primary zone of the tenant.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TenantIdstringYes

The return result of the request.

ob2mr3oae0****
InstanceIdstringYes

The primary zone of the tenant.
It is one of the zones in which the cluster is deployed.

ob317v4uif****
PrimaryZonestringYes

The ID of the vSwitch.

cn-hangzhou-h
UserVSwitchIdstringNo

The request ID.

vsw-xxx
ModifyTypestringNo

The switching mode.

Enumeration Value:
  • AllLink
  • Temporary
AllLink
PrimaryZoneDeployTypestringNo

Example 1

Enumeration Value:
  • RANDOM
  • STATIC
RANDOM
MasterIntranetAddressZonestringNo
http(s)://[Endpoint]/?Action=ModifyTenantPrimaryZone
&TenantId=ob2mr3oae0****
&InstanceId=ob317v4uif****
&PrimaryZone=cn-hangzhou-h
&Common request parameters
cn-hangzhou-h

Response parameters

ParameterTypeDescriptionExample
object

You can call this operation to switch the primary zone of the tenant.

Examples

Sample success responses

JSONformat

{
  "RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-04-15The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: UserVpcOwnerId
2024-02-02The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: VpcId
2023-12-26The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: TenantEndpointDirectId
    Added Input Parameters: UserDirectVSwitchId
2023-07-04The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: TenantEndpointId
    delete Input Parameters: ModifyType
    delete Input Parameters: PrimaryZoneDeployType
2022-09-28The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: PrimaryZoneDeployType
    Added Input Parameters: MasterIntranetAddressZone