Chilkat Online Tools

VBScript / Core Services API / CreateSubnet

Back to Collection Items

Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)

' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.Http")
set http = CreateObject("Chilkat.Http")

' Use this online tool to generate code from sample JSON: Generate Code to Create JSON

' The following JSON is sent in the request body.

' {
'   "compartmentId": "{{compartment_ocid}}",
'   "cidrBlock": "et ut irure",
'   "vcnId": "officia nostrud veniam dolore",
'   "availabilityDomain": "ea",
'   "definedTags": {},
'   "dhcpOptionsId": "sed qui",
'   "displayName": "ex aliquip consectetur",
'   "dnsLabel": "quis ut",
'   "freeformTags": {},
'   "ipv6CidrBlock": "exercitation",
'   "prohibitPublicIpOnVnic": true,
'   "routeTableId": "occaecat fugiat veniam",
'   "securityListIds": [
'     "do",
'     "laboris aliqua aute voluptate eu"
'   ]
' }

' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.JsonObject")
set json = CreateObject("Chilkat.JsonObject")
success = json.UpdateString("compartmentId","{{compartment_ocid}}")
success = json.UpdateString("cidrBlock","et ut irure")
success = json.UpdateString("vcnId","officia nostrud veniam dolore")
success = json.UpdateString("availabilityDomain","ea")
success = json.UpdateNewObject("definedTags")
success = json.UpdateString("dhcpOptionsId","sed qui")
success = json.UpdateString("displayName","ex aliquip consectetur")
success = json.UpdateString("dnsLabel","quis ut")
success = json.UpdateNewObject("freeformTags")
success = json.UpdateString("ipv6CidrBlock","exercitation")
success = json.UpdateBool("prohibitPublicIpOnVnic",1)
success = json.UpdateString("routeTableId","occaecat fugiat veniam")
success = json.UpdateString("securityListIds[0]","do")
success = json.UpdateString("securityListIds[1]","laboris aliqua aute voluptate eu")

http.SetRequestHeader "opc-retry-token","aliqua enim i"
http.SetRequestHeader "Content-Type","application/json"
http.SetRequestHeader "x-content-sha256","{{content_sha256}}"
http.SetRequestHeader "Authorization","{{signature}}"
http.SetRequestHeader "Date","{{date}}"

' resp is a Chilkat.HttpResponse
Set resp = http.PostJson3("https://iaas.{{region}}.oraclecloud.com/20160918/subnets","application/json",json)
If (http.LastMethodSuccess = 0) Then
    outFile.WriteLine(http.LastErrorText)
    WScript.Quit
End If

' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.StringBuilder")
set sbResponseBody = CreateObject("Chilkat.StringBuilder")
success = resp.GetBodySb(sbResponseBody)

' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.JsonObject")
set jResp = CreateObject("Chilkat.JsonObject")
success = jResp.LoadSb(sbResponseBody)
jResp.EmitCompact = 0

outFile.WriteLine("Response Body:")
outFile.WriteLine(jResp.Emit())

respStatusCode = resp.StatusCode
outFile.WriteLine("Response Status Code = " & respStatusCode)
If (respStatusCode >= 400) Then
    outFile.WriteLine("Response Header:")
    outFile.WriteLine(resp.Header)
    outFile.WriteLine("Failed.")

    WScript.Quit
End If

' Sample JSON response:
' (Sample code for parsing the JSON response is shown below)

' {
'   "vcnId": "sit",
'   "id": "reprehenderit Excepteur amet",
'   "compartmentId": "veniam ut dolore",
'   "cidrBlock": "ea aliquip Duis",
'   "routeTableId": "aute et",
'   "virtualRouterIp": "eiusmod do in pariatur",
'   "virtualRouterMac": "sit",
'   "lifecycleState": "PROVISIONING",
'   "availabilityDomain": "reprehenderit est Excepteur laboris",
'   "definedTags": {},
'   "dhcpOptionsId": "in ex",
'   "displayName": "ut Ut ad elit",
'   "dnsLabel": "ipsum dolor sin",
'   "freeformTags": {},
'   "ipv6CidrBlock": "dolore id",
'   "ipv6PublicCidrBlock": "est et nostrud adipisicing",
'   "ipv6VirtualRouterIp": "enim",
'   "prohibitPublicIpOnVnic": false,
'   "securityListIds": [
'     "deserunt eiusmod sint aute",
'     "cupidatat tempor"
'   ],
'   "subnetDomainName": "ea dolore",
'   "timeCreated": "1973-06-27T12:37:33.677Z"
' }

' Sample code for parsing the JSON response...
' Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

vcnId = jResp.StringOf("vcnId")
id = jResp.StringOf("id")
compartmentId = jResp.StringOf("compartmentId")
cidrBlock = jResp.StringOf("cidrBlock")
routeTableId = jResp.StringOf("routeTableId")
virtualRouterIp = jResp.StringOf("virtualRouterIp")
virtualRouterMac = jResp.StringOf("virtualRouterMac")
lifecycleState = jResp.StringOf("lifecycleState")
availabilityDomain = jResp.StringOf("availabilityDomain")
dhcpOptionsId = jResp.StringOf("dhcpOptionsId")
displayName = jResp.StringOf("displayName")
dnsLabel = jResp.StringOf("dnsLabel")
ipv6CidrBlock = jResp.StringOf("ipv6CidrBlock")
ipv6PublicCidrBlock = jResp.StringOf("ipv6PublicCidrBlock")
ipv6VirtualRouterIp = jResp.StringOf("ipv6VirtualRouterIp")
prohibitPublicIpOnVnic = jResp.BoolOf("prohibitPublicIpOnVnic")
subnetDomainName = jResp.StringOf("subnetDomainName")
timeCreated = jResp.StringOf("timeCreated")
i = 0
count_i = jResp.SizeOfArray("securityListIds")
Do While i < count_i
    jResp.I = i
    strVal = jResp.StringOf("securityListIds[i]")
    i = i + 1
Loop

outFile.Close

Curl Command

curl -X POST
	-H "opc-retry-token: aliqua enim i"
	-H "Content-Type: application/json"
	-H "Date: {{date}}"
	-H "Authorization: {{signature}}"
	-H "x-content-sha256: {{content_sha256}}"
	-d '{
    "compartmentId": "{{compartment_ocid}}",
    "cidrBlock": "et ut irure",
    "vcnId": "officia nostrud veniam dolore",
    "availabilityDomain": "ea",
    "definedTags": {},
    "dhcpOptionsId": "sed qui",
    "displayName": "ex aliquip consectetur",
    "dnsLabel": "quis ut",
    "freeformTags": {},
    "ipv6CidrBlock": "exercitation",
    "prohibitPublicIpOnVnic": true,
    "routeTableId": "occaecat fugiat veniam",
    "securityListIds": [
        "do",
        "laboris aliqua aute voluptate eu"
    ]
}'
https://iaas.{{region}}.oraclecloud.com/20160918/subnets

Postman Collection Item JSON

{
  "name": "CreateSubnet",
  "request": {
    "method": "POST",
    "header": [
      {
        "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations (for example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmay be rejected).\n",
        "key": "opc-retry-token",
        "value": "aliqua enim i"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Date",
        "value": "{{date}}",
        "description": "(Required) Current Date",
        "type": "text"
      },
      {
        "key": "Authorization",
        "value": "{{signature}}",
        "description": "(Required) Signature Authentication on Authorization header",
        "type": "text"
      },
      {
        "key": "x-content-sha256",
        "value": "{{content_sha256}}",
        "description": "(Required) Content sha256 for POST, PUT and PATCH operations",
        "type": "text"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"compartmentId\": \"{{compartment_ocid}}\",\n    \"cidrBlock\": \"et ut irure\",\n    \"vcnId\": \"officia nostrud veniam dolore\",\n    \"availabilityDomain\": \"ea\",\n    \"definedTags\": {},\n    \"dhcpOptionsId\": \"sed qui\",\n    \"displayName\": \"ex aliquip consectetur\",\n    \"dnsLabel\": \"quis ut\",\n    \"freeformTags\": {},\n    \"ipv6CidrBlock\": \"exercitation\",\n    \"prohibitPublicIpOnVnic\": true,\n    \"routeTableId\": \"occaecat fugiat veniam\",\n    \"securityListIds\": [\n        \"do\",\n        \"laboris aliqua aute voluptate eu\"\n    ]\n}"
    },
    "url": {
      "raw": "{{baseUrl}}/subnets",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "subnets"
      ]
    },
    "description": "Creates a new subnet in the specified VCN. You can't change the size of the subnet after creation,\nso it's important to think about the size of subnets you need before creating them.\nFor more information, see [VCNs and Subnets](/iaas/Content/Network/Tasks/managingVCNs.htm).\nFor information on the number of subnets you can have in a VCN, see\n[Service Limits](/iaas/Content/General/Concepts/servicelimits.htm).\n\nFor the purposes of access control, you must provide the [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the subnet\nto reside. Notice that the subnet doesn't have to be in the same compartment as the VCN, route tables, or\nother Networking Service components. If you're not sure which compartment to use, put the subnet in\nthe same compartment as the VCN. For more information about compartments and access control, see\n[Overview of the IAM Service](/iaas/Content/Identity/Concepts/overview.htm). For information about OCIDs,\nsee [Resource Identifiers](/iaas/Content/General/Concepts/identifiers.htm).\n\nYou may optionally associate a route table with the subnet. If you don't, the subnet will use the\nVCN's default route table. For more information about route tables, see\n[Route Tables](/iaas/Content/Network/Tasks/managingroutetables.htm).\n\nYou may optionally associate a security list with the subnet. If you don't, the subnet will use the\nVCN's default security list. For more information about security lists, see\n[Security Lists](/iaas/Content/Network/Concepts/securitylists.htm).\n\nYou may optionally associate a set of DHCP options with the subnet. If you don't, the subnet will use the\nVCN's default set. For more information about DHCP options, see\n[DHCP Options](/iaas/Content/Network/Tasks/managingDHCP.htm).\n\nYou may optionally specify a *display name* for the subnet, otherwise a default is provided.\nIt does not have to be unique, and you can change it. Avoid entering confidential information.\n\nYou can also add a DNS label for the subnet, which is required if you want the Internet and\nVCN Resolver to resolve hostnames for instances in the subnet. For more information, see\n[DNS in Your Virtual Cloud Network](/iaas/Content/Network/Concepts/dns.htm).\n"
  },
  "response": [
    {
      "name": "The subnet was created.",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations (for example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmay be rejected).\n",
            "key": "opc-retry-token",
            "value": "aliqua enim i"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"qu\",\n    \"cidrBlock\": \"exercitation D\",\n    \"vcnId\": \"deserunt fugiat occaecat\",\n    \"availabilityDomain\": \"laborum culpa\",\n    \"definedTags\": {},\n    \"dhcpOptionsId\": \"Duis\",\n    \"displayName\": \"veniam mollit ipsum\",\n    \"dnsLabel\": \"Lorem volupta\",\n    \"freeformTags\": {},\n    \"ipv6CidrBlock\": \"irure nisi sit\",\n    \"prohibitPublicIpOnVnic\": true,\n    \"routeTableId\": \"non consequat fugiat\",\n    \"securityListIds\": [\n        \"voluptate cupidatat in\",\n        \"ipsum dolor esse\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/subnets",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subnets"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "etag",
          "value": "officia sed",
          "description": "For optimistic concurrency control. See `if-match`.\n"
        },
        {
          "key": "opc-request-id",
          "value": "officia sed",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"vcnId\": \"sit\",\n \"id\": \"reprehenderit Excepteur amet\",\n \"compartmentId\": \"veniam ut dolore\",\n \"cidrBlock\": \"ea aliquip Duis\",\n \"routeTableId\": \"aute et\",\n \"virtualRouterIp\": \"eiusmod do in pariatur\",\n \"virtualRouterMac\": \"sit\",\n \"lifecycleState\": \"PROVISIONING\",\n \"availabilityDomain\": \"reprehenderit est Excepteur laboris\",\n \"definedTags\": {},\n \"dhcpOptionsId\": \"in ex\",\n \"displayName\": \"ut Ut ad elit\",\n \"dnsLabel\": \"ipsum dolor sin\",\n \"freeformTags\": {},\n \"ipv6CidrBlock\": \"dolore id\",\n \"ipv6PublicCidrBlock\": \"est et nostrud adipisicing\",\n \"ipv6VirtualRouterIp\": \"enim\",\n \"prohibitPublicIpOnVnic\": false,\n \"securityListIds\": [\n  \"deserunt eiusmod sint aute\",\n  \"cupidatat tempor\"\n ],\n \"subnetDomainName\": \"ea dolore\",\n \"timeCreated\": \"1973-06-27T12:37:33.677Z\"\n}"
    },
    {
      "name": "Bad Request",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations (for example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmay be rejected).\n",
            "key": "opc-retry-token",
            "value": "aliqua enim i"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"qu\",\n    \"cidrBlock\": \"exercitation D\",\n    \"vcnId\": \"deserunt fugiat occaecat\",\n    \"availabilityDomain\": \"laborum culpa\",\n    \"definedTags\": {},\n    \"dhcpOptionsId\": \"Duis\",\n    \"displayName\": \"veniam mollit ipsum\",\n    \"dnsLabel\": \"Lorem volupta\",\n    \"freeformTags\": {},\n    \"ipv6CidrBlock\": \"irure nisi sit\",\n    \"prohibitPublicIpOnVnic\": true,\n    \"routeTableId\": \"non consequat fugiat\",\n    \"securityListIds\": [\n        \"voluptate cupidatat in\",\n        \"ipsum dolor esse\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/subnets",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subnets"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "officia sed",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
    },
    {
      "name": "Unauthorized",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations (for example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmay be rejected).\n",
            "key": "opc-retry-token",
            "value": "aliqua enim i"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"qu\",\n    \"cidrBlock\": \"exercitation D\",\n    \"vcnId\": \"deserunt fugiat occaecat\",\n    \"availabilityDomain\": \"laborum culpa\",\n    \"definedTags\": {},\n    \"dhcpOptionsId\": \"Duis\",\n    \"displayName\": \"veniam mollit ipsum\",\n    \"dnsLabel\": \"Lorem volupta\",\n    \"freeformTags\": {},\n    \"ipv6CidrBlock\": \"irure nisi sit\",\n    \"prohibitPublicIpOnVnic\": true,\n    \"routeTableId\": \"non consequat fugiat\",\n    \"securityListIds\": [\n        \"voluptate cupidatat in\",\n        \"ipsum dolor esse\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/subnets",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subnets"
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "officia sed",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
    },
    {
      "name": "Not Found",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations (for example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmay be rejected).\n",
            "key": "opc-retry-token",
            "value": "aliqua enim i"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"qu\",\n    \"cidrBlock\": \"exercitation D\",\n    \"vcnId\": \"deserunt fugiat occaecat\",\n    \"availabilityDomain\": \"laborum culpa\",\n    \"definedTags\": {},\n    \"dhcpOptionsId\": \"Duis\",\n    \"displayName\": \"veniam mollit ipsum\",\n    \"dnsLabel\": \"Lorem volupta\",\n    \"freeformTags\": {},\n    \"ipv6CidrBlock\": \"irure nisi sit\",\n    \"prohibitPublicIpOnVnic\": true,\n    \"routeTableId\": \"non consequat fugiat\",\n    \"securityListIds\": [\n        \"voluptate cupidatat in\",\n        \"ipsum dolor esse\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/subnets",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subnets"
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "officia sed",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
    },
    {
      "name": "Conflict",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations (for example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmay be rejected).\n",
            "key": "opc-retry-token",
            "value": "aliqua enim i"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"qu\",\n    \"cidrBlock\": \"exercitation D\",\n    \"vcnId\": \"deserunt fugiat occaecat\",\n    \"availabilityDomain\": \"laborum culpa\",\n    \"definedTags\": {},\n    \"dhcpOptionsId\": \"Duis\",\n    \"displayName\": \"veniam mollit ipsum\",\n    \"dnsLabel\": \"Lorem volupta\",\n    \"freeformTags\": {},\n    \"ipv6CidrBlock\": \"irure nisi sit\",\n    \"prohibitPublicIpOnVnic\": true,\n    \"routeTableId\": \"non consequat fugiat\",\n    \"securityListIds\": [\n        \"voluptate cupidatat in\",\n        \"ipsum dolor esse\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/subnets",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subnets"
          ]
        }
      },
      "status": "Conflict",
      "code": 409,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "officia sed",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
    },
    {
      "name": "Internal Server Error",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations (for example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmay be rejected).\n",
            "key": "opc-retry-token",
            "value": "aliqua enim i"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"qu\",\n    \"cidrBlock\": \"exercitation D\",\n    \"vcnId\": \"deserunt fugiat occaecat\",\n    \"availabilityDomain\": \"laborum culpa\",\n    \"definedTags\": {},\n    \"dhcpOptionsId\": \"Duis\",\n    \"displayName\": \"veniam mollit ipsum\",\n    \"dnsLabel\": \"Lorem volupta\",\n    \"freeformTags\": {},\n    \"ipv6CidrBlock\": \"irure nisi sit\",\n    \"prohibitPublicIpOnVnic\": true,\n    \"routeTableId\": \"non consequat fugiat\",\n    \"securityListIds\": [\n        \"voluptate cupidatat in\",\n        \"ipsum dolor esse\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/subnets",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subnets"
          ]
        }
      },
      "status": "Internal Server Error",
      "code": 500,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "officia sed",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
    },
    {
      "name": "An error has occurred.",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "A token that uniquely identifies a request so it can be retried in case of a timeout or\nserver error without risk of executing that same action again. Retry tokens expire after 24\nhours, but can be invalidated before then due to conflicting operations (for example, if a resource\nhas been deleted and purged from the system, then a retry of the original creation request\nmay be rejected).\n",
            "key": "opc-retry-token",
            "value": "aliqua enim i"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"compartmentId\": \"qu\",\n    \"cidrBlock\": \"exercitation D\",\n    \"vcnId\": \"deserunt fugiat occaecat\",\n    \"availabilityDomain\": \"laborum culpa\",\n    \"definedTags\": {},\n    \"dhcpOptionsId\": \"Duis\",\n    \"displayName\": \"veniam mollit ipsum\",\n    \"dnsLabel\": \"Lorem volupta\",\n    \"freeformTags\": {},\n    \"ipv6CidrBlock\": \"irure nisi sit\",\n    \"prohibitPublicIpOnVnic\": true,\n    \"routeTableId\": \"non consequat fugiat\",\n    \"securityListIds\": [\n        \"voluptate cupidatat in\",\n        \"ipsum dolor esse\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/subnets",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subnets"
          ]
        }
      },
      "status": "Internal Server Error",
      "code": 500,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "opc-request-id",
          "value": "officia sed",
          "description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
    }
  ]
}