Creates an access strategy based on the specified parameters.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
alidns:AddGtmAccessStrategy | create | *gtminstance
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
Lang | string | No | The language. | en |
InstanceId | string | Yes | The instance ID. | instance1 |
StrategyName | string | Yes | The policy name. | Access policy |
DefaultAddrPoolId | string | Yes | The ID of the primary address pool collection. | hrsix |
FailoverAddrPoolId | string | Yes | The ID of the failover address pool collection. If a failover address pool collection is not configured, set this parameter to EMPTY. | hrsyw |
AccessLines | string | Yes | The source of the DNS requests. | ["default", "drpeng"] |
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The unique request ID. | 29D0F8F8-5499-4F6C-9FDC-1EE13BF55925 |
StrategyId | string | The policy ID. | strategyid |
Examples
Success response
JSON format
{
"RequestId": "29D0F8F8-5499-4F6C-9FDC-1EE13BF55925",
"StrategyId": "strategyid"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.