Re-applies a prefix list.
Operation description
-
If you modify the information about a prefix list but the modification is not automatically applied to the route table that is associated with the prefix list, you can call this operation to apply the latest prefix list to the associated route table.
-
The RetryVpcPrefixListAssociation operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the background. You can call the GetVpcPrefixListAssociations to check whether the prefix list is re-applied.
- If the prefix list is in the Modifying state, the prefix list is being re-applied.
- If the prefix list is in the ModifyFailed state, the prefix list fails to be re-applied.
- If the prefix list is in the Created state, the prefix list is re-applied.
-
After you call the RetryVpcPrefixListAssociation operation to re-apply a prefix list, you cannot call the operation again until the current task is complete.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:RetryVpcPrefixListAssociation | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PrefixListId | string | Yes | The ID of the prefix list that you want to re-apply. | pl-0b7hwu67**** |
ResourceType | string | Yes | The type of the resource with which the prefix list is associated. Valid values:
| vpcRouteTable |
ResourceId | string | Yes | The ID of the associated resource. | vtb-bp1drpcfz9srr393h**** |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters. Note
If you do not set this parameter, the system automatically uses RequestId as ClientToken. RequestId may be different for each API request.
| 123e4567-e89b-12d3-a456-426655440000 |
DryRun | boolean | No | Specifies whether to only precheck the request. Valid values:
| false |
RegionId | string | Yes | The region ID of the prefix list that you want to re-apply. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | UnsupportedRegion | The feature of prefixList entry is not supported in this region. | - |
400 | OperationDenied.SystemPrefixList | The operation is not allowed because of SystemPrefixList. | You cannot manage the system prefix list. |
400 | OperationFailed.OperateShareResource | This is not allowed to operate shared prefixList. | - |
400 | IncorrectStatus.PrefixList | The status of prefixList is incorrect. | The prefix list is in an unstable state. |
400 | OperationFailed.NotExistAssociateRelation | The operation is failed because of association not exist. | - |
400 | ResourceNotFound.PrefixList | The specified resource of prefixList is not found. | The prefix list does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-09-21 | The Error code has changed | View Change Details |
2023-08-30 | API Description Update. The API operation is not deprecated.. The Error code has changed | View Change Details |