Chilkat Online Tools

unicodeC / Core Services API / UpdateVirtualCircuit

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>
#include <C_CkHttpResponseW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkHttpResponseW resp;
    HCkStringBuilderW sbResponseBody;
    HCkJsonObjectW jResp;
    int respStatusCode;
    const wchar_t *value;
    const wchar_t *strVal;
    const wchar_t *bandwidthShapeName;
    const wchar_t *bgpManagement;
    const wchar_t *bgpSessionState;
    const wchar_t *compartmentId;
    int customerBgpAsn;
    const wchar_t *displayName;
    const wchar_t *gatewayId;
    const wchar_t *id;
    const wchar_t *lifecycleState;
    int oracleBgpAsn;
    const wchar_t *providerName;
    const wchar_t *providerServiceId;
    const wchar_t *providerServiceKeyName;
    const wchar_t *providerServiceName;
    const wchar_t *providerState;
    const wchar_t *referenceComment;
    const wchar_t *region;
    const wchar_t *serviceType;
    const wchar_t *timeCreated;
    const wchar_t *v_type;
    int i;
    int count_i;

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

    http = CkHttpW_Create();

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

    // The following JSON is sent in the request body.

    // {
    //   "bandwidthShapeName": "quis qui eu",
    //   "crossConnectMappings": [
    //     {
    //       "value": "<Error: Too many levels of nesting to fake this schema>"
    //     },
    //     {
    //       "value": "<Error: Too many levels of nesting to fake this schema>"
    //     }
    //   ],
    //   "customerBgpAsn": -71609415,
    //   "definedTags": {},
    //   "displayName": "et nostrud Lorem dolore",
    //   "freeformTags": {},
    //   "gatewayId": "consectetur irure",
    //   "providerServiceKeyName": "labore in ex",
    //   "providerState": "ACTIVE",
    //   "referenceComment": "adipisicing commodo",
    //   "routingPolicy": [
    //     "GLOBAL",
    //     "MARKET_LEVEL"
    //   ]
    // }

    json = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"bandwidthShapeName",L"quis qui eu");
    CkJsonObjectW_UpdateString(json,L"crossConnectMappings[0].value",L"<Error: Too many levels of nesting to fake this schema>");
    CkJsonObjectW_UpdateString(json,L"crossConnectMappings[1].value",L"<Error: Too many levels of nesting to fake this schema>");
    CkJsonObjectW_UpdateInt(json,L"customerBgpAsn",-71609415);
    CkJsonObjectW_UpdateNewObject(json,L"definedTags");
    CkJsonObjectW_UpdateString(json,L"displayName",L"et nostrud Lorem dolore");
    CkJsonObjectW_UpdateNewObject(json,L"freeformTags");
    CkJsonObjectW_UpdateString(json,L"gatewayId",L"consectetur irure");
    CkJsonObjectW_UpdateString(json,L"providerServiceKeyName",L"labore in ex");
    CkJsonObjectW_UpdateString(json,L"providerState",L"ACTIVE");
    CkJsonObjectW_UpdateString(json,L"referenceComment",L"adipisicing commodo");
    CkJsonObjectW_UpdateString(json,L"routingPolicy[0]",L"GLOBAL");
    CkJsonObjectW_UpdateString(json,L"routingPolicy[1]",L"MARKET_LEVEL");

    CkHttpW_SetRequestHeader(http,L"Content-Type",L"application/json");
    CkHttpW_SetRequestHeader(http,L"x-content-sha256",L"{{content_sha256}}");
    CkHttpW_SetRequestHeader(http,L"Authorization",L"{{signature}}");
    CkHttpW_SetRequestHeader(http,L"Date",L"{{date}}");
    CkHttpW_SetRequestHeader(http,L"if-match",L"officia sed");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);

    resp = CkHttpW_PTextSb(http,L"PUT",L"https://iaas.{{region}}.oraclecloud.com/20160918/virtualCircuits/:virtualCircuitId",sbRequestBody,L"utf-8",L"application/json",FALSE,FALSE);
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        return;
    }

    sbResponseBody = CkStringBuilderW_Create();
    CkHttpResponseW_GetBodySb(resp,sbResponseBody);

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);
    CkJsonObjectW_putEmitCompact(jResp,FALSE);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",CkJsonObjectW_emit(jResp));

    respStatusCode = CkHttpResponseW_getStatusCode(resp);
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkHttpResponseW_header(resp));
        wprintf(L"Failed.\n");
        CkHttpResponseW_Dispose(resp);
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        CkJsonObjectW_Dispose(jResp);
        return;
    }

    CkHttpResponseW_Dispose(resp);

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

    // {
    //   "bandwidthShapeName": "aliquip quis",
    //   "bgpManagement": "PROVIDER_MANAGED",
    //   "bgpSessionState": "UP",
    //   "compartmentId": "ex voluptate ea eiusmod",
    //   "crossConnectMappings": [
    //     {
    //       "value": "<Error: Too many levels of nesting to fake this schema>"
    //     },
    //     {
    //       "value": "<Error: Too many levels of nesting to fake this schema>"
    //     }
    //   ],
    //   "customerBgpAsn": 32592947,
    //   "definedTags": {},
    //   "displayName": "sunt exercitation",
    //   "freeformTags": {},
    //   "gatewayId": "sed deserunt magna",
    //   "id": "ex Duis amet culpa",
    //   "lifecycleState": "PROVISIONING",
    //   "oracleBgpAsn": 34318225,
    //   "providerName": "ullamco occaecat culpa cillum",
    //   "providerServiceId": "nisi ex culpa dolor",
    //   "providerServiceKeyName": "nostru",
    //   "providerServiceName": "laboris labore",
    //   "providerState": "ACTIVE",
    //   "publicPrefixes": [
    //     "proident et amet qui dolor",
    //     "tempor nostrud"
    //   ],
    //   "referenceComment": "laboris fugiat do",
    //   "region": "dolore sint ut non",
    //   "routingPolicy": [
    //     "MARKET_LEVEL",
    //     "GLOBAL"
    //   ],
    //   "serviceType": "LAYER2",
    //   "timeCreated": "2021-02-05T13:31:56.554Z",
    //   "type": "PUBLIC"
    // }

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

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    bandwidthShapeName = CkJsonObjectW_stringOf(jResp,L"bandwidthShapeName");
    bgpManagement = CkJsonObjectW_stringOf(jResp,L"bgpManagement");
    bgpSessionState = CkJsonObjectW_stringOf(jResp,L"bgpSessionState");
    compartmentId = CkJsonObjectW_stringOf(jResp,L"compartmentId");
    customerBgpAsn = CkJsonObjectW_IntOf(jResp,L"customerBgpAsn");
    displayName = CkJsonObjectW_stringOf(jResp,L"displayName");
    gatewayId = CkJsonObjectW_stringOf(jResp,L"gatewayId");
    id = CkJsonObjectW_stringOf(jResp,L"id");
    lifecycleState = CkJsonObjectW_stringOf(jResp,L"lifecycleState");
    oracleBgpAsn = CkJsonObjectW_IntOf(jResp,L"oracleBgpAsn");
    providerName = CkJsonObjectW_stringOf(jResp,L"providerName");
    providerServiceId = CkJsonObjectW_stringOf(jResp,L"providerServiceId");
    providerServiceKeyName = CkJsonObjectW_stringOf(jResp,L"providerServiceKeyName");
    providerServiceName = CkJsonObjectW_stringOf(jResp,L"providerServiceName");
    providerState = CkJsonObjectW_stringOf(jResp,L"providerState");
    referenceComment = CkJsonObjectW_stringOf(jResp,L"referenceComment");
    region = CkJsonObjectW_stringOf(jResp,L"region");
    serviceType = CkJsonObjectW_stringOf(jResp,L"serviceType");
    timeCreated = CkJsonObjectW_stringOf(jResp,L"timeCreated");
    v_type = CkJsonObjectW_stringOf(jResp,L"type");
    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"crossConnectMappings");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        value = CkJsonObjectW_stringOf(jResp,L"crossConnectMappings[i].value");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"publicPrefixes");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"publicPrefixes[i]");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"routingPolicy");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"routingPolicy[i]");
        i = i + 1;
    }



    CkHttpW_Dispose(http);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(jResp);

    }

Curl Command

curl -X PUT
	-H "if-match: officia sed"
	-H "Content-Type: application/json"
	-H "Date: {{date}}"
	-H "Authorization: {{signature}}"
	-H "x-content-sha256: {{content_sha256}}"
	-d '{
    "bandwidthShapeName": "quis qui eu",
    "crossConnectMappings": [
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    ],
    "customerBgpAsn": -71609415,
    "definedTags": {},
    "displayName": "et nostrud Lorem dolore",
    "freeformTags": {},
    "gatewayId": "consectetur irure",
    "providerServiceKeyName": "labore in ex",
    "providerState": "ACTIVE",
    "referenceComment": "adipisicing commodo",
    "routingPolicy": [
        "GLOBAL",
        "MARKET_LEVEL"
    ]
}'
https://iaas.{{region}}.oraclecloud.com/20160918/virtualCircuits/:virtualCircuitId

Postman Collection Item JSON

{
  "name": "UpdateVirtualCircuit",
  "request": {
    "method": "PUT",
    "header": [
      {
        "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
        "key": "if-match",
        "value": "officia sed"
      },
      {
        "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    \"bandwidthShapeName\": \"quis qui eu\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": -71609415,\n    \"definedTags\": {},\n    \"displayName\": \"et nostrud Lorem dolore\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"consectetur irure\",\n    \"providerServiceKeyName\": \"labore in ex\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"adipisicing commodo\",\n    \"routingPolicy\": [\n        \"GLOBAL\",\n        \"MARKET_LEVEL\"\n    ]\n}"
    },
    "url": {
      "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "virtualCircuits",
        ":virtualCircuitId"
      ],
      "variable": [
        {
          "key": "virtualCircuitId",
          "value": "amet ut",
          "description": "(Required) The [OCID](/Content/General/Concepts/identifiers.htm) of the virtual circuit."
        }
      ]
    },
    "description": "Updates the specified virtual circuit. This can be called by\neither the customer who owns the virtual circuit, or the\nprovider (when provisioning or de-provisioning the virtual\ncircuit from their end). The documentation for\n[UpdateVirtualCircuitDetails](#/en/iaas/latest/requests/UpdateVirtualCircuitDetails)\nindicates who can update each property of the virtual circuit.\n\n**Important:** If the virtual circuit is working and in the\nPROVISIONED state, updating any of the network-related properties\n(such as the DRG being used, the BGP ASN, and so on) will cause the virtual\ncircuit's state to switch to PROVISIONING and the related BGP\nsession to go down. After Oracle re-provisions the virtual circuit,\nits state will return to PROVISIONED. Make sure you confirm that\nthe associated BGP session is back up. For more information\nabout the various states and how to test connectivity, see\n[FastConnect Overview](/iaas/Content/Network/Concepts/fastconnect.htm).\n\nTo change the list of public IP prefixes for a public virtual circuit,\nuse [BulkAddVirtualCircuitPublicPrefixes](#/en/iaas/latest/VirtualCircuitPublicPrefix/BulkAddVirtualCircuitPublicPrefixes)\nand\n[BulkDeleteVirtualCircuitPublicPrefixes](#/en/iaas/latest/VirtualCircuitPublicPrefix/BulkDeleteVirtualCircuitPublicPrefixes).\nUpdating the list of prefixes does NOT cause the BGP session to go down. However,\nOracle must verify the customer's ownership of each added prefix before\ntraffic for that prefix will flow across the virtual circuit.\n"
  },
  "response": [
    {
      "name": "The virtual circuit was updated.",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "officia sed"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"bandwidthShapeName\": \"null\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": 5551116,\n    \"definedTags\": {},\n    \"displayName\": \"minim consequat\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"deserunt aliqua dolore consectetur\",\n    \"providerServiceKeyName\": \"consequat magna commodo dolore\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"in aute velit et id\",\n    \"routingPolicy\": [\n        \"ORACLE_SERVICE_NETWORK\",\n        \"MARKET_LEVEL\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "virtualCircuits",
            ":virtualCircuitId"
          ],
          "variable": [
            {
              "key": "virtualCircuitId"
            }
          ]
        }
      },
      "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 \"bandwidthShapeName\": \"aliquip quis\",\n \"bgpManagement\": \"PROVIDER_MANAGED\",\n \"bgpSessionState\": \"UP\",\n \"compartmentId\": \"ex voluptate ea eiusmod\",\n \"crossConnectMappings\": [\n  {\n   \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n  },\n  {\n   \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n  }\n ],\n \"customerBgpAsn\": 32592947,\n \"definedTags\": {},\n \"displayName\": \"sunt exercitation\",\n \"freeformTags\": {},\n \"gatewayId\": \"sed deserunt magna\",\n \"id\": \"ex Duis amet culpa\",\n \"lifecycleState\": \"PROVISIONING\",\n \"oracleBgpAsn\": 34318225,\n \"providerName\": \"ullamco occaecat culpa cillum\",\n \"providerServiceId\": \"nisi ex culpa dolor\",\n \"providerServiceKeyName\": \"nostru\",\n \"providerServiceName\": \"laboris labore\",\n \"providerState\": \"ACTIVE\",\n \"publicPrefixes\": [\n  \"proident et amet qui dolor\",\n  \"tempor nostrud\"\n ],\n \"referenceComment\": \"laboris fugiat do\",\n \"region\": \"dolore sint ut non\",\n \"routingPolicy\": [\n  \"MARKET_LEVEL\",\n  \"GLOBAL\"\n ],\n \"serviceType\": \"LAYER2\",\n \"timeCreated\": \"2021-02-05T13:31:56.554Z\",\n \"type\": \"PUBLIC\"\n}"
    },
    {
      "name": "Bad Request",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "officia sed"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"bandwidthShapeName\": \"null\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": 5551116,\n    \"definedTags\": {},\n    \"displayName\": \"minim consequat\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"deserunt aliqua dolore consectetur\",\n    \"providerServiceKeyName\": \"consequat magna commodo dolore\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"in aute velit et id\",\n    \"routingPolicy\": [\n        \"ORACLE_SERVICE_NETWORK\",\n        \"MARKET_LEVEL\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "virtualCircuits",
            ":virtualCircuitId"
          ],
          "variable": [
            {
              "key": "virtualCircuitId"
            }
          ]
        }
      },
      "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": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "officia sed"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"bandwidthShapeName\": \"null\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": 5551116,\n    \"definedTags\": {},\n    \"displayName\": \"minim consequat\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"deserunt aliqua dolore consectetur\",\n    \"providerServiceKeyName\": \"consequat magna commodo dolore\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"in aute velit et id\",\n    \"routingPolicy\": [\n        \"ORACLE_SERVICE_NETWORK\",\n        \"MARKET_LEVEL\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "virtualCircuits",
            ":virtualCircuitId"
          ],
          "variable": [
            {
              "key": "virtualCircuitId"
            }
          ]
        }
      },
      "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": "Forbidden",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "officia sed"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"bandwidthShapeName\": \"null\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": 5551116,\n    \"definedTags\": {},\n    \"displayName\": \"minim consequat\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"deserunt aliqua dolore consectetur\",\n    \"providerServiceKeyName\": \"consequat magna commodo dolore\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"in aute velit et id\",\n    \"routingPolicy\": [\n        \"ORACLE_SERVICE_NETWORK\",\n        \"MARKET_LEVEL\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "virtualCircuits",
            ":virtualCircuitId"
          ],
          "variable": [
            {
              "key": "virtualCircuitId"
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_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": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "officia sed"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"bandwidthShapeName\": \"null\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": 5551116,\n    \"definedTags\": {},\n    \"displayName\": \"minim consequat\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"deserunt aliqua dolore consectetur\",\n    \"providerServiceKeyName\": \"consequat magna commodo dolore\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"in aute velit et id\",\n    \"routingPolicy\": [\n        \"ORACLE_SERVICE_NETWORK\",\n        \"MARKET_LEVEL\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "virtualCircuits",
            ":virtualCircuitId"
          ],
          "variable": [
            {
              "key": "virtualCircuitId"
            }
          ]
        }
      },
      "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": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "officia sed"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"bandwidthShapeName\": \"null\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": 5551116,\n    \"definedTags\": {},\n    \"displayName\": \"minim consequat\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"deserunt aliqua dolore consectetur\",\n    \"providerServiceKeyName\": \"consequat magna commodo dolore\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"in aute velit et id\",\n    \"routingPolicy\": [\n        \"ORACLE_SERVICE_NETWORK\",\n        \"MARKET_LEVEL\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "virtualCircuits",
            ":virtualCircuitId"
          ],
          "variable": [
            {
              "key": "virtualCircuitId"
            }
          ]
        }
      },
      "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": "Precondition Failed",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "officia sed"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"bandwidthShapeName\": \"null\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": 5551116,\n    \"definedTags\": {},\n    \"displayName\": \"minim consequat\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"deserunt aliqua dolore consectetur\",\n    \"providerServiceKeyName\": \"consequat magna commodo dolore\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"in aute velit et id\",\n    \"routingPolicy\": [\n        \"ORACLE_SERVICE_NETWORK\",\n        \"MARKET_LEVEL\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "virtualCircuits",
            ":virtualCircuitId"
          ],
          "variable": [
            {
              "key": "virtualCircuitId"
            }
          ]
        }
      },
      "status": "Precondition Failed",
      "code": 412,
      "_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": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "officia sed"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"bandwidthShapeName\": \"null\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": 5551116,\n    \"definedTags\": {},\n    \"displayName\": \"minim consequat\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"deserunt aliqua dolore consectetur\",\n    \"providerServiceKeyName\": \"consequat magna commodo dolore\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"in aute velit et id\",\n    \"routingPolicy\": [\n        \"ORACLE_SERVICE_NETWORK\",\n        \"MARKET_LEVEL\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "virtualCircuits",
            ":virtualCircuitId"
          ],
          "variable": [
            {
              "key": "virtualCircuitId"
            }
          ]
        }
      },
      "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": "PUT",
        "header": [
          {
            "description": "For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`\nparameter to the value of the etag from a previous GET or POST response for that resource. The resource\nwill be updated or deleted only if the etag you provide matches the resource's current etag value.\n",
            "key": "if-match",
            "value": "officia sed"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"bandwidthShapeName\": \"null\",\n    \"crossConnectMappings\": [\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        },\n        {\n            \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n        }\n    ],\n    \"customerBgpAsn\": 5551116,\n    \"definedTags\": {},\n    \"displayName\": \"minim consequat\",\n    \"freeformTags\": {},\n    \"gatewayId\": \"deserunt aliqua dolore consectetur\",\n    \"providerServiceKeyName\": \"consequat magna commodo dolore\",\n    \"providerState\": \"ACTIVE\",\n    \"referenceComment\": \"in aute velit et id\",\n    \"routingPolicy\": [\n        \"ORACLE_SERVICE_NETWORK\",\n        \"MARKET_LEVEL\"\n    ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/virtualCircuits/:virtualCircuitId",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "virtualCircuits",
            ":virtualCircuitId"
          ],
          "variable": [
            {
              "key": "virtualCircuitId"
            }
          ]
        }
      },
      "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}"
    }
  ]
}