Passa al contenuto principale

Create Subnet

POST 

/projects/:projectId/providers/Aruba.Network/vpcs/:vpcId/subnets

Create Subnet

Request

Path Parameters

    projectId stringrequired

    unique identifier of the project CMP

    vpcId stringrequired

    unique identifier of the vpc in which the subnet will be created

Query Parameters

    api-version string

    The requested API version

    Default value: 1.0

Body

the subnet to create

    metadata

    object

    Metadata of the resource

    namestring

    Name of the resource

    location

    object

    Contains information about the Region of a resource

    valuestring

    Value of the region in which the resource will be located. Available regions at present:

    • ITBG-Bergamo

    For more information, check the documentation.

    tagsstring[]nullable

    List of tags for the resource

    properties

    object

    nullable

    Properties of a subnet to create

    typeSubnetType (string)

    Type of the subnet. Available values:

    • Basic
    • Advanced

    With Basic type, every configuration settings of the subnet will be automatically handled by the CMP. With Advanced type, configuration settings must be evaluated by the user.

    Possible values: [Basic, Advanced]

    defaultboolean

    Indicates if the subnet must be a default subnet. Only one default subnet for vpc is admissible.

    network

    object

    nullable

    Details of the network

    addressstring

    Address of the network in CIDR Notation. The IP range must be between 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16

    dhcp

    object

    nullable

    Details of the dhcp

    enabledboolean

    True if you want to enalbe the DHCP

    range

    object

    Range values for ip addresses

    startstring

    Starting ip address

    countint32

    Number of available ip addresses

    routes

    object[]

    nullable

    List of routes

  • Array [

  • addressstring

    Ip address of the route

    gatewaystring

    Gateway

  • ]

  • dnsstring[]nullable

    List of dns (ip addresses)

Responses

Created

Schema

    metadata

    object

    nullable

    idstringnullable
    uristringnullable
    namestringnullable

    location

    object

    nullable

    codestringnullable
    countrystringnullable
    citystringnullable
    namestringnullable
    valuestringnullable

    project

    object

    nullable

    idstringnullable
    tagsstring[]nullable

    category

    object

    nullable

    namestringnullable
    providerstringnullable

    typology

    object

    nullable

    idstringnullable
    namestringnullable
    creationDatedate-timenullable
    createdBystringnullable
    updateDatedate-timenullable
    updatedBystringnullable
    versionstringnullable
    createdUserstringnullable
    updatedUserstringnullable

    status

    object

    nullable

    statestringnullable
    creationDatedate-timenullable

    disableStatusInfo

    object

    nullable

    isDisabledboolean
    reasonsstring[]nullable

    previousStatus

    object

    nullable

    statestringnullable
    creationDatedate-timenullable
    failureReasonstringnullable

    properties

    object

    nullable

    linkedResources

    object[]

    nullable

  • Array [

  • uristringnullable
    strictCorrelationboolean
  • ]

  • vpc

    object

    nullable

    the vpc where the subnet belongs

    uristringnullable
    typeSubnetType (string)

    type of the subnet

    Possible values: [Basic, Advanced]

    defaultboolean

    Indicates if the security group is the default one within the vpc

    network

    object

    nullable

    Details of the network

    addressstringnullable

    Address of the network in CIDR Notation

    gatewaystringnullable

    IP address of the gateway

    dhcp

    object

    nullable

    Details of the dhcp

    enabledboolean

    True if dhcp is enables

    range

    object

    nullable

    Range values for ip addresses

    startstringnullable

    First ip address

    countint32

    Number of available ip addresses

    laststringnullable

    Last ip address

    routes

    object[]

    nullable

    List of routes

  • Array [

  • addressstringnullable

    Ip address of the route

    gatewaystringnullable

    Gateway

  • ]

  • dnsstring[]nullable

    List of dns