Create Network

Create Network

Create and save a Network upon validation on Network fields

Request
URI
POST
https://{api_host}/iaas-proxy-provider/api/services/{serviceId}/network/networks
COPY
Path Parameters
string
serviceId
Required

The ID of the IaaS service as registered in the Component Registry service.


Request Body

The Network to be created and saved.

network of type(s) application/json
Required
This request body class requires all of the following: networkObject , Inlinenetwork1
{
    "name": "string",
    "description": "string",
    "externalId": "string",
    "id": "string",
    "extensionData": {
        "entries": [
            {
                "key": "string"
            }
        ]
    },
    "networkBackings": [
        {
            "computeResourceName": "string",
            "externalId": "string",
            "computeResourceNetworkId": "string",
            "id": "string",
            "computeResourceId": "string",
            "extensionData": {
                "entries": [
                    {
                        "key": "string"
                    }
                ]
            }
        }
    ],
    "machineIdCollection": [
        "string"
    ],
    "networkProfileType": "string",
    "networkTypeId": "string",
    "natRules": [
        {
            "networkInterfaceId": "string",
            "translatedAddress": "string",
            "componentId": "string",
            "userDefined": false,
            "externalId": "string",
            "description": "string",
            "targetType": "string",
            "type": "string",
            "enabled": false,
            "protocol": "string",
            "edgeId": "string",
            "machineId": "string",
            "originalAddress": "string",
            "name": "string",
            "peerInterfaceIndex": 0,
            "action": "string",
            "translatedPort": "string",
            "interfaceIndex": 0,
            "id": "string",
            "tag": "string",
            "componentName": "string",
            "order": 0,
            "originalPort": "string"
        }
    ]
}
Responses
200

successful operation

Returns network of type(s) */*
This response body class contains all of the following: networkObject , Inlinenetwork1
{
    "name": "string",
    "description": "string",
    "externalId": "string",
    "id": "string",
    "extensionData": {
        "entries": [
            {
                "key": "string"
            }
        ]
    },
    "networkBackings": [
        {
            "computeResourceName": "string",
            "externalId": "string",
            "computeResourceNetworkId": "string",
            "id": "string",
            "computeResourceId": "string",
            "extensionData": {
                "entries": [
                    {
                        "key": "string"
                    }
                ]
            }
        }
    ],
    "machineIdCollection": [
        "string"
    ],
    "networkProfileType": "string",
    "networkTypeId": "string",
    "natRules": [
        {
            "networkInterfaceId": "string",
            "translatedAddress": "string",
            "componentId": "string",
            "userDefined": false,
            "externalId": "string",
            "description": "string",
            "targetType": "string",
            "type": "string",
            "enabled": false,
            "protocol": "string",
            "edgeId": "string",
            "machineId": "string",
            "originalAddress": "string",
            "name": "string",
            "peerInterfaceIndex": 0,
            "action": "string",
            "translatedPort": "string",
            "interfaceIndex": 0,
            "id": "string",
            "tag": "string",
            "componentName": "string",
            "order": 0,
            "originalPort": "string"
        }
    ]
}

201

The network is created.

Returns network of type(s) */*
This response body class contains all of the following: networkObject , Inlinenetwork1
{
    "name": "string",
    "description": "string",
    "externalId": "string",
    "id": "string",
    "extensionData": {
        "entries": [
            {
                "key": "string"
            }
        ]
    },
    "networkBackings": [
        {
            "computeResourceName": "string",
            "externalId": "string",
            "computeResourceNetworkId": "string",
            "id": "string",
            "computeResourceId": "string",
            "extensionData": {
                "entries": [
                    {
                        "key": "string"
                    }
                ]
            }
        }
    ],
    "machineIdCollection": [
        "string"
    ],
    "networkProfileType": "string",
    "networkTypeId": "string",
    "natRules": [
        {
            "networkInterfaceId": "string",
            "translatedAddress": "string",
            "componentId": "string",
            "userDefined": false,
            "externalId": "string",
            "description": "string",
            "targetType": "string",
            "type": "string",
            "enabled": false,
            "protocol": "string",
            "edgeId": "string",
            "machineId": "string",
            "originalAddress": "string",
            "name": "string",
            "peerInterfaceIndex": 0,
            "action": "string",
            "translatedPort": "string",
            "interfaceIndex": 0,
            "id": "string",
            "tag": "string",
            "componentName": "string",
            "order": 0,
            "originalPort": "string"
        }
    ]
}