computing / Client / create_customer_gateway

create_customer_gateway

computing.Client.create_customer_gateway(**kwargs)

カスタマーゲートウェイを新規作成します。

See also: NIFCLOUD API Documentation

Request Syntax

response = client.create_customer_gateway(
    BgpAsn=123,
    IpAddress='string',
    NiftyCustomerGatewayDescription='string',
    NiftyCustomerGatewayName='string',
    NiftyLanSideCidrBlock='string',
    NiftyLanSideIpAddress='string',
    Type='IPsec'|'IPsec VTI'|'L2TPv3 / IPsec'
)
Parameters:
  • BgpAsn (integer) –

  • IpAddress (string) – [REQUIRED]

  • NiftyCustomerGatewayDescription (string) –

  • NiftyCustomerGatewayName (string) –

  • NiftyLanSideCidrBlock (string) –

  • NiftyLanSideIpAddress (string) –

  • Type (string) –

Return type:

dict

Returns:

Response Syntax

{
    'CustomerGateway': {
        'CreatedTime': datetime(2015, 1, 1),
        'CustomerGatewayId': 'string',
        'IpAddress': 'string',
        'NiftyCustomerGatewayDescription': 'string',
        'NiftyCustomerGatewayName': 'string',
        'NiftyLanSideCidrBlock': 'string',
        'NiftyLanSideIpAddress': 'string',
        'State': 'string',
        'TagSet': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    },
    'RequestId': 'string'
}

Response Structure

  • (dict) –

    • CustomerGateway (dict) –

      • CreatedTime (datetime) –

      • CustomerGatewayId (string) –

      • IpAddress (string) –

      • NiftyCustomerGatewayDescription (string) –

      • NiftyCustomerGatewayName (string) –

      • NiftyLanSideCidrBlock (string) –

      • NiftyLanSideIpAddress (string) –

      • State (string) –

      • TagSet (list) –

        • (dict) –

          • Key (string) –

          • Value (string) –

    • RequestId (string) –