Associe une table de routage de passerelle à une instance de passerelle IPv4 ou IPv6 dans le même VPC.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
vpc:AssociateRouteTableWithGateway |
create |
*Ipv4Gateway
*RouteTable
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| RegionId |
string |
Oui |
L'identifiant de la région de la table de routage de passerelle et de l'instance de passerelle IPv4 à associer. Vous pouvez appeler l'opération DescribeRegions pour obtenir l'identifiant de la région. |
ap-southeast-6 |
| RouteTableId |
string |
Oui |
L'identifiant de la table de routage de passerelle à associer. |
vtb-5ts0ohchwkp3dydt2**** |
| ClientToken |
string |
Non |
Le jeton client utilisé pour garantir l'idempotence de la requête. Le client génère cette valeur. La valeur doit être unique pour chaque requête et ne peut pas dépasser 64 caractères ASCII. Remarque
Si vous ne spécifiez pas ce paramètre, le système utilise le RequestId de la requête API comme ClientToken. Le RequestId peut varier pour chaque requête API. |
123e4567-e89b-12d3-a456-426655440000 |
| DryRun |
boolean |
Non |
Indique si un test à blanc doit être effectué. Valeurs valides :
|
false |
| GatewayId |
string |
Oui |
L'identifiant de l'instance de la passerelle IPv4 à associer. L'instance de passerelle IPv4 à associer doit être dans l'état Activated. |
ipv4gw-5tsnc6s4ogsedtp3k**** |
| GatewayType |
string |
Non |
Le type de l'instance de passerelle à associer. |
Ipv4Gateway |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| RequestId |
string |
L'identifiant de la requête. |
F89C2176-8F10-55EF-90CF-CF99D1E3F816 |
Exemples
JSON format
{
"RequestId": "F89C2176-8F10-55EF-90CF-CF99D1E3F816"
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | ResourceNotFound.Ipv4Gateway | The specified resource ipv4Gateway is not found. | The IPv4 gateway is not found and cannot be deleted. |
| 400 | IncorrectStatus.Ipv4Gateway | The status of %s [%s] is incorrect. | The IPv4 gateway is in an invalid state. Try again later. |
| 400 | ResourceAlreadyAssociated.Ipv4Gateway | The specified resource %s is already associated. | The IPv4 gateway is already associated. |
| 400 | ResourceNotFound.GatewayRouteTable | The specified resource GatewayRouteTable is not found. | The gateway route table cannot be found. |
| 400 | IncorrectStatus.GatewayRouteTable | The status of %s [%s] is incorrect. | The gateway route table is in an invalid state. Try again later. |
| 400 | ResourceAlreadyAssociated.GatewayRouteTable | The specified resource %s is already associated. | The gateway route table is already associated with a gateway of the same type. |
| 400 | OperationDenied.Ipv4GatewayNotActive | The operation is not allowed because of ipv4Gateway [%s] is not active. | The operation is not allowed because the IPv4 gateway is not activated. |
| 400 | OperationDenied.RouteTableTypeIncorrect | The operation is not allowed because of routeTableType is incorrect. | The operation is not allowed because the type of route table is not supported. |
| 400 | ResourceNotFound.RouteTable | The specified resource gatewayRouteTable is not found. | The gateway route table does not exist. |
| 400 | OperationDenied.GatewayAndTableNotInOneVpc | The operation is not allowed because of GatewayAndTableNotInOneVpc. | The gateway route table and gateway do not belong to the same VPC. |
| 400 | IncorrectStatus.RouteTable | The status of the specified route table is incorrect. | |
| 400 | IllegalParam.GatewayType | The param of %s is illegal. | Invalid GatewayType value. |
| 400 | UnsupportedFeature.Ipv6GatewayRouteTable | The feature of %s is not supported. | The border gateway route table cannot be associated with the gateway. |
| 400 | OperationDenied.IngressRoutingNotSupportAnycast | The operation is not allowed because ingress routing not support anycast. | The operation is not allowed because ingress routing not support anycast. |
| 400 | OperationDenied.ExistPublicIpv6IpInVpc | Operation denied because IPV6 public ip exists in VPC. | The operation failed because the ipv6 public IP exists in the VPC. |
| 400 | ResourceNotFound.Ipv6Gateway | The specified resource of IPv6 Gateway is not found. | The incoming IPv6 gateway instance does not exist. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.