This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

List Transit Gateway Rules

1 - 1.2

scpcli vpc transit-gateway-rule list
--transit_gateway_id <value>
[--size <value>]
[--page <value>]
[--sort <value>]
[--id <value>]
[--tgw_connection_vpc_id <value>]
[--tgw_connection_vpc_name <value>]
[--source_type <value>]
[--destination_type <value>]
[--destination_cidr <value>]
[--state <value>]
[--rule_type <value>]

Description

Get Transit Gateway Rule list.

State ACTIVE (CURRENT)

VersionNot Before
1.2-

Parameters

NameTypeDescriptionExample
transit_gateway_id
required
stringTransit Gateway IDfe860e0af0c04dcd8182b84f907f31f4
size
optional
integersize20
page
optional
integerpage0
sort
optional
stringsortcreated_at:desc
id
optional
stringRouting Rule ID43772aff4539403d9ba74bf1fdaa00c8
tgw_connection_vpc_id
optional
stringVPC ID Connected to Transit Gateway.ffeced8e191c478eabd66b6e2cab8e34
tgw_connection_vpc_name
optional
stringVPC Name Connected to Transit Gateway.ConnectedVpcName
source_type
optional
****Source TypeTGW
destination_type
optional
****Destination TypeVPC
destination_cidr
optional
stringDestination CIDR192.167.5.0/24
state
optional
****StateACTIVE
rule_type
optional
****Rule TypeTGW_VPC

Responses

NameDescriptionExample
idRouting Rule ID43772aff4539403d9ba74bf1fdaa00c8
account_idAccount IDf1e6c81a2b054582878cb9724dc2ce9f
created_atCreated At2024-05-17T00:23:17Z
created_byCreated By90dddfc2b1e04edba54ba2b41539a9ac
descriptionDescriptionRouting Rule Description
destination_cidrDestination CIDR192.167.5.0/24
destination_resource_idDestination Resource IDceb44ea5ecb34a49b16495f9a63b0718
destination_resource_nameDestination Resource NameVpcName
destination_typeDestination TypeVPC
modified_atModified At2024-05-17T00:23:17Z
modified_byModified By90dddfc2b1e04edba54ba2b41539a9ac
rule_typeRule TypeTGW_VPC
source_resource_idSource Resource ID8582cc5d89994a42ad53282fd4a8d8be
source_resource_nameSource Resource NameTgwName
source_typeSource TypeTGW
stateStateACTIVE
tgw_connection_vpc_idVPC ID Connected to Transit Gateway.ffeced8e191c478eabd66b6e2cab8e34
tgw_connection_vpc_nameVPC Name Connected to Transit Gateway.ConnectedVpcName

2 - 1.1

scpcli vpc transit-gateway-rule list
--transit_gateway_id <value>
[--size <value>]
[--page <value>]
[--sort <value>]
[--id <value>]
[--tgw_connection_vpc_id <value>]
[--tgw_connection_vpc_name <value>]
[--source_type <value>]
[--destination_type <value>]
[--destination_cidr <value>]
[--state <value>]

Description

Get Transit Gateway Rule list.

State ACTIVE (SUPPORTED)

VersionNot Before
1.120261130

Parameters

NameTypeDescriptionExample
transit_gateway_id
required
stringTransit Gateway IDfe860e0af0c04dcd8182b84f907f31f4
size
optional
integersize20
page
optional
integerpage0
sort
optional
stringsortcreated_at:desc
id
optional
stringRouting Rule ID43772aff4539403d9ba74bf1fdaa00c8
tgw_connection_vpc_id
optional
stringVPC ID Connected to Transit Gateway.ffeced8e191c478eabd66b6e2cab8e34
tgw_connection_vpc_name
optional
stringVPC Name Connected to Transit Gateway.ConnectedVpcName
source_type
optional
****Source TypeTGW
destination_type
optional
****Destination TypeVPC
destination_cidr
optional
stringDestination CIDR192.167.5.0/24
state
optional
****StateACTIVE

Responses

NameDescriptionExample
idRouting Rule ID43772aff4539403d9ba74bf1fdaa00c8
account_idAccount IDf1e6c81a2b054582878cb9724dc2ce9f
created_atCreated At2024-05-17T00:23:17Z
created_byCreated By90dddfc2b1e04edba54ba2b41539a9ac
descriptionDescriptionRouting Rule Description
destination_cidrDestination CIDR192.167.5.0/24
destination_resource_idDestination Resource IDceb44ea5ecb34a49b16495f9a63b0718
destination_resource_nameDestination Resource NameVpcName
destination_typeDestination TypeVPC
modified_atModified At2024-05-17T00:23:17Z
modified_byModified By90dddfc2b1e04edba54ba2b41539a9ac
source_resource_idSource Resource ID8582cc5d89994a42ad53282fd4a8d8be
source_resource_nameSource Resource NameTgwName
source_typeSource TypeTGW
stateStateACTIVE
tgw_connection_vpc_idVPC ID Connected to Transit Gateway.ffeced8e191c478eabd66b6e2cab8e34
tgw_connection_vpc_nameVPC Name Connected to Transit Gateway.ConnectedVpcName

3 - 1.0

scpcli vpc transit-gateway-rule list
--transit_gateway_id <value>
[--size <value>]
[--page <value>]
[--sort <value>]
[--id <value>]
[--tgw_connection_vpc_id <value>]
[--tgw_connection_vpc_name <value>]
[--source_type <value>]
[--destination_type <value>]
[--destination_cidr <value>]
[--state <value>]

Description

Get Transit Gateway Rule list.

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.020251231

Parameters

NameTypeDescriptionExample
transit_gateway_id
required
stringTransit Gateway IDfe860e0af0c04dcd8182b84f907f31f4
size
optional
integersize20
page
optional
integerpage0
sort
optional
stringsortcreated_at:desc
id
optional
stringRouting Rule ID43772aff4539403d9ba74bf1fdaa00c8
tgw_connection_vpc_id
optional
stringVPC ID Connected to Transit Gateway.ffeced8e191c478eabd66b6e2cab8e34
tgw_connection_vpc_name
optional
stringVPC Name Connected to Transit Gateway.ConnectedVpcName
source_type
optional
****Source TypeTGW
destination_type
optional
****Destination TypeVPC
destination_cidr
optional
stringDestination CIDR192.167.5.0/24
state
optional
****StateACTIVE

Responses

NameDescriptionExample
idRouting Rule ID43772aff4539403d9ba74bf1fdaa00c8
account_idAccount IDf1e6c81a2b054582878cb9724dc2ce9f
created_atCreated At2024-05-17T00:23:17Z
created_byCreated By90dddfc2b1e04edba54ba2b41539a9ac
descriptionDescriptionRouting Rule Description
destination_cidrDestination CIDR192.167.5.0/24
destination_resource_idDestination Resource IDceb44ea5ecb34a49b16495f9a63b0718
destination_resource_nameDestination Resource NameVpcName
destination_typeDestination TypeVPC
modified_atModified At2024-05-17T00:23:17Z
modified_byModified By90dddfc2b1e04edba54ba2b41539a9ac
source_resource_idSource Resource ID8582cc5d89994a42ad53282fd4a8d8be
source_resource_nameSource Resource NameTgwName
source_typeSource TypeTGW
stateStateACTIVE
tgw_connection_vpc_idVPC ID Connected to Transit Gateway.ffeced8e191c478eabd66b6e2cab8e34
tgw_connection_vpc_nameVPC Name Connected to Transit Gateway.ConnectedVpcName