Chilkat Online Tools

SQL Server / Core Services API / CreateSubnet

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    -- 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"
    --   ]
    -- }

    DECLARE @json int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @json OUT

    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'compartmentId', '{{compartment_ocid}}'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'cidrBlock', 'et ut irure'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'vcnId', 'officia nostrud veniam dolore'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'availabilityDomain', 'ea'
    EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'definedTags'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'dhcpOptionsId', 'sed qui'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'displayName', 'ex aliquip consectetur'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'dnsLabel', 'quis ut'
    EXEC sp_OAMethod @json, 'UpdateNewObject', @success OUT, 'freeformTags'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'ipv6CidrBlock', 'exercitation'
    EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'prohibitPublicIpOnVnic', 1
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'routeTableId', 'occaecat fugiat veniam'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'securityListIds[0]', 'do'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'securityListIds[1]', 'laboris aliqua aute voluptate eu'

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'opc-retry-token', 'aliqua enim i'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Type', 'application/json'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'x-content-sha256', '{{content_sha256}}'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Authorization', '{{signature}}'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Date', '{{date}}'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'PostJson3', @resp OUT, 'https://iaas.{{region}}.oraclecloud.com/20160918/subnets', 'application/json', @json
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        RETURN
      END

    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp

    -- 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

    DECLARE @strVal nvarchar(4000)

    DECLARE @vcnId nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @vcnId OUT, 'vcnId'
    DECLARE @id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'id'
    DECLARE @compartmentId nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @compartmentId OUT, 'compartmentId'
    DECLARE @cidrBlock nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @cidrBlock OUT, 'cidrBlock'
    DECLARE @routeTableId nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @routeTableId OUT, 'routeTableId'
    DECLARE @virtualRouterIp nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @virtualRouterIp OUT, 'virtualRouterIp'
    DECLARE @virtualRouterMac nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @virtualRouterMac OUT, 'virtualRouterMac'
    DECLARE @lifecycleState nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @lifecycleState OUT, 'lifecycleState'
    DECLARE @availabilityDomain nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @availabilityDomain OUT, 'availabilityDomain'
    DECLARE @dhcpOptionsId nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @dhcpOptionsId OUT, 'dhcpOptionsId'
    DECLARE @displayName nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @displayName OUT, 'displayName'
    DECLARE @dnsLabel nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @dnsLabel OUT, 'dnsLabel'
    DECLARE @ipv6CidrBlock nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ipv6CidrBlock OUT, 'ipv6CidrBlock'
    DECLARE @ipv6PublicCidrBlock nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ipv6PublicCidrBlock OUT, 'ipv6PublicCidrBlock'
    DECLARE @ipv6VirtualRouterIp nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ipv6VirtualRouterIp OUT, 'ipv6VirtualRouterIp'
    DECLARE @prohibitPublicIpOnVnic int
    EXEC sp_OAMethod @jResp, 'BoolOf', @prohibitPublicIpOnVnic OUT, 'prohibitPublicIpOnVnic'
    DECLARE @subnetDomainName nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @subnetDomainName OUT, 'subnetDomainName'
    DECLARE @timeCreated nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @timeCreated OUT, 'timeCreated'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'securityListIds'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'securityListIds[i]'
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @json
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

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}"
    }
  ]
}