Creating a network container

Create a network container by sending a POST /csm/logicalhostingenvironment request. The following example shows an HTTP request that creates a network container:

{
    "timeout": -1,
    "preCallout": "",
    "postCallout": "",
    "callbackURL": "http://172.22.183.149:9090/callback/bc8b4e88-3b63-4b1f-a817-9a3088229bb1",
    "operationParams": [
        {
            "name": "logicalHostingEnvironment",
            "type": "com.bmc.cloud.model.beans.LogicalHostingEnvironment",
            "multiplicity": "1",
            "value": {
                "cloudClass": "com.bmc.cloud.model.beans.LogicalHostingEnvironment",
                "name": "API-LHE-78",
                "logicalHostingEnvironmentBlueprintObject": {
                    "cloudClass": "com.bmc.cloud.model.beans.LogicalHostingEnvironmentBlueprint",
                    "guid": "7c977bef-9abf-430a-9a47-ad886bb65311"
                },
                "logicalNetworkObject": [
                    {
                        "cloudClass": "com.bmc.cloud.model.beans.LogicalNetwork",
                        "guid": "7c5cdc97-6fcc-4438-8c13-e48b0b5136d8",
                        "networkAddress": "10.137.144.0",
                        "networkMask": "255.255.255.0",
                        "isEnabled": true,
                        "isLocked": false
                    },
                    {
                        "cloudClass": "com.bmc.cloud.model.beans.LogicalNetwork",
                        "guid": "b4d8c2b5-31f8-48de-bb3e-7f57960f2708",
                        "networkAddress": "16.0.0.0",
                        "networkMask": "255.255.255.0",
                        "isEnabled": true,
                        "isLocked": false
                    },
                    {
                        "cloudClass": "com.bmc.cloud.model.beans.LogicalNetwork",
                        "guid": "3aa74988-d823-414e-8108-67e022023838",
                        "networkAddress": "10.137.0.0",
                        "networkMask": "255.255.255.0",
                        "isEnabled": true,
                        "isLocked": false
                    }
                ],
                "logicalFirewallObject": [
                    {
                        "cloudClass": "com.bmc.cloud.model.beans.LogicalPerimeterFirewall",
                        "guid": "16488ca6-bfed-4328-b5bb-5efac5fbc0f9",
                        "isEnabled": "true",
                        "isLocked": false,
                        "isManuallyEnableable": true,
                        "isTemplate": false,
                        "name": "VFW"
                    }
                ],
                "logicalLoadBalancerObject": [
                    {
                        "cloudClass": "com.bmc.cloud.model.beans.LogicalLoadBalancer",
                        "guid": "a005506c-a748-4d83-a73b-80fb048ce237",
                        "isEnabled": "true",
                        "isLocked": false
                    }
                ],
                "logicalZoneObject": [
                    {
                        "cloudClass": "com.bmc.cloud.model.beans.LogicalZone",
                        "guid": "67703ae6-6d5d-4e9d-8160-aa9beefe0aa3",
                        "isEnabled": true,
                        "logicalNetworkObject": [
                            {
                                "cloudClass": "com.bmc.cloud.model.beans.LogicalNetwork",
                                "guid": "3aa74988-d823-414e-8108-67e022023838",
                                "networkAddress": "10.137.0.0",
                                "networkMask": "255.255.255.0",
                                "isEnabled": true,
                                "isLocked": false
                            }
                        ]
                    }
                ]
            }
        },
        {
            "name": "contextId",
            "type": "java.lang.String",
            "multiplicity": "1",
            "value": "5710dcec-cfc7-4d19-a43a-4230198d1ef0"
        }
    ]
}

Was this page helpful? Yes No Submitting... Thank you

Comments