computing / Client / nifty_create_router

nifty_create_router

computing.Client.nifty_create_router(**kwargs)

ルーターを新規作成します。

ルーターに割り当てるネットワークを指定するためには、ネットワークIDまたはネットワーク名が必要です。

作成したルーターのゾーンは指定したネットワークと同一のゾーンになります。

See also: NIFCLOUD API Documentation

Request Syntax

response = client.nifty_create_router(
    AccountingType='1'|'2',
    AvailabilityZone='string',
    Description='string',
    NetworkInterface=[
        {
            'DeviceIndex': 123,
            'Dhcp': True|False,
            'DhcpConfigId': 'string',
            'DhcpOptionsId': 'string',
            'IpAddress': 'string',
            'ListOfRequestSecurityGroupId': [
                'string',
            ],
            'NetworkId': 'string',
            'NetworkName': 'string'
        },
    ],
    RouterName='string',
    SecurityGroup=[
        'string',
    ],
    Type='small'|'medium'|'large'
)
Parameters:
  • AccountingType (string) –

  • AvailabilityZone (string) –

  • Description (string) –

  • NetworkInterface (list) –

    • (dict) –

      • DeviceIndex (integer) –

      • Dhcp (boolean) –

      • DhcpConfigId (string) –

      • DhcpOptionsId (string) –

      • IpAddress (string) –

      • ListOfRequestSecurityGroupId (list) –

        • (string) –

      • NetworkId (string) –

      • NetworkName (string) –

  • RouterName (string) –

  • SecurityGroup (list) –

    • (string) –

  • Type (string) –

Return type:

dict

Returns:

Response Syntax

{
    'RequestId': 'string',
    'Router': {
        'AccountingType': 'string',
        'AvailabilityZone': 'string',
        'BackupInformation': {
            'IsBackup': True|False
        },
        'Description': 'string',
        'GroupSet': [
            {
                'GroupId': 'string'
            },
        ],
        'NetworkInterfaceSet': [
            {
                'Dhcp': True|False,
                'DhcpConfigId': 'string',
                'DhcpOptionsId': 'string',
                'IpAddress': 'string',
                'NetworkId': 'string',
                'NetworkName': 'string'
            },
        ],
        'NextMonthAccountingType': 'string',
        'RouterId': 'string',
        'RouterName': 'string',
        'State': 'string',
        'Type': 'string',
        'VersionInformation': {
            'IsLatest': True|False,
            'Version': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • RequestId (string) –

    • Router (dict) –

      • AccountingType (string) –

      • AvailabilityZone (string) –

      • BackupInformation (dict) –

        • IsBackup (boolean) –

      • Description (string) –

      • GroupSet (list) –

        • (dict) –

          • GroupId (string) –

      • NetworkInterfaceSet (list) –

        • (dict) –

          • Dhcp (boolean) –

          • DhcpConfigId (string) –

          • DhcpOptionsId (string) –

          • IpAddress (string) –

          • NetworkId (string) –

          • NetworkName (string) –

      • NextMonthAccountingType (string) –

      • RouterId (string) –

      • RouterName (string) –

      • State (string) –

      • Type (string) –

      • VersionInformation (dict) –

        • IsLatest (boolean) –

        • Version (string) –