computing / Client / associate_route_table
associate_route_table
- computing.Client.associate_route_table(**kwargs)
指定したルーターへルートテーブルを設定する。
ルートテーブルを指定するためには、ルートテーブルIDが必要です。
また、ルーターを指定するためには、ルーターユニークIDまたはルーター名が必要です。
ルーターがバックアップを保持している場合は、パラメーター「Agreement」に「true」を設定し、バックアップを解除する必要があります。バックアップを保持しているかどうかはAPI「NiftyDescribeRouters」のレスポンス値「isBackup」で確認できます。
See also: NIFCLOUD API Documentation
Request Syntax
response = client.associate_route_table( Agreement=True|False, RouteTableId='string', RouterId='string', RouterName='string', SubnetId='string' )
- Parameters:
Agreement (boolean) –
RouteTableId (string) – [REQUIRED]
RouterId (string) –
RouterName (string) –
SubnetId (string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'AssociationId': 'string', 'RequestId': 'string' }
Response Structure
(dict) –
AssociationId (string) –
RequestId (string) –