GET baremetalsolution.projects.locations.instanceProvisioningSettings.fetch
{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch
QUERY PARAMS

location
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch")
require "http/client"

url = "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:location/instanceProvisioningSettings:fetch HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:location/instanceProvisioningSettings:fetch',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:location/instanceProvisioningSettings:fetch")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:location/instanceProvisioningSettings:fetch') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch
http GET {{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:location/instanceProvisioningSettings:fetch")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.instances.create
{{baseUrl}}/v2/:parent/instances
QUERY PARAMS

parent
BODY json

{
  "createTime": "",
  "firmwareVersion": "",
  "hyperthreadingEnabled": false,
  "id": "",
  "interactiveSerialConsoleEnabled": false,
  "labels": {},
  "logicalInterfaces": [
    {
      "interfaceIndex": 0,
      "logicalNetworkInterfaces": [
        {
          "defaultGateway": false,
          "id": "",
          "ipAddress": "",
          "network": "",
          "networkType": ""
        }
      ],
      "name": ""
    }
  ],
  "loginInfo": "",
  "luns": [
    {
      "bootLun": false,
      "expireTime": "",
      "id": "",
      "instances": [],
      "multiprotocolType": "",
      "name": "",
      "shareable": false,
      "sizeGb": "",
      "state": "",
      "storageType": "",
      "storageVolume": "",
      "wwid": ""
    }
  ],
  "machineType": "",
  "name": "",
  "networkTemplate": "",
  "networks": [
    {
      "cidr": "",
      "gatewayIp": "",
      "id": "",
      "ipAddress": "",
      "jumboFramesEnabled": false,
      "labels": {},
      "macAddress": [],
      "mountPoints": [
        {
          "defaultGateway": false,
          "instance": "",
          "ipAddress": "",
          "logicalInterface": ""
        }
      ],
      "name": "",
      "pod": "",
      "reservations": [
        {
          "endAddress": "",
          "note": "",
          "startAddress": ""
        }
      ],
      "servicesCidr": "",
      "state": "",
      "type": "",
      "vlanId": "",
      "vrf": {
        "name": "",
        "qosPolicy": {
          "bandwidthGbps": ""
        },
        "state": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": "",
            "peerIp": "",
            "peerVlanId": "",
            "qosPolicy": {},
            "routerIp": ""
          }
        ]
      }
    }
  ],
  "osImage": "",
  "pod": "",
  "state": "",
  "updateTime": "",
  "volumes": [
    {
      "attached": false,
      "autoGrownSizeGib": "",
      "bootVolume": false,
      "currentSizeGib": "",
      "emergencySizeGib": "",
      "expireTime": "",
      "id": "",
      "instances": [],
      "labels": {},
      "maxSizeGib": "",
      "name": "",
      "notes": "",
      "originallyRequestedSizeGib": "",
      "performanceTier": "",
      "pod": "",
      "protocol": "",
      "remainingSpaceGib": "",
      "requestedSizeGib": "",
      "snapshotAutoDeleteBehavior": "",
      "snapshotEnabled": false,
      "snapshotReservationDetail": {
        "reservedSpaceGib": "",
        "reservedSpacePercent": 0,
        "reservedSpaceRemainingGib": "",
        "reservedSpaceUsedPercent": 0
      },
      "snapshotSchedulePolicy": "",
      "state": "",
      "storageAggregatePool": "",
      "storageType": "",
      "workloadProfile": ""
    }
  ],
  "workloadProfile": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/instances");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:parent/instances" {:content-type :json
                                                                 :form-params {:createTime ""
                                                                               :firmwareVersion ""
                                                                               :hyperthreadingEnabled false
                                                                               :id ""
                                                                               :interactiveSerialConsoleEnabled false
                                                                               :labels {}
                                                                               :logicalInterfaces [{:interfaceIndex 0
                                                                                                    :logicalNetworkInterfaces [{:defaultGateway false
                                                                                                                                :id ""
                                                                                                                                :ipAddress ""
                                                                                                                                :network ""
                                                                                                                                :networkType ""}]
                                                                                                    :name ""}]
                                                                               :loginInfo ""
                                                                               :luns [{:bootLun false
                                                                                       :expireTime ""
                                                                                       :id ""
                                                                                       :instances []
                                                                                       :multiprotocolType ""
                                                                                       :name ""
                                                                                       :shareable false
                                                                                       :sizeGb ""
                                                                                       :state ""
                                                                                       :storageType ""
                                                                                       :storageVolume ""
                                                                                       :wwid ""}]
                                                                               :machineType ""
                                                                               :name ""
                                                                               :networkTemplate ""
                                                                               :networks [{:cidr ""
                                                                                           :gatewayIp ""
                                                                                           :id ""
                                                                                           :ipAddress ""
                                                                                           :jumboFramesEnabled false
                                                                                           :labels {}
                                                                                           :macAddress []
                                                                                           :mountPoints [{:defaultGateway false
                                                                                                          :instance ""
                                                                                                          :ipAddress ""
                                                                                                          :logicalInterface ""}]
                                                                                           :name ""
                                                                                           :pod ""
                                                                                           :reservations [{:endAddress ""
                                                                                                           :note ""
                                                                                                           :startAddress ""}]
                                                                                           :servicesCidr ""
                                                                                           :state ""
                                                                                           :type ""
                                                                                           :vlanId ""
                                                                                           :vrf {:name ""
                                                                                                 :qosPolicy {:bandwidthGbps ""}
                                                                                                 :state ""
                                                                                                 :vlanAttachments [{:id ""
                                                                                                                    :pairingKey ""
                                                                                                                    :peerIp ""
                                                                                                                    :peerVlanId ""
                                                                                                                    :qosPolicy {}
                                                                                                                    :routerIp ""}]}}]
                                                                               :osImage ""
                                                                               :pod ""
                                                                               :state ""
                                                                               :updateTime ""
                                                                               :volumes [{:attached false
                                                                                          :autoGrownSizeGib ""
                                                                                          :bootVolume false
                                                                                          :currentSizeGib ""
                                                                                          :emergencySizeGib ""
                                                                                          :expireTime ""
                                                                                          :id ""
                                                                                          :instances []
                                                                                          :labels {}
                                                                                          :maxSizeGib ""
                                                                                          :name ""
                                                                                          :notes ""
                                                                                          :originallyRequestedSizeGib ""
                                                                                          :performanceTier ""
                                                                                          :pod ""
                                                                                          :protocol ""
                                                                                          :remainingSpaceGib ""
                                                                                          :requestedSizeGib ""
                                                                                          :snapshotAutoDeleteBehavior ""
                                                                                          :snapshotEnabled false
                                                                                          :snapshotReservationDetail {:reservedSpaceGib ""
                                                                                                                      :reservedSpacePercent 0
                                                                                                                      :reservedSpaceRemainingGib ""
                                                                                                                      :reservedSpaceUsedPercent 0}
                                                                                          :snapshotSchedulePolicy ""
                                                                                          :state ""
                                                                                          :storageAggregatePool ""
                                                                                          :storageType ""
                                                                                          :workloadProfile ""}]
                                                                               :workloadProfile ""}})
require "http/client"

url = "{{baseUrl}}/v2/:parent/instances"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/instances"),
    Content = new StringContent("{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/instances");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/instances"

	payload := strings.NewReader("{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:parent/instances HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2768

{
  "createTime": "",
  "firmwareVersion": "",
  "hyperthreadingEnabled": false,
  "id": "",
  "interactiveSerialConsoleEnabled": false,
  "labels": {},
  "logicalInterfaces": [
    {
      "interfaceIndex": 0,
      "logicalNetworkInterfaces": [
        {
          "defaultGateway": false,
          "id": "",
          "ipAddress": "",
          "network": "",
          "networkType": ""
        }
      ],
      "name": ""
    }
  ],
  "loginInfo": "",
  "luns": [
    {
      "bootLun": false,
      "expireTime": "",
      "id": "",
      "instances": [],
      "multiprotocolType": "",
      "name": "",
      "shareable": false,
      "sizeGb": "",
      "state": "",
      "storageType": "",
      "storageVolume": "",
      "wwid": ""
    }
  ],
  "machineType": "",
  "name": "",
  "networkTemplate": "",
  "networks": [
    {
      "cidr": "",
      "gatewayIp": "",
      "id": "",
      "ipAddress": "",
      "jumboFramesEnabled": false,
      "labels": {},
      "macAddress": [],
      "mountPoints": [
        {
          "defaultGateway": false,
          "instance": "",
          "ipAddress": "",
          "logicalInterface": ""
        }
      ],
      "name": "",
      "pod": "",
      "reservations": [
        {
          "endAddress": "",
          "note": "",
          "startAddress": ""
        }
      ],
      "servicesCidr": "",
      "state": "",
      "type": "",
      "vlanId": "",
      "vrf": {
        "name": "",
        "qosPolicy": {
          "bandwidthGbps": ""
        },
        "state": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": "",
            "peerIp": "",
            "peerVlanId": "",
            "qosPolicy": {},
            "routerIp": ""
          }
        ]
      }
    }
  ],
  "osImage": "",
  "pod": "",
  "state": "",
  "updateTime": "",
  "volumes": [
    {
      "attached": false,
      "autoGrownSizeGib": "",
      "bootVolume": false,
      "currentSizeGib": "",
      "emergencySizeGib": "",
      "expireTime": "",
      "id": "",
      "instances": [],
      "labels": {},
      "maxSizeGib": "",
      "name": "",
      "notes": "",
      "originallyRequestedSizeGib": "",
      "performanceTier": "",
      "pod": "",
      "protocol": "",
      "remainingSpaceGib": "",
      "requestedSizeGib": "",
      "snapshotAutoDeleteBehavior": "",
      "snapshotEnabled": false,
      "snapshotReservationDetail": {
        "reservedSpaceGib": "",
        "reservedSpacePercent": 0,
        "reservedSpaceRemainingGib": "",
        "reservedSpaceUsedPercent": 0
      },
      "snapshotSchedulePolicy": "",
      "state": "",
      "storageAggregatePool": "",
      "storageType": "",
      "workloadProfile": ""
    }
  ],
  "workloadProfile": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:parent/instances")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/instances"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/instances")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:parent/instances")
  .header("content-type", "application/json")
  .body("{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  createTime: '',
  firmwareVersion: '',
  hyperthreadingEnabled: false,
  id: '',
  interactiveSerialConsoleEnabled: false,
  labels: {},
  logicalInterfaces: [
    {
      interfaceIndex: 0,
      logicalNetworkInterfaces: [
        {
          defaultGateway: false,
          id: '',
          ipAddress: '',
          network: '',
          networkType: ''
        }
      ],
      name: ''
    }
  ],
  loginInfo: '',
  luns: [
    {
      bootLun: false,
      expireTime: '',
      id: '',
      instances: [],
      multiprotocolType: '',
      name: '',
      shareable: false,
      sizeGb: '',
      state: '',
      storageType: '',
      storageVolume: '',
      wwid: ''
    }
  ],
  machineType: '',
  name: '',
  networkTemplate: '',
  networks: [
    {
      cidr: '',
      gatewayIp: '',
      id: '',
      ipAddress: '',
      jumboFramesEnabled: false,
      labels: {},
      macAddress: [],
      mountPoints: [
        {
          defaultGateway: false,
          instance: '',
          ipAddress: '',
          logicalInterface: ''
        }
      ],
      name: '',
      pod: '',
      reservations: [
        {
          endAddress: '',
          note: '',
          startAddress: ''
        }
      ],
      servicesCidr: '',
      state: '',
      type: '',
      vlanId: '',
      vrf: {
        name: '',
        qosPolicy: {
          bandwidthGbps: ''
        },
        state: '',
        vlanAttachments: [
          {
            id: '',
            pairingKey: '',
            peerIp: '',
            peerVlanId: '',
            qosPolicy: {},
            routerIp: ''
          }
        ]
      }
    }
  ],
  osImage: '',
  pod: '',
  state: '',
  updateTime: '',
  volumes: [
    {
      attached: false,
      autoGrownSizeGib: '',
      bootVolume: false,
      currentSizeGib: '',
      emergencySizeGib: '',
      expireTime: '',
      id: '',
      instances: [],
      labels: {},
      maxSizeGib: '',
      name: '',
      notes: '',
      originallyRequestedSizeGib: '',
      performanceTier: '',
      pod: '',
      protocol: '',
      remainingSpaceGib: '',
      requestedSizeGib: '',
      snapshotAutoDeleteBehavior: '',
      snapshotEnabled: false,
      snapshotReservationDetail: {
        reservedSpaceGib: '',
        reservedSpacePercent: 0,
        reservedSpaceRemainingGib: '',
        reservedSpaceUsedPercent: 0
      },
      snapshotSchedulePolicy: '',
      state: '',
      storageAggregatePool: '',
      storageType: '',
      workloadProfile: ''
    }
  ],
  workloadProfile: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:parent/instances');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/instances',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    firmwareVersion: '',
    hyperthreadingEnabled: false,
    id: '',
    interactiveSerialConsoleEnabled: false,
    labels: {},
    logicalInterfaces: [
      {
        interfaceIndex: 0,
        logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
        name: ''
      }
    ],
    loginInfo: '',
    luns: [
      {
        bootLun: false,
        expireTime: '',
        id: '',
        instances: [],
        multiprotocolType: '',
        name: '',
        shareable: false,
        sizeGb: '',
        state: '',
        storageType: '',
        storageVolume: '',
        wwid: ''
      }
    ],
    machineType: '',
    name: '',
    networkTemplate: '',
    networks: [
      {
        cidr: '',
        gatewayIp: '',
        id: '',
        ipAddress: '',
        jumboFramesEnabled: false,
        labels: {},
        macAddress: [],
        mountPoints: [{defaultGateway: false, instance: '', ipAddress: '', logicalInterface: ''}],
        name: '',
        pod: '',
        reservations: [{endAddress: '', note: '', startAddress: ''}],
        servicesCidr: '',
        state: '',
        type: '',
        vlanId: '',
        vrf: {
          name: '',
          qosPolicy: {bandwidthGbps: ''},
          state: '',
          vlanAttachments: [
            {
              id: '',
              pairingKey: '',
              peerIp: '',
              peerVlanId: '',
              qosPolicy: {},
              routerIp: ''
            }
          ]
        }
      }
    ],
    osImage: '',
    pod: '',
    state: '',
    updateTime: '',
    volumes: [
      {
        attached: false,
        autoGrownSizeGib: '',
        bootVolume: false,
        currentSizeGib: '',
        emergencySizeGib: '',
        expireTime: '',
        id: '',
        instances: [],
        labels: {},
        maxSizeGib: '',
        name: '',
        notes: '',
        originallyRequestedSizeGib: '',
        performanceTier: '',
        pod: '',
        protocol: '',
        remainingSpaceGib: '',
        requestedSizeGib: '',
        snapshotAutoDeleteBehavior: '',
        snapshotEnabled: false,
        snapshotReservationDetail: {
          reservedSpaceGib: '',
          reservedSpacePercent: 0,
          reservedSpaceRemainingGib: '',
          reservedSpaceUsedPercent: 0
        },
        snapshotSchedulePolicy: '',
        state: '',
        storageAggregatePool: '',
        storageType: '',
        workloadProfile: ''
      }
    ],
    workloadProfile: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/instances';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","firmwareVersion":"","hyperthreadingEnabled":false,"id":"","interactiveSerialConsoleEnabled":false,"labels":{},"logicalInterfaces":[{"interfaceIndex":0,"logicalNetworkInterfaces":[{"defaultGateway":false,"id":"","ipAddress":"","network":"","networkType":""}],"name":""}],"loginInfo":"","luns":[{"bootLun":false,"expireTime":"","id":"","instances":[],"multiprotocolType":"","name":"","shareable":false,"sizeGb":"","state":"","storageType":"","storageVolume":"","wwid":""}],"machineType":"","name":"","networkTemplate":"","networks":[{"cidr":"","gatewayIp":"","id":"","ipAddress":"","jumboFramesEnabled":false,"labels":{},"macAddress":[],"mountPoints":[{"defaultGateway":false,"instance":"","ipAddress":"","logicalInterface":""}],"name":"","pod":"","reservations":[{"endAddress":"","note":"","startAddress":""}],"servicesCidr":"","state":"","type":"","vlanId":"","vrf":{"name":"","qosPolicy":{"bandwidthGbps":""},"state":"","vlanAttachments":[{"id":"","pairingKey":"","peerIp":"","peerVlanId":"","qosPolicy":{},"routerIp":""}]}}],"osImage":"","pod":"","state":"","updateTime":"","volumes":[{"attached":false,"autoGrownSizeGib":"","bootVolume":false,"currentSizeGib":"","emergencySizeGib":"","expireTime":"","id":"","instances":[],"labels":{},"maxSizeGib":"","name":"","notes":"","originallyRequestedSizeGib":"","performanceTier":"","pod":"","protocol":"","remainingSpaceGib":"","requestedSizeGib":"","snapshotAutoDeleteBehavior":"","snapshotEnabled":false,"snapshotReservationDetail":{"reservedSpaceGib":"","reservedSpacePercent":0,"reservedSpaceRemainingGib":"","reservedSpaceUsedPercent":0},"snapshotSchedulePolicy":"","state":"","storageAggregatePool":"","storageType":"","workloadProfile":""}],"workloadProfile":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/instances',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createTime": "",\n  "firmwareVersion": "",\n  "hyperthreadingEnabled": false,\n  "id": "",\n  "interactiveSerialConsoleEnabled": false,\n  "labels": {},\n  "logicalInterfaces": [\n    {\n      "interfaceIndex": 0,\n      "logicalNetworkInterfaces": [\n        {\n          "defaultGateway": false,\n          "id": "",\n          "ipAddress": "",\n          "network": "",\n          "networkType": ""\n        }\n      ],\n      "name": ""\n    }\n  ],\n  "loginInfo": "",\n  "luns": [\n    {\n      "bootLun": false,\n      "expireTime": "",\n      "id": "",\n      "instances": [],\n      "multiprotocolType": "",\n      "name": "",\n      "shareable": false,\n      "sizeGb": "",\n      "state": "",\n      "storageType": "",\n      "storageVolume": "",\n      "wwid": ""\n    }\n  ],\n  "machineType": "",\n  "name": "",\n  "networkTemplate": "",\n  "networks": [\n    {\n      "cidr": "",\n      "gatewayIp": "",\n      "id": "",\n      "ipAddress": "",\n      "jumboFramesEnabled": false,\n      "labels": {},\n      "macAddress": [],\n      "mountPoints": [\n        {\n          "defaultGateway": false,\n          "instance": "",\n          "ipAddress": "",\n          "logicalInterface": ""\n        }\n      ],\n      "name": "",\n      "pod": "",\n      "reservations": [\n        {\n          "endAddress": "",\n          "note": "",\n          "startAddress": ""\n        }\n      ],\n      "servicesCidr": "",\n      "state": "",\n      "type": "",\n      "vlanId": "",\n      "vrf": {\n        "name": "",\n        "qosPolicy": {\n          "bandwidthGbps": ""\n        },\n        "state": "",\n        "vlanAttachments": [\n          {\n            "id": "",\n            "pairingKey": "",\n            "peerIp": "",\n            "peerVlanId": "",\n            "qosPolicy": {},\n            "routerIp": ""\n          }\n        ]\n      }\n    }\n  ],\n  "osImage": "",\n  "pod": "",\n  "state": "",\n  "updateTime": "",\n  "volumes": [\n    {\n      "attached": false,\n      "autoGrownSizeGib": "",\n      "bootVolume": false,\n      "currentSizeGib": "",\n      "emergencySizeGib": "",\n      "expireTime": "",\n      "id": "",\n      "instances": [],\n      "labels": {},\n      "maxSizeGib": "",\n      "name": "",\n      "notes": "",\n      "originallyRequestedSizeGib": "",\n      "performanceTier": "",\n      "pod": "",\n      "protocol": "",\n      "remainingSpaceGib": "",\n      "requestedSizeGib": "",\n      "snapshotAutoDeleteBehavior": "",\n      "snapshotEnabled": false,\n      "snapshotReservationDetail": {\n        "reservedSpaceGib": "",\n        "reservedSpacePercent": 0,\n        "reservedSpaceRemainingGib": "",\n        "reservedSpaceUsedPercent": 0\n      },\n      "snapshotSchedulePolicy": "",\n      "state": "",\n      "storageAggregatePool": "",\n      "storageType": "",\n      "workloadProfile": ""\n    }\n  ],\n  "workloadProfile": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/instances")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/instances',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  createTime: '',
  firmwareVersion: '',
  hyperthreadingEnabled: false,
  id: '',
  interactiveSerialConsoleEnabled: false,
  labels: {},
  logicalInterfaces: [
    {
      interfaceIndex: 0,
      logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
      name: ''
    }
  ],
  loginInfo: '',
  luns: [
    {
      bootLun: false,
      expireTime: '',
      id: '',
      instances: [],
      multiprotocolType: '',
      name: '',
      shareable: false,
      sizeGb: '',
      state: '',
      storageType: '',
      storageVolume: '',
      wwid: ''
    }
  ],
  machineType: '',
  name: '',
  networkTemplate: '',
  networks: [
    {
      cidr: '',
      gatewayIp: '',
      id: '',
      ipAddress: '',
      jumboFramesEnabled: false,
      labels: {},
      macAddress: [],
      mountPoints: [{defaultGateway: false, instance: '', ipAddress: '', logicalInterface: ''}],
      name: '',
      pod: '',
      reservations: [{endAddress: '', note: '', startAddress: ''}],
      servicesCidr: '',
      state: '',
      type: '',
      vlanId: '',
      vrf: {
        name: '',
        qosPolicy: {bandwidthGbps: ''},
        state: '',
        vlanAttachments: [
          {
            id: '',
            pairingKey: '',
            peerIp: '',
            peerVlanId: '',
            qosPolicy: {},
            routerIp: ''
          }
        ]
      }
    }
  ],
  osImage: '',
  pod: '',
  state: '',
  updateTime: '',
  volumes: [
    {
      attached: false,
      autoGrownSizeGib: '',
      bootVolume: false,
      currentSizeGib: '',
      emergencySizeGib: '',
      expireTime: '',
      id: '',
      instances: [],
      labels: {},
      maxSizeGib: '',
      name: '',
      notes: '',
      originallyRequestedSizeGib: '',
      performanceTier: '',
      pod: '',
      protocol: '',
      remainingSpaceGib: '',
      requestedSizeGib: '',
      snapshotAutoDeleteBehavior: '',
      snapshotEnabled: false,
      snapshotReservationDetail: {
        reservedSpaceGib: '',
        reservedSpacePercent: 0,
        reservedSpaceRemainingGib: '',
        reservedSpaceUsedPercent: 0
      },
      snapshotSchedulePolicy: '',
      state: '',
      storageAggregatePool: '',
      storageType: '',
      workloadProfile: ''
    }
  ],
  workloadProfile: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/instances',
  headers: {'content-type': 'application/json'},
  body: {
    createTime: '',
    firmwareVersion: '',
    hyperthreadingEnabled: false,
    id: '',
    interactiveSerialConsoleEnabled: false,
    labels: {},
    logicalInterfaces: [
      {
        interfaceIndex: 0,
        logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
        name: ''
      }
    ],
    loginInfo: '',
    luns: [
      {
        bootLun: false,
        expireTime: '',
        id: '',
        instances: [],
        multiprotocolType: '',
        name: '',
        shareable: false,
        sizeGb: '',
        state: '',
        storageType: '',
        storageVolume: '',
        wwid: ''
      }
    ],
    machineType: '',
    name: '',
    networkTemplate: '',
    networks: [
      {
        cidr: '',
        gatewayIp: '',
        id: '',
        ipAddress: '',
        jumboFramesEnabled: false,
        labels: {},
        macAddress: [],
        mountPoints: [{defaultGateway: false, instance: '', ipAddress: '', logicalInterface: ''}],
        name: '',
        pod: '',
        reservations: [{endAddress: '', note: '', startAddress: ''}],
        servicesCidr: '',
        state: '',
        type: '',
        vlanId: '',
        vrf: {
          name: '',
          qosPolicy: {bandwidthGbps: ''},
          state: '',
          vlanAttachments: [
            {
              id: '',
              pairingKey: '',
              peerIp: '',
              peerVlanId: '',
              qosPolicy: {},
              routerIp: ''
            }
          ]
        }
      }
    ],
    osImage: '',
    pod: '',
    state: '',
    updateTime: '',
    volumes: [
      {
        attached: false,
        autoGrownSizeGib: '',
        bootVolume: false,
        currentSizeGib: '',
        emergencySizeGib: '',
        expireTime: '',
        id: '',
        instances: [],
        labels: {},
        maxSizeGib: '',
        name: '',
        notes: '',
        originallyRequestedSizeGib: '',
        performanceTier: '',
        pod: '',
        protocol: '',
        remainingSpaceGib: '',
        requestedSizeGib: '',
        snapshotAutoDeleteBehavior: '',
        snapshotEnabled: false,
        snapshotReservationDetail: {
          reservedSpaceGib: '',
          reservedSpacePercent: 0,
          reservedSpaceRemainingGib: '',
          reservedSpaceUsedPercent: 0
        },
        snapshotSchedulePolicy: '',
        state: '',
        storageAggregatePool: '',
        storageType: '',
        workloadProfile: ''
      }
    ],
    workloadProfile: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:parent/instances');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  createTime: '',
  firmwareVersion: '',
  hyperthreadingEnabled: false,
  id: '',
  interactiveSerialConsoleEnabled: false,
  labels: {},
  logicalInterfaces: [
    {
      interfaceIndex: 0,
      logicalNetworkInterfaces: [
        {
          defaultGateway: false,
          id: '',
          ipAddress: '',
          network: '',
          networkType: ''
        }
      ],
      name: ''
    }
  ],
  loginInfo: '',
  luns: [
    {
      bootLun: false,
      expireTime: '',
      id: '',
      instances: [],
      multiprotocolType: '',
      name: '',
      shareable: false,
      sizeGb: '',
      state: '',
      storageType: '',
      storageVolume: '',
      wwid: ''
    }
  ],
  machineType: '',
  name: '',
  networkTemplate: '',
  networks: [
    {
      cidr: '',
      gatewayIp: '',
      id: '',
      ipAddress: '',
      jumboFramesEnabled: false,
      labels: {},
      macAddress: [],
      mountPoints: [
        {
          defaultGateway: false,
          instance: '',
          ipAddress: '',
          logicalInterface: ''
        }
      ],
      name: '',
      pod: '',
      reservations: [
        {
          endAddress: '',
          note: '',
          startAddress: ''
        }
      ],
      servicesCidr: '',
      state: '',
      type: '',
      vlanId: '',
      vrf: {
        name: '',
        qosPolicy: {
          bandwidthGbps: ''
        },
        state: '',
        vlanAttachments: [
          {
            id: '',
            pairingKey: '',
            peerIp: '',
            peerVlanId: '',
            qosPolicy: {},
            routerIp: ''
          }
        ]
      }
    }
  ],
  osImage: '',
  pod: '',
  state: '',
  updateTime: '',
  volumes: [
    {
      attached: false,
      autoGrownSizeGib: '',
      bootVolume: false,
      currentSizeGib: '',
      emergencySizeGib: '',
      expireTime: '',
      id: '',
      instances: [],
      labels: {},
      maxSizeGib: '',
      name: '',
      notes: '',
      originallyRequestedSizeGib: '',
      performanceTier: '',
      pod: '',
      protocol: '',
      remainingSpaceGib: '',
      requestedSizeGib: '',
      snapshotAutoDeleteBehavior: '',
      snapshotEnabled: false,
      snapshotReservationDetail: {
        reservedSpaceGib: '',
        reservedSpacePercent: 0,
        reservedSpaceRemainingGib: '',
        reservedSpaceUsedPercent: 0
      },
      snapshotSchedulePolicy: '',
      state: '',
      storageAggregatePool: '',
      storageType: '',
      workloadProfile: ''
    }
  ],
  workloadProfile: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/instances',
  headers: {'content-type': 'application/json'},
  data: {
    createTime: '',
    firmwareVersion: '',
    hyperthreadingEnabled: false,
    id: '',
    interactiveSerialConsoleEnabled: false,
    labels: {},
    logicalInterfaces: [
      {
        interfaceIndex: 0,
        logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
        name: ''
      }
    ],
    loginInfo: '',
    luns: [
      {
        bootLun: false,
        expireTime: '',
        id: '',
        instances: [],
        multiprotocolType: '',
        name: '',
        shareable: false,
        sizeGb: '',
        state: '',
        storageType: '',
        storageVolume: '',
        wwid: ''
      }
    ],
    machineType: '',
    name: '',
    networkTemplate: '',
    networks: [
      {
        cidr: '',
        gatewayIp: '',
        id: '',
        ipAddress: '',
        jumboFramesEnabled: false,
        labels: {},
        macAddress: [],
        mountPoints: [{defaultGateway: false, instance: '', ipAddress: '', logicalInterface: ''}],
        name: '',
        pod: '',
        reservations: [{endAddress: '', note: '', startAddress: ''}],
        servicesCidr: '',
        state: '',
        type: '',
        vlanId: '',
        vrf: {
          name: '',
          qosPolicy: {bandwidthGbps: ''},
          state: '',
          vlanAttachments: [
            {
              id: '',
              pairingKey: '',
              peerIp: '',
              peerVlanId: '',
              qosPolicy: {},
              routerIp: ''
            }
          ]
        }
      }
    ],
    osImage: '',
    pod: '',
    state: '',
    updateTime: '',
    volumes: [
      {
        attached: false,
        autoGrownSizeGib: '',
        bootVolume: false,
        currentSizeGib: '',
        emergencySizeGib: '',
        expireTime: '',
        id: '',
        instances: [],
        labels: {},
        maxSizeGib: '',
        name: '',
        notes: '',
        originallyRequestedSizeGib: '',
        performanceTier: '',
        pod: '',
        protocol: '',
        remainingSpaceGib: '',
        requestedSizeGib: '',
        snapshotAutoDeleteBehavior: '',
        snapshotEnabled: false,
        snapshotReservationDetail: {
          reservedSpaceGib: '',
          reservedSpacePercent: 0,
          reservedSpaceRemainingGib: '',
          reservedSpaceUsedPercent: 0
        },
        snapshotSchedulePolicy: '',
        state: '',
        storageAggregatePool: '',
        storageType: '',
        workloadProfile: ''
      }
    ],
    workloadProfile: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/instances';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","firmwareVersion":"","hyperthreadingEnabled":false,"id":"","interactiveSerialConsoleEnabled":false,"labels":{},"logicalInterfaces":[{"interfaceIndex":0,"logicalNetworkInterfaces":[{"defaultGateway":false,"id":"","ipAddress":"","network":"","networkType":""}],"name":""}],"loginInfo":"","luns":[{"bootLun":false,"expireTime":"","id":"","instances":[],"multiprotocolType":"","name":"","shareable":false,"sizeGb":"","state":"","storageType":"","storageVolume":"","wwid":""}],"machineType":"","name":"","networkTemplate":"","networks":[{"cidr":"","gatewayIp":"","id":"","ipAddress":"","jumboFramesEnabled":false,"labels":{},"macAddress":[],"mountPoints":[{"defaultGateway":false,"instance":"","ipAddress":"","logicalInterface":""}],"name":"","pod":"","reservations":[{"endAddress":"","note":"","startAddress":""}],"servicesCidr":"","state":"","type":"","vlanId":"","vrf":{"name":"","qosPolicy":{"bandwidthGbps":""},"state":"","vlanAttachments":[{"id":"","pairingKey":"","peerIp":"","peerVlanId":"","qosPolicy":{},"routerIp":""}]}}],"osImage":"","pod":"","state":"","updateTime":"","volumes":[{"attached":false,"autoGrownSizeGib":"","bootVolume":false,"currentSizeGib":"","emergencySizeGib":"","expireTime":"","id":"","instances":[],"labels":{},"maxSizeGib":"","name":"","notes":"","originallyRequestedSizeGib":"","performanceTier":"","pod":"","protocol":"","remainingSpaceGib":"","requestedSizeGib":"","snapshotAutoDeleteBehavior":"","snapshotEnabled":false,"snapshotReservationDetail":{"reservedSpaceGib":"","reservedSpacePercent":0,"reservedSpaceRemainingGib":"","reservedSpaceUsedPercent":0},"snapshotSchedulePolicy":"","state":"","storageAggregatePool":"","storageType":"","workloadProfile":""}],"workloadProfile":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"createTime": @"",
                              @"firmwareVersion": @"",
                              @"hyperthreadingEnabled": @NO,
                              @"id": @"",
                              @"interactiveSerialConsoleEnabled": @NO,
                              @"labels": @{  },
                              @"logicalInterfaces": @[ @{ @"interfaceIndex": @0, @"logicalNetworkInterfaces": @[ @{ @"defaultGateway": @NO, @"id": @"", @"ipAddress": @"", @"network": @"", @"networkType": @"" } ], @"name": @"" } ],
                              @"loginInfo": @"",
                              @"luns": @[ @{ @"bootLun": @NO, @"expireTime": @"", @"id": @"", @"instances": @[  ], @"multiprotocolType": @"", @"name": @"", @"shareable": @NO, @"sizeGb": @"", @"state": @"", @"storageType": @"", @"storageVolume": @"", @"wwid": @"" } ],
                              @"machineType": @"",
                              @"name": @"",
                              @"networkTemplate": @"",
                              @"networks": @[ @{ @"cidr": @"", @"gatewayIp": @"", @"id": @"", @"ipAddress": @"", @"jumboFramesEnabled": @NO, @"labels": @{  }, @"macAddress": @[  ], @"mountPoints": @[ @{ @"defaultGateway": @NO, @"instance": @"", @"ipAddress": @"", @"logicalInterface": @"" } ], @"name": @"", @"pod": @"", @"reservations": @[ @{ @"endAddress": @"", @"note": @"", @"startAddress": @"" } ], @"servicesCidr": @"", @"state": @"", @"type": @"", @"vlanId": @"", @"vrf": @{ @"name": @"", @"qosPolicy": @{ @"bandwidthGbps": @"" }, @"state": @"", @"vlanAttachments": @[ @{ @"id": @"", @"pairingKey": @"", @"peerIp": @"", @"peerVlanId": @"", @"qosPolicy": @{  }, @"routerIp": @"" } ] } } ],
                              @"osImage": @"",
                              @"pod": @"",
                              @"state": @"",
                              @"updateTime": @"",
                              @"volumes": @[ @{ @"attached": @NO, @"autoGrownSizeGib": @"", @"bootVolume": @NO, @"currentSizeGib": @"", @"emergencySizeGib": @"", @"expireTime": @"", @"id": @"", @"instances": @[  ], @"labels": @{  }, @"maxSizeGib": @"", @"name": @"", @"notes": @"", @"originallyRequestedSizeGib": @"", @"performanceTier": @"", @"pod": @"", @"protocol": @"", @"remainingSpaceGib": @"", @"requestedSizeGib": @"", @"snapshotAutoDeleteBehavior": @"", @"snapshotEnabled": @NO, @"snapshotReservationDetail": @{ @"reservedSpaceGib": @"", @"reservedSpacePercent": @0, @"reservedSpaceRemainingGib": @"", @"reservedSpaceUsedPercent": @0 }, @"snapshotSchedulePolicy": @"", @"state": @"", @"storageAggregatePool": @"", @"storageType": @"", @"workloadProfile": @"" } ],
                              @"workloadProfile": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/instances"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/instances" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/instances",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'createTime' => '',
    'firmwareVersion' => '',
    'hyperthreadingEnabled' => null,
    'id' => '',
    'interactiveSerialConsoleEnabled' => null,
    'labels' => [
        
    ],
    'logicalInterfaces' => [
        [
                'interfaceIndex' => 0,
                'logicalNetworkInterfaces' => [
                                [
                                                                'defaultGateway' => null,
                                                                'id' => '',
                                                                'ipAddress' => '',
                                                                'network' => '',
                                                                'networkType' => ''
                                ]
                ],
                'name' => ''
        ]
    ],
    'loginInfo' => '',
    'luns' => [
        [
                'bootLun' => null,
                'expireTime' => '',
                'id' => '',
                'instances' => [
                                
                ],
                'multiprotocolType' => '',
                'name' => '',
                'shareable' => null,
                'sizeGb' => '',
                'state' => '',
                'storageType' => '',
                'storageVolume' => '',
                'wwid' => ''
        ]
    ],
    'machineType' => '',
    'name' => '',
    'networkTemplate' => '',
    'networks' => [
        [
                'cidr' => '',
                'gatewayIp' => '',
                'id' => '',
                'ipAddress' => '',
                'jumboFramesEnabled' => null,
                'labels' => [
                                
                ],
                'macAddress' => [
                                
                ],
                'mountPoints' => [
                                [
                                                                'defaultGateway' => null,
                                                                'instance' => '',
                                                                'ipAddress' => '',
                                                                'logicalInterface' => ''
                                ]
                ],
                'name' => '',
                'pod' => '',
                'reservations' => [
                                [
                                                                'endAddress' => '',
                                                                'note' => '',
                                                                'startAddress' => ''
                                ]
                ],
                'servicesCidr' => '',
                'state' => '',
                'type' => '',
                'vlanId' => '',
                'vrf' => [
                                'name' => '',
                                'qosPolicy' => [
                                                                'bandwidthGbps' => ''
                                ],
                                'state' => '',
                                'vlanAttachments' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'pairingKey' => '',
                                                                                                                                'peerIp' => '',
                                                                                                                                'peerVlanId' => '',
                                                                                                                                'qosPolicy' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'routerIp' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'osImage' => '',
    'pod' => '',
    'state' => '',
    'updateTime' => '',
    'volumes' => [
        [
                'attached' => null,
                'autoGrownSizeGib' => '',
                'bootVolume' => null,
                'currentSizeGib' => '',
                'emergencySizeGib' => '',
                'expireTime' => '',
                'id' => '',
                'instances' => [
                                
                ],
                'labels' => [
                                
                ],
                'maxSizeGib' => '',
                'name' => '',
                'notes' => '',
                'originallyRequestedSizeGib' => '',
                'performanceTier' => '',
                'pod' => '',
                'protocol' => '',
                'remainingSpaceGib' => '',
                'requestedSizeGib' => '',
                'snapshotAutoDeleteBehavior' => '',
                'snapshotEnabled' => null,
                'snapshotReservationDetail' => [
                                'reservedSpaceGib' => '',
                                'reservedSpacePercent' => 0,
                                'reservedSpaceRemainingGib' => '',
                                'reservedSpaceUsedPercent' => 0
                ],
                'snapshotSchedulePolicy' => '',
                'state' => '',
                'storageAggregatePool' => '',
                'storageType' => '',
                'workloadProfile' => ''
        ]
    ],
    'workloadProfile' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:parent/instances', [
  'body' => '{
  "createTime": "",
  "firmwareVersion": "",
  "hyperthreadingEnabled": false,
  "id": "",
  "interactiveSerialConsoleEnabled": false,
  "labels": {},
  "logicalInterfaces": [
    {
      "interfaceIndex": 0,
      "logicalNetworkInterfaces": [
        {
          "defaultGateway": false,
          "id": "",
          "ipAddress": "",
          "network": "",
          "networkType": ""
        }
      ],
      "name": ""
    }
  ],
  "loginInfo": "",
  "luns": [
    {
      "bootLun": false,
      "expireTime": "",
      "id": "",
      "instances": [],
      "multiprotocolType": "",
      "name": "",
      "shareable": false,
      "sizeGb": "",
      "state": "",
      "storageType": "",
      "storageVolume": "",
      "wwid": ""
    }
  ],
  "machineType": "",
  "name": "",
  "networkTemplate": "",
  "networks": [
    {
      "cidr": "",
      "gatewayIp": "",
      "id": "",
      "ipAddress": "",
      "jumboFramesEnabled": false,
      "labels": {},
      "macAddress": [],
      "mountPoints": [
        {
          "defaultGateway": false,
          "instance": "",
          "ipAddress": "",
          "logicalInterface": ""
        }
      ],
      "name": "",
      "pod": "",
      "reservations": [
        {
          "endAddress": "",
          "note": "",
          "startAddress": ""
        }
      ],
      "servicesCidr": "",
      "state": "",
      "type": "",
      "vlanId": "",
      "vrf": {
        "name": "",
        "qosPolicy": {
          "bandwidthGbps": ""
        },
        "state": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": "",
            "peerIp": "",
            "peerVlanId": "",
            "qosPolicy": {},
            "routerIp": ""
          }
        ]
      }
    }
  ],
  "osImage": "",
  "pod": "",
  "state": "",
  "updateTime": "",
  "volumes": [
    {
      "attached": false,
      "autoGrownSizeGib": "",
      "bootVolume": false,
      "currentSizeGib": "",
      "emergencySizeGib": "",
      "expireTime": "",
      "id": "",
      "instances": [],
      "labels": {},
      "maxSizeGib": "",
      "name": "",
      "notes": "",
      "originallyRequestedSizeGib": "",
      "performanceTier": "",
      "pod": "",
      "protocol": "",
      "remainingSpaceGib": "",
      "requestedSizeGib": "",
      "snapshotAutoDeleteBehavior": "",
      "snapshotEnabled": false,
      "snapshotReservationDetail": {
        "reservedSpaceGib": "",
        "reservedSpacePercent": 0,
        "reservedSpaceRemainingGib": "",
        "reservedSpaceUsedPercent": 0
      },
      "snapshotSchedulePolicy": "",
      "state": "",
      "storageAggregatePool": "",
      "storageType": "",
      "workloadProfile": ""
    }
  ],
  "workloadProfile": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/instances');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createTime' => '',
  'firmwareVersion' => '',
  'hyperthreadingEnabled' => null,
  'id' => '',
  'interactiveSerialConsoleEnabled' => null,
  'labels' => [
    
  ],
  'logicalInterfaces' => [
    [
        'interfaceIndex' => 0,
        'logicalNetworkInterfaces' => [
                [
                                'defaultGateway' => null,
                                'id' => '',
                                'ipAddress' => '',
                                'network' => '',
                                'networkType' => ''
                ]
        ],
        'name' => ''
    ]
  ],
  'loginInfo' => '',
  'luns' => [
    [
        'bootLun' => null,
        'expireTime' => '',
        'id' => '',
        'instances' => [
                
        ],
        'multiprotocolType' => '',
        'name' => '',
        'shareable' => null,
        'sizeGb' => '',
        'state' => '',
        'storageType' => '',
        'storageVolume' => '',
        'wwid' => ''
    ]
  ],
  'machineType' => '',
  'name' => '',
  'networkTemplate' => '',
  'networks' => [
    [
        'cidr' => '',
        'gatewayIp' => '',
        'id' => '',
        'ipAddress' => '',
        'jumboFramesEnabled' => null,
        'labels' => [
                
        ],
        'macAddress' => [
                
        ],
        'mountPoints' => [
                [
                                'defaultGateway' => null,
                                'instance' => '',
                                'ipAddress' => '',
                                'logicalInterface' => ''
                ]
        ],
        'name' => '',
        'pod' => '',
        'reservations' => [
                [
                                'endAddress' => '',
                                'note' => '',
                                'startAddress' => ''
                ]
        ],
        'servicesCidr' => '',
        'state' => '',
        'type' => '',
        'vlanId' => '',
        'vrf' => [
                'name' => '',
                'qosPolicy' => [
                                'bandwidthGbps' => ''
                ],
                'state' => '',
                'vlanAttachments' => [
                                [
                                                                'id' => '',
                                                                'pairingKey' => '',
                                                                'peerIp' => '',
                                                                'peerVlanId' => '',
                                                                'qosPolicy' => [
                                                                                                                                
                                                                ],
                                                                'routerIp' => ''
                                ]
                ]
        ]
    ]
  ],
  'osImage' => '',
  'pod' => '',
  'state' => '',
  'updateTime' => '',
  'volumes' => [
    [
        'attached' => null,
        'autoGrownSizeGib' => '',
        'bootVolume' => null,
        'currentSizeGib' => '',
        'emergencySizeGib' => '',
        'expireTime' => '',
        'id' => '',
        'instances' => [
                
        ],
        'labels' => [
                
        ],
        'maxSizeGib' => '',
        'name' => '',
        'notes' => '',
        'originallyRequestedSizeGib' => '',
        'performanceTier' => '',
        'pod' => '',
        'protocol' => '',
        'remainingSpaceGib' => '',
        'requestedSizeGib' => '',
        'snapshotAutoDeleteBehavior' => '',
        'snapshotEnabled' => null,
        'snapshotReservationDetail' => [
                'reservedSpaceGib' => '',
                'reservedSpacePercent' => 0,
                'reservedSpaceRemainingGib' => '',
                'reservedSpaceUsedPercent' => 0
        ],
        'snapshotSchedulePolicy' => '',
        'state' => '',
        'storageAggregatePool' => '',
        'storageType' => '',
        'workloadProfile' => ''
    ]
  ],
  'workloadProfile' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createTime' => '',
  'firmwareVersion' => '',
  'hyperthreadingEnabled' => null,
  'id' => '',
  'interactiveSerialConsoleEnabled' => null,
  'labels' => [
    
  ],
  'logicalInterfaces' => [
    [
        'interfaceIndex' => 0,
        'logicalNetworkInterfaces' => [
                [
                                'defaultGateway' => null,
                                'id' => '',
                                'ipAddress' => '',
                                'network' => '',
                                'networkType' => ''
                ]
        ],
        'name' => ''
    ]
  ],
  'loginInfo' => '',
  'luns' => [
    [
        'bootLun' => null,
        'expireTime' => '',
        'id' => '',
        'instances' => [
                
        ],
        'multiprotocolType' => '',
        'name' => '',
        'shareable' => null,
        'sizeGb' => '',
        'state' => '',
        'storageType' => '',
        'storageVolume' => '',
        'wwid' => ''
    ]
  ],
  'machineType' => '',
  'name' => '',
  'networkTemplate' => '',
  'networks' => [
    [
        'cidr' => '',
        'gatewayIp' => '',
        'id' => '',
        'ipAddress' => '',
        'jumboFramesEnabled' => null,
        'labels' => [
                
        ],
        'macAddress' => [
                
        ],
        'mountPoints' => [
                [
                                'defaultGateway' => null,
                                'instance' => '',
                                'ipAddress' => '',
                                'logicalInterface' => ''
                ]
        ],
        'name' => '',
        'pod' => '',
        'reservations' => [
                [
                                'endAddress' => '',
                                'note' => '',
                                'startAddress' => ''
                ]
        ],
        'servicesCidr' => '',
        'state' => '',
        'type' => '',
        'vlanId' => '',
        'vrf' => [
                'name' => '',
                'qosPolicy' => [
                                'bandwidthGbps' => ''
                ],
                'state' => '',
                'vlanAttachments' => [
                                [
                                                                'id' => '',
                                                                'pairingKey' => '',
                                                                'peerIp' => '',
                                                                'peerVlanId' => '',
                                                                'qosPolicy' => [
                                                                                                                                
                                                                ],
                                                                'routerIp' => ''
                                ]
                ]
        ]
    ]
  ],
  'osImage' => '',
  'pod' => '',
  'state' => '',
  'updateTime' => '',
  'volumes' => [
    [
        'attached' => null,
        'autoGrownSizeGib' => '',
        'bootVolume' => null,
        'currentSizeGib' => '',
        'emergencySizeGib' => '',
        'expireTime' => '',
        'id' => '',
        'instances' => [
                
        ],
        'labels' => [
                
        ],
        'maxSizeGib' => '',
        'name' => '',
        'notes' => '',
        'originallyRequestedSizeGib' => '',
        'performanceTier' => '',
        'pod' => '',
        'protocol' => '',
        'remainingSpaceGib' => '',
        'requestedSizeGib' => '',
        'snapshotAutoDeleteBehavior' => '',
        'snapshotEnabled' => null,
        'snapshotReservationDetail' => [
                'reservedSpaceGib' => '',
                'reservedSpacePercent' => 0,
                'reservedSpaceRemainingGib' => '',
                'reservedSpaceUsedPercent' => 0
        ],
        'snapshotSchedulePolicy' => '',
        'state' => '',
        'storageAggregatePool' => '',
        'storageType' => '',
        'workloadProfile' => ''
    ]
  ],
  'workloadProfile' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/:parent/instances');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/instances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "firmwareVersion": "",
  "hyperthreadingEnabled": false,
  "id": "",
  "interactiveSerialConsoleEnabled": false,
  "labels": {},
  "logicalInterfaces": [
    {
      "interfaceIndex": 0,
      "logicalNetworkInterfaces": [
        {
          "defaultGateway": false,
          "id": "",
          "ipAddress": "",
          "network": "",
          "networkType": ""
        }
      ],
      "name": ""
    }
  ],
  "loginInfo": "",
  "luns": [
    {
      "bootLun": false,
      "expireTime": "",
      "id": "",
      "instances": [],
      "multiprotocolType": "",
      "name": "",
      "shareable": false,
      "sizeGb": "",
      "state": "",
      "storageType": "",
      "storageVolume": "",
      "wwid": ""
    }
  ],
  "machineType": "",
  "name": "",
  "networkTemplate": "",
  "networks": [
    {
      "cidr": "",
      "gatewayIp": "",
      "id": "",
      "ipAddress": "",
      "jumboFramesEnabled": false,
      "labels": {},
      "macAddress": [],
      "mountPoints": [
        {
          "defaultGateway": false,
          "instance": "",
          "ipAddress": "",
          "logicalInterface": ""
        }
      ],
      "name": "",
      "pod": "",
      "reservations": [
        {
          "endAddress": "",
          "note": "",
          "startAddress": ""
        }
      ],
      "servicesCidr": "",
      "state": "",
      "type": "",
      "vlanId": "",
      "vrf": {
        "name": "",
        "qosPolicy": {
          "bandwidthGbps": ""
        },
        "state": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": "",
            "peerIp": "",
            "peerVlanId": "",
            "qosPolicy": {},
            "routerIp": ""
          }
        ]
      }
    }
  ],
  "osImage": "",
  "pod": "",
  "state": "",
  "updateTime": "",
  "volumes": [
    {
      "attached": false,
      "autoGrownSizeGib": "",
      "bootVolume": false,
      "currentSizeGib": "",
      "emergencySizeGib": "",
      "expireTime": "",
      "id": "",
      "instances": [],
      "labels": {},
      "maxSizeGib": "",
      "name": "",
      "notes": "",
      "originallyRequestedSizeGib": "",
      "performanceTier": "",
      "pod": "",
      "protocol": "",
      "remainingSpaceGib": "",
      "requestedSizeGib": "",
      "snapshotAutoDeleteBehavior": "",
      "snapshotEnabled": false,
      "snapshotReservationDetail": {
        "reservedSpaceGib": "",
        "reservedSpacePercent": 0,
        "reservedSpaceRemainingGib": "",
        "reservedSpaceUsedPercent": 0
      },
      "snapshotSchedulePolicy": "",
      "state": "",
      "storageAggregatePool": "",
      "storageType": "",
      "workloadProfile": ""
    }
  ],
  "workloadProfile": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/instances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "firmwareVersion": "",
  "hyperthreadingEnabled": false,
  "id": "",
  "interactiveSerialConsoleEnabled": false,
  "labels": {},
  "logicalInterfaces": [
    {
      "interfaceIndex": 0,
      "logicalNetworkInterfaces": [
        {
          "defaultGateway": false,
          "id": "",
          "ipAddress": "",
          "network": "",
          "networkType": ""
        }
      ],
      "name": ""
    }
  ],
  "loginInfo": "",
  "luns": [
    {
      "bootLun": false,
      "expireTime": "",
      "id": "",
      "instances": [],
      "multiprotocolType": "",
      "name": "",
      "shareable": false,
      "sizeGb": "",
      "state": "",
      "storageType": "",
      "storageVolume": "",
      "wwid": ""
    }
  ],
  "machineType": "",
  "name": "",
  "networkTemplate": "",
  "networks": [
    {
      "cidr": "",
      "gatewayIp": "",
      "id": "",
      "ipAddress": "",
      "jumboFramesEnabled": false,
      "labels": {},
      "macAddress": [],
      "mountPoints": [
        {
          "defaultGateway": false,
          "instance": "",
          "ipAddress": "",
          "logicalInterface": ""
        }
      ],
      "name": "",
      "pod": "",
      "reservations": [
        {
          "endAddress": "",
          "note": "",
          "startAddress": ""
        }
      ],
      "servicesCidr": "",
      "state": "",
      "type": "",
      "vlanId": "",
      "vrf": {
        "name": "",
        "qosPolicy": {
          "bandwidthGbps": ""
        },
        "state": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": "",
            "peerIp": "",
            "peerVlanId": "",
            "qosPolicy": {},
            "routerIp": ""
          }
        ]
      }
    }
  ],
  "osImage": "",
  "pod": "",
  "state": "",
  "updateTime": "",
  "volumes": [
    {
      "attached": false,
      "autoGrownSizeGib": "",
      "bootVolume": false,
      "currentSizeGib": "",
      "emergencySizeGib": "",
      "expireTime": "",
      "id": "",
      "instances": [],
      "labels": {},
      "maxSizeGib": "",
      "name": "",
      "notes": "",
      "originallyRequestedSizeGib": "",
      "performanceTier": "",
      "pod": "",
      "protocol": "",
      "remainingSpaceGib": "",
      "requestedSizeGib": "",
      "snapshotAutoDeleteBehavior": "",
      "snapshotEnabled": false,
      "snapshotReservationDetail": {
        "reservedSpaceGib": "",
        "reservedSpacePercent": 0,
        "reservedSpaceRemainingGib": "",
        "reservedSpaceUsedPercent": 0
      },
      "snapshotSchedulePolicy": "",
      "state": "",
      "storageAggregatePool": "",
      "storageType": "",
      "workloadProfile": ""
    }
  ],
  "workloadProfile": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:parent/instances", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/instances"

payload = {
    "createTime": "",
    "firmwareVersion": "",
    "hyperthreadingEnabled": False,
    "id": "",
    "interactiveSerialConsoleEnabled": False,
    "labels": {},
    "logicalInterfaces": [
        {
            "interfaceIndex": 0,
            "logicalNetworkInterfaces": [
                {
                    "defaultGateway": False,
                    "id": "",
                    "ipAddress": "",
                    "network": "",
                    "networkType": ""
                }
            ],
            "name": ""
        }
    ],
    "loginInfo": "",
    "luns": [
        {
            "bootLun": False,
            "expireTime": "",
            "id": "",
            "instances": [],
            "multiprotocolType": "",
            "name": "",
            "shareable": False,
            "sizeGb": "",
            "state": "",
            "storageType": "",
            "storageVolume": "",
            "wwid": ""
        }
    ],
    "machineType": "",
    "name": "",
    "networkTemplate": "",
    "networks": [
        {
            "cidr": "",
            "gatewayIp": "",
            "id": "",
            "ipAddress": "",
            "jumboFramesEnabled": False,
            "labels": {},
            "macAddress": [],
            "mountPoints": [
                {
                    "defaultGateway": False,
                    "instance": "",
                    "ipAddress": "",
                    "logicalInterface": ""
                }
            ],
            "name": "",
            "pod": "",
            "reservations": [
                {
                    "endAddress": "",
                    "note": "",
                    "startAddress": ""
                }
            ],
            "servicesCidr": "",
            "state": "",
            "type": "",
            "vlanId": "",
            "vrf": {
                "name": "",
                "qosPolicy": { "bandwidthGbps": "" },
                "state": "",
                "vlanAttachments": [
                    {
                        "id": "",
                        "pairingKey": "",
                        "peerIp": "",
                        "peerVlanId": "",
                        "qosPolicy": {},
                        "routerIp": ""
                    }
                ]
            }
        }
    ],
    "osImage": "",
    "pod": "",
    "state": "",
    "updateTime": "",
    "volumes": [
        {
            "attached": False,
            "autoGrownSizeGib": "",
            "bootVolume": False,
            "currentSizeGib": "",
            "emergencySizeGib": "",
            "expireTime": "",
            "id": "",
            "instances": [],
            "labels": {},
            "maxSizeGib": "",
            "name": "",
            "notes": "",
            "originallyRequestedSizeGib": "",
            "performanceTier": "",
            "pod": "",
            "protocol": "",
            "remainingSpaceGib": "",
            "requestedSizeGib": "",
            "snapshotAutoDeleteBehavior": "",
            "snapshotEnabled": False,
            "snapshotReservationDetail": {
                "reservedSpaceGib": "",
                "reservedSpacePercent": 0,
                "reservedSpaceRemainingGib": "",
                "reservedSpaceUsedPercent": 0
            },
            "snapshotSchedulePolicy": "",
            "state": "",
            "storageAggregatePool": "",
            "storageType": "",
            "workloadProfile": ""
        }
    ],
    "workloadProfile": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/instances"

payload <- "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/instances")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:parent/instances') do |req|
  req.body = "{\n  \"createTime\": \"\",\n  \"firmwareVersion\": \"\",\n  \"hyperthreadingEnabled\": false,\n  \"id\": \"\",\n  \"interactiveSerialConsoleEnabled\": false,\n  \"labels\": {},\n  \"logicalInterfaces\": [\n    {\n      \"interfaceIndex\": 0,\n      \"logicalNetworkInterfaces\": [\n        {\n          \"defaultGateway\": false,\n          \"id\": \"\",\n          \"ipAddress\": \"\",\n          \"network\": \"\",\n          \"networkType\": \"\"\n        }\n      ],\n      \"name\": \"\"\n    }\n  ],\n  \"loginInfo\": \"\",\n  \"luns\": [\n    {\n      \"bootLun\": false,\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"multiprotocolType\": \"\",\n      \"name\": \"\",\n      \"shareable\": false,\n      \"sizeGb\": \"\",\n      \"state\": \"\",\n      \"storageType\": \"\",\n      \"storageVolume\": \"\",\n      \"wwid\": \"\"\n    }\n  ],\n  \"machineType\": \"\",\n  \"name\": \"\",\n  \"networkTemplate\": \"\",\n  \"networks\": [\n    {\n      \"cidr\": \"\",\n      \"gatewayIp\": \"\",\n      \"id\": \"\",\n      \"ipAddress\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"labels\": {},\n      \"macAddress\": [],\n      \"mountPoints\": [\n        {\n          \"defaultGateway\": false,\n          \"instance\": \"\",\n          \"ipAddress\": \"\",\n          \"logicalInterface\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"pod\": \"\",\n      \"reservations\": [\n        {\n          \"endAddress\": \"\",\n          \"note\": \"\",\n          \"startAddress\": \"\"\n        }\n      ],\n      \"servicesCidr\": \"\",\n      \"state\": \"\",\n      \"type\": \"\",\n      \"vlanId\": \"\",\n      \"vrf\": {\n        \"name\": \"\",\n        \"qosPolicy\": {\n          \"bandwidthGbps\": \"\"\n        },\n        \"state\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\",\n            \"peerIp\": \"\",\n            \"peerVlanId\": \"\",\n            \"qosPolicy\": {},\n            \"routerIp\": \"\"\n          }\n        ]\n      }\n    }\n  ],\n  \"osImage\": \"\",\n  \"pod\": \"\",\n  \"state\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"attached\": false,\n      \"autoGrownSizeGib\": \"\",\n      \"bootVolume\": false,\n      \"currentSizeGib\": \"\",\n      \"emergencySizeGib\": \"\",\n      \"expireTime\": \"\",\n      \"id\": \"\",\n      \"instances\": [],\n      \"labels\": {},\n      \"maxSizeGib\": \"\",\n      \"name\": \"\",\n      \"notes\": \"\",\n      \"originallyRequestedSizeGib\": \"\",\n      \"performanceTier\": \"\",\n      \"pod\": \"\",\n      \"protocol\": \"\",\n      \"remainingSpaceGib\": \"\",\n      \"requestedSizeGib\": \"\",\n      \"snapshotAutoDeleteBehavior\": \"\",\n      \"snapshotEnabled\": false,\n      \"snapshotReservationDetail\": {\n        \"reservedSpaceGib\": \"\",\n        \"reservedSpacePercent\": 0,\n        \"reservedSpaceRemainingGib\": \"\",\n        \"reservedSpaceUsedPercent\": 0\n      },\n      \"snapshotSchedulePolicy\": \"\",\n      \"state\": \"\",\n      \"storageAggregatePool\": \"\",\n      \"storageType\": \"\",\n      \"workloadProfile\": \"\"\n    }\n  ],\n  \"workloadProfile\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/instances";

    let payload = json!({
        "createTime": "",
        "firmwareVersion": "",
        "hyperthreadingEnabled": false,
        "id": "",
        "interactiveSerialConsoleEnabled": false,
        "labels": json!({}),
        "logicalInterfaces": (
            json!({
                "interfaceIndex": 0,
                "logicalNetworkInterfaces": (
                    json!({
                        "defaultGateway": false,
                        "id": "",
                        "ipAddress": "",
                        "network": "",
                        "networkType": ""
                    })
                ),
                "name": ""
            })
        ),
        "loginInfo": "",
        "luns": (
            json!({
                "bootLun": false,
                "expireTime": "",
                "id": "",
                "instances": (),
                "multiprotocolType": "",
                "name": "",
                "shareable": false,
                "sizeGb": "",
                "state": "",
                "storageType": "",
                "storageVolume": "",
                "wwid": ""
            })
        ),
        "machineType": "",
        "name": "",
        "networkTemplate": "",
        "networks": (
            json!({
                "cidr": "",
                "gatewayIp": "",
                "id": "",
                "ipAddress": "",
                "jumboFramesEnabled": false,
                "labels": json!({}),
                "macAddress": (),
                "mountPoints": (
                    json!({
                        "defaultGateway": false,
                        "instance": "",
                        "ipAddress": "",
                        "logicalInterface": ""
                    })
                ),
                "name": "",
                "pod": "",
                "reservations": (
                    json!({
                        "endAddress": "",
                        "note": "",
                        "startAddress": ""
                    })
                ),
                "servicesCidr": "",
                "state": "",
                "type": "",
                "vlanId": "",
                "vrf": json!({
                    "name": "",
                    "qosPolicy": json!({"bandwidthGbps": ""}),
                    "state": "",
                    "vlanAttachments": (
                        json!({
                            "id": "",
                            "pairingKey": "",
                            "peerIp": "",
                            "peerVlanId": "",
                            "qosPolicy": json!({}),
                            "routerIp": ""
                        })
                    )
                })
            })
        ),
        "osImage": "",
        "pod": "",
        "state": "",
        "updateTime": "",
        "volumes": (
            json!({
                "attached": false,
                "autoGrownSizeGib": "",
                "bootVolume": false,
                "currentSizeGib": "",
                "emergencySizeGib": "",
                "expireTime": "",
                "id": "",
                "instances": (),
                "labels": json!({}),
                "maxSizeGib": "",
                "name": "",
                "notes": "",
                "originallyRequestedSizeGib": "",
                "performanceTier": "",
                "pod": "",
                "protocol": "",
                "remainingSpaceGib": "",
                "requestedSizeGib": "",
                "snapshotAutoDeleteBehavior": "",
                "snapshotEnabled": false,
                "snapshotReservationDetail": json!({
                    "reservedSpaceGib": "",
                    "reservedSpacePercent": 0,
                    "reservedSpaceRemainingGib": "",
                    "reservedSpaceUsedPercent": 0
                }),
                "snapshotSchedulePolicy": "",
                "state": "",
                "storageAggregatePool": "",
                "storageType": "",
                "workloadProfile": ""
            })
        ),
        "workloadProfile": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:parent/instances \
  --header 'content-type: application/json' \
  --data '{
  "createTime": "",
  "firmwareVersion": "",
  "hyperthreadingEnabled": false,
  "id": "",
  "interactiveSerialConsoleEnabled": false,
  "labels": {},
  "logicalInterfaces": [
    {
      "interfaceIndex": 0,
      "logicalNetworkInterfaces": [
        {
          "defaultGateway": false,
          "id": "",
          "ipAddress": "",
          "network": "",
          "networkType": ""
        }
      ],
      "name": ""
    }
  ],
  "loginInfo": "",
  "luns": [
    {
      "bootLun": false,
      "expireTime": "",
      "id": "",
      "instances": [],
      "multiprotocolType": "",
      "name": "",
      "shareable": false,
      "sizeGb": "",
      "state": "",
      "storageType": "",
      "storageVolume": "",
      "wwid": ""
    }
  ],
  "machineType": "",
  "name": "",
  "networkTemplate": "",
  "networks": [
    {
      "cidr": "",
      "gatewayIp": "",
      "id": "",
      "ipAddress": "",
      "jumboFramesEnabled": false,
      "labels": {},
      "macAddress": [],
      "mountPoints": [
        {
          "defaultGateway": false,
          "instance": "",
          "ipAddress": "",
          "logicalInterface": ""
        }
      ],
      "name": "",
      "pod": "",
      "reservations": [
        {
          "endAddress": "",
          "note": "",
          "startAddress": ""
        }
      ],
      "servicesCidr": "",
      "state": "",
      "type": "",
      "vlanId": "",
      "vrf": {
        "name": "",
        "qosPolicy": {
          "bandwidthGbps": ""
        },
        "state": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": "",
            "peerIp": "",
            "peerVlanId": "",
            "qosPolicy": {},
            "routerIp": ""
          }
        ]
      }
    }
  ],
  "osImage": "",
  "pod": "",
  "state": "",
  "updateTime": "",
  "volumes": [
    {
      "attached": false,
      "autoGrownSizeGib": "",
      "bootVolume": false,
      "currentSizeGib": "",
      "emergencySizeGib": "",
      "expireTime": "",
      "id": "",
      "instances": [],
      "labels": {},
      "maxSizeGib": "",
      "name": "",
      "notes": "",
      "originallyRequestedSizeGib": "",
      "performanceTier": "",
      "pod": "",
      "protocol": "",
      "remainingSpaceGib": "",
      "requestedSizeGib": "",
      "snapshotAutoDeleteBehavior": "",
      "snapshotEnabled": false,
      "snapshotReservationDetail": {
        "reservedSpaceGib": "",
        "reservedSpacePercent": 0,
        "reservedSpaceRemainingGib": "",
        "reservedSpaceUsedPercent": 0
      },
      "snapshotSchedulePolicy": "",
      "state": "",
      "storageAggregatePool": "",
      "storageType": "",
      "workloadProfile": ""
    }
  ],
  "workloadProfile": ""
}'
echo '{
  "createTime": "",
  "firmwareVersion": "",
  "hyperthreadingEnabled": false,
  "id": "",
  "interactiveSerialConsoleEnabled": false,
  "labels": {},
  "logicalInterfaces": [
    {
      "interfaceIndex": 0,
      "logicalNetworkInterfaces": [
        {
          "defaultGateway": false,
          "id": "",
          "ipAddress": "",
          "network": "",
          "networkType": ""
        }
      ],
      "name": ""
    }
  ],
  "loginInfo": "",
  "luns": [
    {
      "bootLun": false,
      "expireTime": "",
      "id": "",
      "instances": [],
      "multiprotocolType": "",
      "name": "",
      "shareable": false,
      "sizeGb": "",
      "state": "",
      "storageType": "",
      "storageVolume": "",
      "wwid": ""
    }
  ],
  "machineType": "",
  "name": "",
  "networkTemplate": "",
  "networks": [
    {
      "cidr": "",
      "gatewayIp": "",
      "id": "",
      "ipAddress": "",
      "jumboFramesEnabled": false,
      "labels": {},
      "macAddress": [],
      "mountPoints": [
        {
          "defaultGateway": false,
          "instance": "",
          "ipAddress": "",
          "logicalInterface": ""
        }
      ],
      "name": "",
      "pod": "",
      "reservations": [
        {
          "endAddress": "",
          "note": "",
          "startAddress": ""
        }
      ],
      "servicesCidr": "",
      "state": "",
      "type": "",
      "vlanId": "",
      "vrf": {
        "name": "",
        "qosPolicy": {
          "bandwidthGbps": ""
        },
        "state": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": "",
            "peerIp": "",
            "peerVlanId": "",
            "qosPolicy": {},
            "routerIp": ""
          }
        ]
      }
    }
  ],
  "osImage": "",
  "pod": "",
  "state": "",
  "updateTime": "",
  "volumes": [
    {
      "attached": false,
      "autoGrownSizeGib": "",
      "bootVolume": false,
      "currentSizeGib": "",
      "emergencySizeGib": "",
      "expireTime": "",
      "id": "",
      "instances": [],
      "labels": {},
      "maxSizeGib": "",
      "name": "",
      "notes": "",
      "originallyRequestedSizeGib": "",
      "performanceTier": "",
      "pod": "",
      "protocol": "",
      "remainingSpaceGib": "",
      "requestedSizeGib": "",
      "snapshotAutoDeleteBehavior": "",
      "snapshotEnabled": false,
      "snapshotReservationDetail": {
        "reservedSpaceGib": "",
        "reservedSpacePercent": 0,
        "reservedSpaceRemainingGib": "",
        "reservedSpaceUsedPercent": 0
      },
      "snapshotSchedulePolicy": "",
      "state": "",
      "storageAggregatePool": "",
      "storageType": "",
      "workloadProfile": ""
    }
  ],
  "workloadProfile": ""
}' |  \
  http POST {{baseUrl}}/v2/:parent/instances \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createTime": "",\n  "firmwareVersion": "",\n  "hyperthreadingEnabled": false,\n  "id": "",\n  "interactiveSerialConsoleEnabled": false,\n  "labels": {},\n  "logicalInterfaces": [\n    {\n      "interfaceIndex": 0,\n      "logicalNetworkInterfaces": [\n        {\n          "defaultGateway": false,\n          "id": "",\n          "ipAddress": "",\n          "network": "",\n          "networkType": ""\n        }\n      ],\n      "name": ""\n    }\n  ],\n  "loginInfo": "",\n  "luns": [\n    {\n      "bootLun": false,\n      "expireTime": "",\n      "id": "",\n      "instances": [],\n      "multiprotocolType": "",\n      "name": "",\n      "shareable": false,\n      "sizeGb": "",\n      "state": "",\n      "storageType": "",\n      "storageVolume": "",\n      "wwid": ""\n    }\n  ],\n  "machineType": "",\n  "name": "",\n  "networkTemplate": "",\n  "networks": [\n    {\n      "cidr": "",\n      "gatewayIp": "",\n      "id": "",\n      "ipAddress": "",\n      "jumboFramesEnabled": false,\n      "labels": {},\n      "macAddress": [],\n      "mountPoints": [\n        {\n          "defaultGateway": false,\n          "instance": "",\n          "ipAddress": "",\n          "logicalInterface": ""\n        }\n      ],\n      "name": "",\n      "pod": "",\n      "reservations": [\n        {\n          "endAddress": "",\n          "note": "",\n          "startAddress": ""\n        }\n      ],\n      "servicesCidr": "",\n      "state": "",\n      "type": "",\n      "vlanId": "",\n      "vrf": {\n        "name": "",\n        "qosPolicy": {\n          "bandwidthGbps": ""\n        },\n        "state": "",\n        "vlanAttachments": [\n          {\n            "id": "",\n            "pairingKey": "",\n            "peerIp": "",\n            "peerVlanId": "",\n            "qosPolicy": {},\n            "routerIp": ""\n          }\n        ]\n      }\n    }\n  ],\n  "osImage": "",\n  "pod": "",\n  "state": "",\n  "updateTime": "",\n  "volumes": [\n    {\n      "attached": false,\n      "autoGrownSizeGib": "",\n      "bootVolume": false,\n      "currentSizeGib": "",\n      "emergencySizeGib": "",\n      "expireTime": "",\n      "id": "",\n      "instances": [],\n      "labels": {},\n      "maxSizeGib": "",\n      "name": "",\n      "notes": "",\n      "originallyRequestedSizeGib": "",\n      "performanceTier": "",\n      "pod": "",\n      "protocol": "",\n      "remainingSpaceGib": "",\n      "requestedSizeGib": "",\n      "snapshotAutoDeleteBehavior": "",\n      "snapshotEnabled": false,\n      "snapshotReservationDetail": {\n        "reservedSpaceGib": "",\n        "reservedSpacePercent": 0,\n        "reservedSpaceRemainingGib": "",\n        "reservedSpaceUsedPercent": 0\n      },\n      "snapshotSchedulePolicy": "",\n      "state": "",\n      "storageAggregatePool": "",\n      "storageType": "",\n      "workloadProfile": ""\n    }\n  ],\n  "workloadProfile": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/:parent/instances
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createTime": "",
  "firmwareVersion": "",
  "hyperthreadingEnabled": false,
  "id": "",
  "interactiveSerialConsoleEnabled": false,
  "labels": [],
  "logicalInterfaces": [
    [
      "interfaceIndex": 0,
      "logicalNetworkInterfaces": [
        [
          "defaultGateway": false,
          "id": "",
          "ipAddress": "",
          "network": "",
          "networkType": ""
        ]
      ],
      "name": ""
    ]
  ],
  "loginInfo": "",
  "luns": [
    [
      "bootLun": false,
      "expireTime": "",
      "id": "",
      "instances": [],
      "multiprotocolType": "",
      "name": "",
      "shareable": false,
      "sizeGb": "",
      "state": "",
      "storageType": "",
      "storageVolume": "",
      "wwid": ""
    ]
  ],
  "machineType": "",
  "name": "",
  "networkTemplate": "",
  "networks": [
    [
      "cidr": "",
      "gatewayIp": "",
      "id": "",
      "ipAddress": "",
      "jumboFramesEnabled": false,
      "labels": [],
      "macAddress": [],
      "mountPoints": [
        [
          "defaultGateway": false,
          "instance": "",
          "ipAddress": "",
          "logicalInterface": ""
        ]
      ],
      "name": "",
      "pod": "",
      "reservations": [
        [
          "endAddress": "",
          "note": "",
          "startAddress": ""
        ]
      ],
      "servicesCidr": "",
      "state": "",
      "type": "",
      "vlanId": "",
      "vrf": [
        "name": "",
        "qosPolicy": ["bandwidthGbps": ""],
        "state": "",
        "vlanAttachments": [
          [
            "id": "",
            "pairingKey": "",
            "peerIp": "",
            "peerVlanId": "",
            "qosPolicy": [],
            "routerIp": ""
          ]
        ]
      ]
    ]
  ],
  "osImage": "",
  "pod": "",
  "state": "",
  "updateTime": "",
  "volumes": [
    [
      "attached": false,
      "autoGrownSizeGib": "",
      "bootVolume": false,
      "currentSizeGib": "",
      "emergencySizeGib": "",
      "expireTime": "",
      "id": "",
      "instances": [],
      "labels": [],
      "maxSizeGib": "",
      "name": "",
      "notes": "",
      "originallyRequestedSizeGib": "",
      "performanceTier": "",
      "pod": "",
      "protocol": "",
      "remainingSpaceGib": "",
      "requestedSizeGib": "",
      "snapshotAutoDeleteBehavior": "",
      "snapshotEnabled": false,
      "snapshotReservationDetail": [
        "reservedSpaceGib": "",
        "reservedSpacePercent": 0,
        "reservedSpaceRemainingGib": "",
        "reservedSpaceUsedPercent": 0
      ],
      "snapshotSchedulePolicy": "",
      "state": "",
      "storageAggregatePool": "",
      "storageType": "",
      "workloadProfile": ""
    ]
  ],
  "workloadProfile": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/instances")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.instances.detachLun
{{baseUrl}}/v2/:instance:detachLun
QUERY PARAMS

instance
BODY json

{
  "lun": "",
  "skipReboot": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:instance:detachLun");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:instance:detachLun" {:content-type :json
                                                                   :form-params {:lun ""
                                                                                 :skipReboot false}})
require "http/client"

url = "{{baseUrl}}/v2/:instance:detachLun"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:instance:detachLun"),
    Content = new StringContent("{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:instance:detachLun");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:instance:detachLun"

	payload := strings.NewReader("{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:instance:detachLun HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 38

{
  "lun": "",
  "skipReboot": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:instance:detachLun")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:instance:detachLun"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:instance:detachLun")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:instance:detachLun")
  .header("content-type", "application/json")
  .body("{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}")
  .asString();
const data = JSON.stringify({
  lun: '',
  skipReboot: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:instance:detachLun');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:instance:detachLun',
  headers: {'content-type': 'application/json'},
  data: {lun: '', skipReboot: false}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:instance:detachLun';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"lun":"","skipReboot":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:instance:detachLun',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "lun": "",\n  "skipReboot": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:instance:detachLun")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:instance:detachLun',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({lun: '', skipReboot: false}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:instance:detachLun',
  headers: {'content-type': 'application/json'},
  body: {lun: '', skipReboot: false},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:instance:detachLun');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  lun: '',
  skipReboot: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:instance:detachLun',
  headers: {'content-type': 'application/json'},
  data: {lun: '', skipReboot: false}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:instance:detachLun';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"lun":"","skipReboot":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"lun": @"",
                              @"skipReboot": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:instance:detachLun"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:instance:detachLun" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:instance:detachLun",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'lun' => '',
    'skipReboot' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:instance:detachLun', [
  'body' => '{
  "lun": "",
  "skipReboot": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:instance:detachLun');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'lun' => '',
  'skipReboot' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'lun' => '',
  'skipReboot' => null
]));
$request->setRequestUrl('{{baseUrl}}/v2/:instance:detachLun');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:instance:detachLun' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "lun": "",
  "skipReboot": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:instance:detachLun' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "lun": "",
  "skipReboot": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:instance:detachLun", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:instance:detachLun"

payload = {
    "lun": "",
    "skipReboot": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:instance:detachLun"

payload <- "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:instance:detachLun")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:instance:detachLun') do |req|
  req.body = "{\n  \"lun\": \"\",\n  \"skipReboot\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:instance:detachLun";

    let payload = json!({
        "lun": "",
        "skipReboot": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:instance:detachLun \
  --header 'content-type: application/json' \
  --data '{
  "lun": "",
  "skipReboot": false
}'
echo '{
  "lun": "",
  "skipReboot": false
}' |  \
  http POST {{baseUrl}}/v2/:instance:detachLun \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "lun": "",\n  "skipReboot": false\n}' \
  --output-document \
  - {{baseUrl}}/v2/:instance:detachLun
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "lun": "",
  "skipReboot": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:instance:detachLun")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.instances.disableInteractiveSerialConsole
{{baseUrl}}/v2/:name:disableInteractiveSerialConsole
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:name:disableInteractiveSerialConsole"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name:disableInteractiveSerialConsole");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:name:disableInteractiveSerialConsole HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name:disableInteractiveSerialConsole"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name:disableInteractiveSerialConsole")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:name:disableInteractiveSerialConsole")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name:disableInteractiveSerialConsole")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name:disableInteractiveSerialConsole',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name:disableInteractiveSerialConsole"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name:disableInteractiveSerialConsole');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v2/:name:disableInteractiveSerialConsole');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name:disableInteractiveSerialConsole' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:name:disableInteractiveSerialConsole", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name:disableInteractiveSerialConsole")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:name:disableInteractiveSerialConsole') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:name:disableInteractiveSerialConsole \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v2/:name:disableInteractiveSerialConsole \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v2/:name:disableInteractiveSerialConsole
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name:disableInteractiveSerialConsole")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.instances.enableInteractiveSerialConsole
{{baseUrl}}/v2/:name:enableInteractiveSerialConsole
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:name:enableInteractiveSerialConsole"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name:enableInteractiveSerialConsole");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:name:enableInteractiveSerialConsole HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name:enableInteractiveSerialConsole"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name:enableInteractiveSerialConsole")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:name:enableInteractiveSerialConsole")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name:enableInteractiveSerialConsole")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name:enableInteractiveSerialConsole',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name:enableInteractiveSerialConsole"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name:enableInteractiveSerialConsole');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v2/:name:enableInteractiveSerialConsole');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name:enableInteractiveSerialConsole' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:name:enableInteractiveSerialConsole", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name:enableInteractiveSerialConsole")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:name:enableInteractiveSerialConsole') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:name:enableInteractiveSerialConsole \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v2/:name:enableInteractiveSerialConsole \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v2/:name:enableInteractiveSerialConsole
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name:enableInteractiveSerialConsole")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.instances.list
{{baseUrl}}/v2/:parent/instances
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/instances");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:parent/instances")
require "http/client"

url = "{{baseUrl}}/v2/:parent/instances"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/instances"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/instances");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/instances"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:parent/instances HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:parent/instances")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/instances"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/instances")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:parent/instances")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:parent/instances');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/instances'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/instances';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/instances',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/instances")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/instances',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/instances'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:parent/instances');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/instances'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/instances';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/instances"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/instances" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/instances",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:parent/instances');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/instances');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:parent/instances');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/instances' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/instances' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:parent/instances")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/instances"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/instances"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/instances")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:parent/instances') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/instances";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:parent/instances
http GET {{baseUrl}}/v2/:parent/instances
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:parent/instances
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/instances")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.instances.reset
{{baseUrl}}/v2/:name:reset
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name:reset");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:name:reset" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v2/:name:reset"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:name:reset"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name:reset");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name:reset"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:name:reset HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:name:reset")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name:reset"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name:reset")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:name:reset")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:name:reset');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:reset',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name:reset';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name:reset',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name:reset")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name:reset',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:reset',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:name:reset');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:reset',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name:reset';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name:reset"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name:reset" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name:reset",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:name:reset', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name:reset');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v2/:name:reset');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name:reset' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name:reset' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:name:reset", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name:reset"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name:reset"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name:reset")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:name:reset') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name:reset";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:name:reset \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v2/:name:reset \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v2/:name:reset
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name:reset")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.instances.start
{{baseUrl}}/v2/:name:start
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name:start");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:name:start" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v2/:name:start"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:name:start"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name:start");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name:start"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:name:start HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:name:start")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name:start"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name:start")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:name:start")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:name:start');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:start',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name:start';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name:start',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name:start")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name:start',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:start',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:name:start');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:start',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name:start';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name:start"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name:start" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name:start",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:name:start', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name:start');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v2/:name:start');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name:start' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name:start' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:name:start", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name:start"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name:start"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name:start")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:name:start') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name:start";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:name:start \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v2/:name:start \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v2/:name:start
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name:start")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.instances.stop
{{baseUrl}}/v2/:name:stop
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name:stop");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:name:stop" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v2/:name:stop"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:name:stop"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name:stop");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name:stop"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:name:stop HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:name:stop")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name:stop"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name:stop")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:name:stop")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:name:stop');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:stop',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name:stop';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name:stop',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name:stop")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name:stop',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:stop',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:name:stop');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:stop',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name:stop';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name:stop"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name:stop" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name:stop",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:name:stop', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name:stop');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v2/:name:stop');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name:stop' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name:stop' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:name:stop", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name:stop"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name:stop"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name:stop")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:name:stop') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name:stop";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:name:stop \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v2/:name:stop \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v2/:name:stop
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name:stop")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.list
{{baseUrl}}/v2/:name/locations
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name/locations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:name/locations")
require "http/client"

url = "{{baseUrl}}/v2/:name/locations"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:name/locations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name/locations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name/locations"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:name/locations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:name/locations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name/locations"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name/locations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:name/locations")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:name/locations');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:name/locations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name/locations';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name/locations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name/locations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name/locations',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v2/:name/locations'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:name/locations');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v2/:name/locations'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name/locations';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name/locations"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name/locations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name/locations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:name/locations');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name/locations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:name/locations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name/locations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name/locations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:name/locations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name/locations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name/locations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name/locations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:name/locations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name/locations";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:name/locations
http GET {{baseUrl}}/v2/:name/locations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:name/locations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name/locations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.networks.list
{{baseUrl}}/v2/:parent/networks
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/networks");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:parent/networks")
require "http/client"

url = "{{baseUrl}}/v2/:parent/networks"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/networks"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/networks");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/networks"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:parent/networks HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:parent/networks")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/networks"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/networks")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:parent/networks")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:parent/networks');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/networks'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/networks';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/networks',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/networks")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/networks',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/networks'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:parent/networks');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/networks'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/networks';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/networks"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/networks" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/networks",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:parent/networks');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/networks');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:parent/networks');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/networks' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/networks' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:parent/networks")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/networks"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/networks"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/networks")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:parent/networks') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/networks";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:parent/networks
http GET {{baseUrl}}/v2/:parent/networks
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:parent/networks
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/networks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.networks.listNetworkUsage
{{baseUrl}}/v2/:location/networks:listNetworkUsage
QUERY PARAMS

location
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:location/networks:listNetworkUsage");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:location/networks:listNetworkUsage")
require "http/client"

url = "{{baseUrl}}/v2/:location/networks:listNetworkUsage"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:location/networks:listNetworkUsage"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:location/networks:listNetworkUsage");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:location/networks:listNetworkUsage"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:location/networks:listNetworkUsage HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:location/networks:listNetworkUsage")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:location/networks:listNetworkUsage"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:location/networks:listNetworkUsage")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:location/networks:listNetworkUsage")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:location/networks:listNetworkUsage');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/:location/networks:listNetworkUsage'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:location/networks:listNetworkUsage';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:location/networks:listNetworkUsage',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:location/networks:listNetworkUsage")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:location/networks:listNetworkUsage',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/:location/networks:listNetworkUsage'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:location/networks:listNetworkUsage');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/:location/networks:listNetworkUsage'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:location/networks:listNetworkUsage';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:location/networks:listNetworkUsage"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:location/networks:listNetworkUsage" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:location/networks:listNetworkUsage",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:location/networks:listNetworkUsage');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:location/networks:listNetworkUsage');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:location/networks:listNetworkUsage');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:location/networks:listNetworkUsage' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:location/networks:listNetworkUsage' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:location/networks:listNetworkUsage")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:location/networks:listNetworkUsage"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:location/networks:listNetworkUsage"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:location/networks:listNetworkUsage")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:location/networks:listNetworkUsage') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:location/networks:listNetworkUsage";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:location/networks:listNetworkUsage
http GET {{baseUrl}}/v2/:location/networks:listNetworkUsage
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:location/networks:listNetworkUsage
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:location/networks:listNetworkUsage")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.nfsShares.create
{{baseUrl}}/v2/:parent/nfsShares
QUERY PARAMS

parent
BODY json

{
  "allowedClients": [
    {
      "allowDev": false,
      "allowSuid": false,
      "allowedClientsCidr": "",
      "mountPermissions": "",
      "network": "",
      "nfsPath": "",
      "noRootSquash": false,
      "shareIp": ""
    }
  ],
  "id": "",
  "labels": {},
  "name": "",
  "nfsShareId": "",
  "requestedSizeGib": "",
  "state": "",
  "storageType": "",
  "volume": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/nfsShares");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:parent/nfsShares" {:content-type :json
                                                                 :form-params {:allowedClients [{:allowDev false
                                                                                                 :allowSuid false
                                                                                                 :allowedClientsCidr ""
                                                                                                 :mountPermissions ""
                                                                                                 :network ""
                                                                                                 :nfsPath ""
                                                                                                 :noRootSquash false
                                                                                                 :shareIp ""}]
                                                                               :id ""
                                                                               :labels {}
                                                                               :name ""
                                                                               :nfsShareId ""
                                                                               :requestedSizeGib ""
                                                                               :state ""
                                                                               :storageType ""
                                                                               :volume ""}})
require "http/client"

url = "{{baseUrl}}/v2/:parent/nfsShares"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/nfsShares"),
    Content = new StringContent("{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/nfsShares");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/nfsShares"

	payload := strings.NewReader("{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:parent/nfsShares HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 385

{
  "allowedClients": [
    {
      "allowDev": false,
      "allowSuid": false,
      "allowedClientsCidr": "",
      "mountPermissions": "",
      "network": "",
      "nfsPath": "",
      "noRootSquash": false,
      "shareIp": ""
    }
  ],
  "id": "",
  "labels": {},
  "name": "",
  "nfsShareId": "",
  "requestedSizeGib": "",
  "state": "",
  "storageType": "",
  "volume": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:parent/nfsShares")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/nfsShares"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/nfsShares")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:parent/nfsShares")
  .header("content-type", "application/json")
  .body("{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  allowedClients: [
    {
      allowDev: false,
      allowSuid: false,
      allowedClientsCidr: '',
      mountPermissions: '',
      network: '',
      nfsPath: '',
      noRootSquash: false,
      shareIp: ''
    }
  ],
  id: '',
  labels: {},
  name: '',
  nfsShareId: '',
  requestedSizeGib: '',
  state: '',
  storageType: '',
  volume: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:parent/nfsShares');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/nfsShares',
  headers: {'content-type': 'application/json'},
  data: {
    allowedClients: [
      {
        allowDev: false,
        allowSuid: false,
        allowedClientsCidr: '',
        mountPermissions: '',
        network: '',
        nfsPath: '',
        noRootSquash: false,
        shareIp: ''
      }
    ],
    id: '',
    labels: {},
    name: '',
    nfsShareId: '',
    requestedSizeGib: '',
    state: '',
    storageType: '',
    volume: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/nfsShares';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"allowedClients":[{"allowDev":false,"allowSuid":false,"allowedClientsCidr":"","mountPermissions":"","network":"","nfsPath":"","noRootSquash":false,"shareIp":""}],"id":"","labels":{},"name":"","nfsShareId":"","requestedSizeGib":"","state":"","storageType":"","volume":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/nfsShares',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "allowedClients": [\n    {\n      "allowDev": false,\n      "allowSuid": false,\n      "allowedClientsCidr": "",\n      "mountPermissions": "",\n      "network": "",\n      "nfsPath": "",\n      "noRootSquash": false,\n      "shareIp": ""\n    }\n  ],\n  "id": "",\n  "labels": {},\n  "name": "",\n  "nfsShareId": "",\n  "requestedSizeGib": "",\n  "state": "",\n  "storageType": "",\n  "volume": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/nfsShares")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/nfsShares',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  allowedClients: [
    {
      allowDev: false,
      allowSuid: false,
      allowedClientsCidr: '',
      mountPermissions: '',
      network: '',
      nfsPath: '',
      noRootSquash: false,
      shareIp: ''
    }
  ],
  id: '',
  labels: {},
  name: '',
  nfsShareId: '',
  requestedSizeGib: '',
  state: '',
  storageType: '',
  volume: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/nfsShares',
  headers: {'content-type': 'application/json'},
  body: {
    allowedClients: [
      {
        allowDev: false,
        allowSuid: false,
        allowedClientsCidr: '',
        mountPermissions: '',
        network: '',
        nfsPath: '',
        noRootSquash: false,
        shareIp: ''
      }
    ],
    id: '',
    labels: {},
    name: '',
    nfsShareId: '',
    requestedSizeGib: '',
    state: '',
    storageType: '',
    volume: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:parent/nfsShares');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  allowedClients: [
    {
      allowDev: false,
      allowSuid: false,
      allowedClientsCidr: '',
      mountPermissions: '',
      network: '',
      nfsPath: '',
      noRootSquash: false,
      shareIp: ''
    }
  ],
  id: '',
  labels: {},
  name: '',
  nfsShareId: '',
  requestedSizeGib: '',
  state: '',
  storageType: '',
  volume: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/nfsShares',
  headers: {'content-type': 'application/json'},
  data: {
    allowedClients: [
      {
        allowDev: false,
        allowSuid: false,
        allowedClientsCidr: '',
        mountPermissions: '',
        network: '',
        nfsPath: '',
        noRootSquash: false,
        shareIp: ''
      }
    ],
    id: '',
    labels: {},
    name: '',
    nfsShareId: '',
    requestedSizeGib: '',
    state: '',
    storageType: '',
    volume: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/nfsShares';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"allowedClients":[{"allowDev":false,"allowSuid":false,"allowedClientsCidr":"","mountPermissions":"","network":"","nfsPath":"","noRootSquash":false,"shareIp":""}],"id":"","labels":{},"name":"","nfsShareId":"","requestedSizeGib":"","state":"","storageType":"","volume":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"allowedClients": @[ @{ @"allowDev": @NO, @"allowSuid": @NO, @"allowedClientsCidr": @"", @"mountPermissions": @"", @"network": @"", @"nfsPath": @"", @"noRootSquash": @NO, @"shareIp": @"" } ],
                              @"id": @"",
                              @"labels": @{  },
                              @"name": @"",
                              @"nfsShareId": @"",
                              @"requestedSizeGib": @"",
                              @"state": @"",
                              @"storageType": @"",
                              @"volume": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/nfsShares"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/nfsShares" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/nfsShares",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'allowedClients' => [
        [
                'allowDev' => null,
                'allowSuid' => null,
                'allowedClientsCidr' => '',
                'mountPermissions' => '',
                'network' => '',
                'nfsPath' => '',
                'noRootSquash' => null,
                'shareIp' => ''
        ]
    ],
    'id' => '',
    'labels' => [
        
    ],
    'name' => '',
    'nfsShareId' => '',
    'requestedSizeGib' => '',
    'state' => '',
    'storageType' => '',
    'volume' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:parent/nfsShares', [
  'body' => '{
  "allowedClients": [
    {
      "allowDev": false,
      "allowSuid": false,
      "allowedClientsCidr": "",
      "mountPermissions": "",
      "network": "",
      "nfsPath": "",
      "noRootSquash": false,
      "shareIp": ""
    }
  ],
  "id": "",
  "labels": {},
  "name": "",
  "nfsShareId": "",
  "requestedSizeGib": "",
  "state": "",
  "storageType": "",
  "volume": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/nfsShares');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'allowedClients' => [
    [
        'allowDev' => null,
        'allowSuid' => null,
        'allowedClientsCidr' => '',
        'mountPermissions' => '',
        'network' => '',
        'nfsPath' => '',
        'noRootSquash' => null,
        'shareIp' => ''
    ]
  ],
  'id' => '',
  'labels' => [
    
  ],
  'name' => '',
  'nfsShareId' => '',
  'requestedSizeGib' => '',
  'state' => '',
  'storageType' => '',
  'volume' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'allowedClients' => [
    [
        'allowDev' => null,
        'allowSuid' => null,
        'allowedClientsCidr' => '',
        'mountPermissions' => '',
        'network' => '',
        'nfsPath' => '',
        'noRootSquash' => null,
        'shareIp' => ''
    ]
  ],
  'id' => '',
  'labels' => [
    
  ],
  'name' => '',
  'nfsShareId' => '',
  'requestedSizeGib' => '',
  'state' => '',
  'storageType' => '',
  'volume' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/:parent/nfsShares');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/nfsShares' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "allowedClients": [
    {
      "allowDev": false,
      "allowSuid": false,
      "allowedClientsCidr": "",
      "mountPermissions": "",
      "network": "",
      "nfsPath": "",
      "noRootSquash": false,
      "shareIp": ""
    }
  ],
  "id": "",
  "labels": {},
  "name": "",
  "nfsShareId": "",
  "requestedSizeGib": "",
  "state": "",
  "storageType": "",
  "volume": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/nfsShares' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "allowedClients": [
    {
      "allowDev": false,
      "allowSuid": false,
      "allowedClientsCidr": "",
      "mountPermissions": "",
      "network": "",
      "nfsPath": "",
      "noRootSquash": false,
      "shareIp": ""
    }
  ],
  "id": "",
  "labels": {},
  "name": "",
  "nfsShareId": "",
  "requestedSizeGib": "",
  "state": "",
  "storageType": "",
  "volume": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:parent/nfsShares", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/nfsShares"

payload = {
    "allowedClients": [
        {
            "allowDev": False,
            "allowSuid": False,
            "allowedClientsCidr": "",
            "mountPermissions": "",
            "network": "",
            "nfsPath": "",
            "noRootSquash": False,
            "shareIp": ""
        }
    ],
    "id": "",
    "labels": {},
    "name": "",
    "nfsShareId": "",
    "requestedSizeGib": "",
    "state": "",
    "storageType": "",
    "volume": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/nfsShares"

payload <- "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/nfsShares")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:parent/nfsShares') do |req|
  req.body = "{\n  \"allowedClients\": [\n    {\n      \"allowDev\": false,\n      \"allowSuid\": false,\n      \"allowedClientsCidr\": \"\",\n      \"mountPermissions\": \"\",\n      \"network\": \"\",\n      \"nfsPath\": \"\",\n      \"noRootSquash\": false,\n      \"shareIp\": \"\"\n    }\n  ],\n  \"id\": \"\",\n  \"labels\": {},\n  \"name\": \"\",\n  \"nfsShareId\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"state\": \"\",\n  \"storageType\": \"\",\n  \"volume\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/nfsShares";

    let payload = json!({
        "allowedClients": (
            json!({
                "allowDev": false,
                "allowSuid": false,
                "allowedClientsCidr": "",
                "mountPermissions": "",
                "network": "",
                "nfsPath": "",
                "noRootSquash": false,
                "shareIp": ""
            })
        ),
        "id": "",
        "labels": json!({}),
        "name": "",
        "nfsShareId": "",
        "requestedSizeGib": "",
        "state": "",
        "storageType": "",
        "volume": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:parent/nfsShares \
  --header 'content-type: application/json' \
  --data '{
  "allowedClients": [
    {
      "allowDev": false,
      "allowSuid": false,
      "allowedClientsCidr": "",
      "mountPermissions": "",
      "network": "",
      "nfsPath": "",
      "noRootSquash": false,
      "shareIp": ""
    }
  ],
  "id": "",
  "labels": {},
  "name": "",
  "nfsShareId": "",
  "requestedSizeGib": "",
  "state": "",
  "storageType": "",
  "volume": ""
}'
echo '{
  "allowedClients": [
    {
      "allowDev": false,
      "allowSuid": false,
      "allowedClientsCidr": "",
      "mountPermissions": "",
      "network": "",
      "nfsPath": "",
      "noRootSquash": false,
      "shareIp": ""
    }
  ],
  "id": "",
  "labels": {},
  "name": "",
  "nfsShareId": "",
  "requestedSizeGib": "",
  "state": "",
  "storageType": "",
  "volume": ""
}' |  \
  http POST {{baseUrl}}/v2/:parent/nfsShares \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "allowedClients": [\n    {\n      "allowDev": false,\n      "allowSuid": false,\n      "allowedClientsCidr": "",\n      "mountPermissions": "",\n      "network": "",\n      "nfsPath": "",\n      "noRootSquash": false,\n      "shareIp": ""\n    }\n  ],\n  "id": "",\n  "labels": {},\n  "name": "",\n  "nfsShareId": "",\n  "requestedSizeGib": "",\n  "state": "",\n  "storageType": "",\n  "volume": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/:parent/nfsShares
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "allowedClients": [
    [
      "allowDev": false,
      "allowSuid": false,
      "allowedClientsCidr": "",
      "mountPermissions": "",
      "network": "",
      "nfsPath": "",
      "noRootSquash": false,
      "shareIp": ""
    ]
  ],
  "id": "",
  "labels": [],
  "name": "",
  "nfsShareId": "",
  "requestedSizeGib": "",
  "state": "",
  "storageType": "",
  "volume": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/nfsShares")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.nfsShares.list
{{baseUrl}}/v2/:parent/nfsShares
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/nfsShares");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:parent/nfsShares")
require "http/client"

url = "{{baseUrl}}/v2/:parent/nfsShares"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/nfsShares"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/nfsShares");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/nfsShares"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:parent/nfsShares HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:parent/nfsShares")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/nfsShares"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/nfsShares")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:parent/nfsShares")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:parent/nfsShares');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/nfsShares'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/nfsShares';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/nfsShares',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/nfsShares")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/nfsShares',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/nfsShares'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:parent/nfsShares');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/nfsShares'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/nfsShares';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/nfsShares"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/nfsShares" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/nfsShares",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:parent/nfsShares');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/nfsShares');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:parent/nfsShares');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/nfsShares' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/nfsShares' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:parent/nfsShares")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/nfsShares"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/nfsShares"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/nfsShares")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:parent/nfsShares') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/nfsShares";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:parent/nfsShares
http GET {{baseUrl}}/v2/:parent/nfsShares
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:parent/nfsShares
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/nfsShares")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.provisioningConfigs.create
{{baseUrl}}/v2/:parent/provisioningConfigs
QUERY PARAMS

parent
BODY json

{
  "cloudConsoleUri": "",
  "customId": "",
  "email": "",
  "handoverServiceAccount": "",
  "instances": [
    {
      "accountNetworksEnabled": false,
      "clientNetwork": {
        "address": "",
        "existingNetworkId": "",
        "networkId": ""
      },
      "hyperthreading": false,
      "id": "",
      "instanceType": "",
      "logicalInterfaces": [
        {
          "interfaceIndex": 0,
          "logicalNetworkInterfaces": [
            {
              "defaultGateway": false,
              "id": "",
              "ipAddress": "",
              "network": "",
              "networkType": ""
            }
          ],
          "name": ""
        }
      ],
      "name": "",
      "networkConfig": "",
      "networkTemplate": "",
      "osImage": "",
      "privateNetwork": {},
      "userNote": ""
    }
  ],
  "location": "",
  "name": "",
  "networks": [
    {
      "bandwidth": "",
      "cidr": "",
      "gcpService": "",
      "id": "",
      "jumboFramesEnabled": false,
      "name": "",
      "serviceCidr": "",
      "type": "",
      "userNote": "",
      "vlanAttachments": [
        {
          "id": "",
          "pairingKey": ""
        }
      ],
      "vlanSameProject": false
    }
  ],
  "state": "",
  "statusMessage": "",
  "ticketId": "",
  "updateTime": "",
  "volumes": [
    {
      "gcpService": "",
      "id": "",
      "lunRanges": [
        {
          "quantity": 0,
          "sizeGb": 0
        }
      ],
      "machineIds": [],
      "name": "",
      "nfsExports": [
        {
          "allowDev": false,
          "allowSuid": false,
          "cidr": "",
          "machineId": "",
          "networkId": "",
          "noRootSquash": false,
          "permissions": ""
        }
      ],
      "performanceTier": "",
      "protocol": "",
      "sizeGb": 0,
      "snapshotsEnabled": false,
      "storageAggregatePool": "",
      "type": "",
      "userNote": ""
    }
  ],
  "vpcScEnabled": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/provisioningConfigs");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:parent/provisioningConfigs" {:content-type :json
                                                                           :form-params {:cloudConsoleUri ""
                                                                                         :customId ""
                                                                                         :email ""
                                                                                         :handoverServiceAccount ""
                                                                                         :instances [{:accountNetworksEnabled false
                                                                                                      :clientNetwork {:address ""
                                                                                                                      :existingNetworkId ""
                                                                                                                      :networkId ""}
                                                                                                      :hyperthreading false
                                                                                                      :id ""
                                                                                                      :instanceType ""
                                                                                                      :logicalInterfaces [{:interfaceIndex 0
                                                                                                                           :logicalNetworkInterfaces [{:defaultGateway false
                                                                                                                                                       :id ""
                                                                                                                                                       :ipAddress ""
                                                                                                                                                       :network ""
                                                                                                                                                       :networkType ""}]
                                                                                                                           :name ""}]
                                                                                                      :name ""
                                                                                                      :networkConfig ""
                                                                                                      :networkTemplate ""
                                                                                                      :osImage ""
                                                                                                      :privateNetwork {}
                                                                                                      :userNote ""}]
                                                                                         :location ""
                                                                                         :name ""
                                                                                         :networks [{:bandwidth ""
                                                                                                     :cidr ""
                                                                                                     :gcpService ""
                                                                                                     :id ""
                                                                                                     :jumboFramesEnabled false
                                                                                                     :name ""
                                                                                                     :serviceCidr ""
                                                                                                     :type ""
                                                                                                     :userNote ""
                                                                                                     :vlanAttachments [{:id ""
                                                                                                                        :pairingKey ""}]
                                                                                                     :vlanSameProject false}]
                                                                                         :state ""
                                                                                         :statusMessage ""
                                                                                         :ticketId ""
                                                                                         :updateTime ""
                                                                                         :volumes [{:gcpService ""
                                                                                                    :id ""
                                                                                                    :lunRanges [{:quantity 0
                                                                                                                 :sizeGb 0}]
                                                                                                    :machineIds []
                                                                                                    :name ""
                                                                                                    :nfsExports [{:allowDev false
                                                                                                                  :allowSuid false
                                                                                                                  :cidr ""
                                                                                                                  :machineId ""
                                                                                                                  :networkId ""
                                                                                                                  :noRootSquash false
                                                                                                                  :permissions ""}]
                                                                                                    :performanceTier ""
                                                                                                    :protocol ""
                                                                                                    :sizeGb 0
                                                                                                    :snapshotsEnabled false
                                                                                                    :storageAggregatePool ""
                                                                                                    :type ""
                                                                                                    :userNote ""}]
                                                                                         :vpcScEnabled false}})
require "http/client"

url = "{{baseUrl}}/v2/:parent/provisioningConfigs"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/provisioningConfigs"),
    Content = new StringContent("{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/provisioningConfigs");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/provisioningConfigs"

	payload := strings.NewReader("{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:parent/provisioningConfigs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1975

{
  "cloudConsoleUri": "",
  "customId": "",
  "email": "",
  "handoverServiceAccount": "",
  "instances": [
    {
      "accountNetworksEnabled": false,
      "clientNetwork": {
        "address": "",
        "existingNetworkId": "",
        "networkId": ""
      },
      "hyperthreading": false,
      "id": "",
      "instanceType": "",
      "logicalInterfaces": [
        {
          "interfaceIndex": 0,
          "logicalNetworkInterfaces": [
            {
              "defaultGateway": false,
              "id": "",
              "ipAddress": "",
              "network": "",
              "networkType": ""
            }
          ],
          "name": ""
        }
      ],
      "name": "",
      "networkConfig": "",
      "networkTemplate": "",
      "osImage": "",
      "privateNetwork": {},
      "userNote": ""
    }
  ],
  "location": "",
  "name": "",
  "networks": [
    {
      "bandwidth": "",
      "cidr": "",
      "gcpService": "",
      "id": "",
      "jumboFramesEnabled": false,
      "name": "",
      "serviceCidr": "",
      "type": "",
      "userNote": "",
      "vlanAttachments": [
        {
          "id": "",
          "pairingKey": ""
        }
      ],
      "vlanSameProject": false
    }
  ],
  "state": "",
  "statusMessage": "",
  "ticketId": "",
  "updateTime": "",
  "volumes": [
    {
      "gcpService": "",
      "id": "",
      "lunRanges": [
        {
          "quantity": 0,
          "sizeGb": 0
        }
      ],
      "machineIds": [],
      "name": "",
      "nfsExports": [
        {
          "allowDev": false,
          "allowSuid": false,
          "cidr": "",
          "machineId": "",
          "networkId": "",
          "noRootSquash": false,
          "permissions": ""
        }
      ],
      "performanceTier": "",
      "protocol": "",
      "sizeGb": 0,
      "snapshotsEnabled": false,
      "storageAggregatePool": "",
      "type": "",
      "userNote": ""
    }
  ],
  "vpcScEnabled": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:parent/provisioningConfigs")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/provisioningConfigs"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/provisioningConfigs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:parent/provisioningConfigs")
  .header("content-type", "application/json")
  .body("{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}")
  .asString();
const data = JSON.stringify({
  cloudConsoleUri: '',
  customId: '',
  email: '',
  handoverServiceAccount: '',
  instances: [
    {
      accountNetworksEnabled: false,
      clientNetwork: {
        address: '',
        existingNetworkId: '',
        networkId: ''
      },
      hyperthreading: false,
      id: '',
      instanceType: '',
      logicalInterfaces: [
        {
          interfaceIndex: 0,
          logicalNetworkInterfaces: [
            {
              defaultGateway: false,
              id: '',
              ipAddress: '',
              network: '',
              networkType: ''
            }
          ],
          name: ''
        }
      ],
      name: '',
      networkConfig: '',
      networkTemplate: '',
      osImage: '',
      privateNetwork: {},
      userNote: ''
    }
  ],
  location: '',
  name: '',
  networks: [
    {
      bandwidth: '',
      cidr: '',
      gcpService: '',
      id: '',
      jumboFramesEnabled: false,
      name: '',
      serviceCidr: '',
      type: '',
      userNote: '',
      vlanAttachments: [
        {
          id: '',
          pairingKey: ''
        }
      ],
      vlanSameProject: false
    }
  ],
  state: '',
  statusMessage: '',
  ticketId: '',
  updateTime: '',
  volumes: [
    {
      gcpService: '',
      id: '',
      lunRanges: [
        {
          quantity: 0,
          sizeGb: 0
        }
      ],
      machineIds: [],
      name: '',
      nfsExports: [
        {
          allowDev: false,
          allowSuid: false,
          cidr: '',
          machineId: '',
          networkId: '',
          noRootSquash: false,
          permissions: ''
        }
      ],
      performanceTier: '',
      protocol: '',
      sizeGb: 0,
      snapshotsEnabled: false,
      storageAggregatePool: '',
      type: '',
      userNote: ''
    }
  ],
  vpcScEnabled: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:parent/provisioningConfigs');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/provisioningConfigs',
  headers: {'content-type': 'application/json'},
  data: {
    cloudConsoleUri: '',
    customId: '',
    email: '',
    handoverServiceAccount: '',
    instances: [
      {
        accountNetworksEnabled: false,
        clientNetwork: {address: '', existingNetworkId: '', networkId: ''},
        hyperthreading: false,
        id: '',
        instanceType: '',
        logicalInterfaces: [
          {
            interfaceIndex: 0,
            logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
            name: ''
          }
        ],
        name: '',
        networkConfig: '',
        networkTemplate: '',
        osImage: '',
        privateNetwork: {},
        userNote: ''
      }
    ],
    location: '',
    name: '',
    networks: [
      {
        bandwidth: '',
        cidr: '',
        gcpService: '',
        id: '',
        jumboFramesEnabled: false,
        name: '',
        serviceCidr: '',
        type: '',
        userNote: '',
        vlanAttachments: [{id: '', pairingKey: ''}],
        vlanSameProject: false
      }
    ],
    state: '',
    statusMessage: '',
    ticketId: '',
    updateTime: '',
    volumes: [
      {
        gcpService: '',
        id: '',
        lunRanges: [{quantity: 0, sizeGb: 0}],
        machineIds: [],
        name: '',
        nfsExports: [
          {
            allowDev: false,
            allowSuid: false,
            cidr: '',
            machineId: '',
            networkId: '',
            noRootSquash: false,
            permissions: ''
          }
        ],
        performanceTier: '',
        protocol: '',
        sizeGb: 0,
        snapshotsEnabled: false,
        storageAggregatePool: '',
        type: '',
        userNote: ''
      }
    ],
    vpcScEnabled: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/provisioningConfigs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"cloudConsoleUri":"","customId":"","email":"","handoverServiceAccount":"","instances":[{"accountNetworksEnabled":false,"clientNetwork":{"address":"","existingNetworkId":"","networkId":""},"hyperthreading":false,"id":"","instanceType":"","logicalInterfaces":[{"interfaceIndex":0,"logicalNetworkInterfaces":[{"defaultGateway":false,"id":"","ipAddress":"","network":"","networkType":""}],"name":""}],"name":"","networkConfig":"","networkTemplate":"","osImage":"","privateNetwork":{},"userNote":""}],"location":"","name":"","networks":[{"bandwidth":"","cidr":"","gcpService":"","id":"","jumboFramesEnabled":false,"name":"","serviceCidr":"","type":"","userNote":"","vlanAttachments":[{"id":"","pairingKey":""}],"vlanSameProject":false}],"state":"","statusMessage":"","ticketId":"","updateTime":"","volumes":[{"gcpService":"","id":"","lunRanges":[{"quantity":0,"sizeGb":0}],"machineIds":[],"name":"","nfsExports":[{"allowDev":false,"allowSuid":false,"cidr":"","machineId":"","networkId":"","noRootSquash":false,"permissions":""}],"performanceTier":"","protocol":"","sizeGb":0,"snapshotsEnabled":false,"storageAggregatePool":"","type":"","userNote":""}],"vpcScEnabled":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/provisioningConfigs',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "cloudConsoleUri": "",\n  "customId": "",\n  "email": "",\n  "handoverServiceAccount": "",\n  "instances": [\n    {\n      "accountNetworksEnabled": false,\n      "clientNetwork": {\n        "address": "",\n        "existingNetworkId": "",\n        "networkId": ""\n      },\n      "hyperthreading": false,\n      "id": "",\n      "instanceType": "",\n      "logicalInterfaces": [\n        {\n          "interfaceIndex": 0,\n          "logicalNetworkInterfaces": [\n            {\n              "defaultGateway": false,\n              "id": "",\n              "ipAddress": "",\n              "network": "",\n              "networkType": ""\n            }\n          ],\n          "name": ""\n        }\n      ],\n      "name": "",\n      "networkConfig": "",\n      "networkTemplate": "",\n      "osImage": "",\n      "privateNetwork": {},\n      "userNote": ""\n    }\n  ],\n  "location": "",\n  "name": "",\n  "networks": [\n    {\n      "bandwidth": "",\n      "cidr": "",\n      "gcpService": "",\n      "id": "",\n      "jumboFramesEnabled": false,\n      "name": "",\n      "serviceCidr": "",\n      "type": "",\n      "userNote": "",\n      "vlanAttachments": [\n        {\n          "id": "",\n          "pairingKey": ""\n        }\n      ],\n      "vlanSameProject": false\n    }\n  ],\n  "state": "",\n  "statusMessage": "",\n  "ticketId": "",\n  "updateTime": "",\n  "volumes": [\n    {\n      "gcpService": "",\n      "id": "",\n      "lunRanges": [\n        {\n          "quantity": 0,\n          "sizeGb": 0\n        }\n      ],\n      "machineIds": [],\n      "name": "",\n      "nfsExports": [\n        {\n          "allowDev": false,\n          "allowSuid": false,\n          "cidr": "",\n          "machineId": "",\n          "networkId": "",\n          "noRootSquash": false,\n          "permissions": ""\n        }\n      ],\n      "performanceTier": "",\n      "protocol": "",\n      "sizeGb": 0,\n      "snapshotsEnabled": false,\n      "storageAggregatePool": "",\n      "type": "",\n      "userNote": ""\n    }\n  ],\n  "vpcScEnabled": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/provisioningConfigs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/provisioningConfigs',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  cloudConsoleUri: '',
  customId: '',
  email: '',
  handoverServiceAccount: '',
  instances: [
    {
      accountNetworksEnabled: false,
      clientNetwork: {address: '', existingNetworkId: '', networkId: ''},
      hyperthreading: false,
      id: '',
      instanceType: '',
      logicalInterfaces: [
        {
          interfaceIndex: 0,
          logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
          name: ''
        }
      ],
      name: '',
      networkConfig: '',
      networkTemplate: '',
      osImage: '',
      privateNetwork: {},
      userNote: ''
    }
  ],
  location: '',
  name: '',
  networks: [
    {
      bandwidth: '',
      cidr: '',
      gcpService: '',
      id: '',
      jumboFramesEnabled: false,
      name: '',
      serviceCidr: '',
      type: '',
      userNote: '',
      vlanAttachments: [{id: '', pairingKey: ''}],
      vlanSameProject: false
    }
  ],
  state: '',
  statusMessage: '',
  ticketId: '',
  updateTime: '',
  volumes: [
    {
      gcpService: '',
      id: '',
      lunRanges: [{quantity: 0, sizeGb: 0}],
      machineIds: [],
      name: '',
      nfsExports: [
        {
          allowDev: false,
          allowSuid: false,
          cidr: '',
          machineId: '',
          networkId: '',
          noRootSquash: false,
          permissions: ''
        }
      ],
      performanceTier: '',
      protocol: '',
      sizeGb: 0,
      snapshotsEnabled: false,
      storageAggregatePool: '',
      type: '',
      userNote: ''
    }
  ],
  vpcScEnabled: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/provisioningConfigs',
  headers: {'content-type': 'application/json'},
  body: {
    cloudConsoleUri: '',
    customId: '',
    email: '',
    handoverServiceAccount: '',
    instances: [
      {
        accountNetworksEnabled: false,
        clientNetwork: {address: '', existingNetworkId: '', networkId: ''},
        hyperthreading: false,
        id: '',
        instanceType: '',
        logicalInterfaces: [
          {
            interfaceIndex: 0,
            logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
            name: ''
          }
        ],
        name: '',
        networkConfig: '',
        networkTemplate: '',
        osImage: '',
        privateNetwork: {},
        userNote: ''
      }
    ],
    location: '',
    name: '',
    networks: [
      {
        bandwidth: '',
        cidr: '',
        gcpService: '',
        id: '',
        jumboFramesEnabled: false,
        name: '',
        serviceCidr: '',
        type: '',
        userNote: '',
        vlanAttachments: [{id: '', pairingKey: ''}],
        vlanSameProject: false
      }
    ],
    state: '',
    statusMessage: '',
    ticketId: '',
    updateTime: '',
    volumes: [
      {
        gcpService: '',
        id: '',
        lunRanges: [{quantity: 0, sizeGb: 0}],
        machineIds: [],
        name: '',
        nfsExports: [
          {
            allowDev: false,
            allowSuid: false,
            cidr: '',
            machineId: '',
            networkId: '',
            noRootSquash: false,
            permissions: ''
          }
        ],
        performanceTier: '',
        protocol: '',
        sizeGb: 0,
        snapshotsEnabled: false,
        storageAggregatePool: '',
        type: '',
        userNote: ''
      }
    ],
    vpcScEnabled: false
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:parent/provisioningConfigs');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  cloudConsoleUri: '',
  customId: '',
  email: '',
  handoverServiceAccount: '',
  instances: [
    {
      accountNetworksEnabled: false,
      clientNetwork: {
        address: '',
        existingNetworkId: '',
        networkId: ''
      },
      hyperthreading: false,
      id: '',
      instanceType: '',
      logicalInterfaces: [
        {
          interfaceIndex: 0,
          logicalNetworkInterfaces: [
            {
              defaultGateway: false,
              id: '',
              ipAddress: '',
              network: '',
              networkType: ''
            }
          ],
          name: ''
        }
      ],
      name: '',
      networkConfig: '',
      networkTemplate: '',
      osImage: '',
      privateNetwork: {},
      userNote: ''
    }
  ],
  location: '',
  name: '',
  networks: [
    {
      bandwidth: '',
      cidr: '',
      gcpService: '',
      id: '',
      jumboFramesEnabled: false,
      name: '',
      serviceCidr: '',
      type: '',
      userNote: '',
      vlanAttachments: [
        {
          id: '',
          pairingKey: ''
        }
      ],
      vlanSameProject: false
    }
  ],
  state: '',
  statusMessage: '',
  ticketId: '',
  updateTime: '',
  volumes: [
    {
      gcpService: '',
      id: '',
      lunRanges: [
        {
          quantity: 0,
          sizeGb: 0
        }
      ],
      machineIds: [],
      name: '',
      nfsExports: [
        {
          allowDev: false,
          allowSuid: false,
          cidr: '',
          machineId: '',
          networkId: '',
          noRootSquash: false,
          permissions: ''
        }
      ],
      performanceTier: '',
      protocol: '',
      sizeGb: 0,
      snapshotsEnabled: false,
      storageAggregatePool: '',
      type: '',
      userNote: ''
    }
  ],
  vpcScEnabled: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/provisioningConfigs',
  headers: {'content-type': 'application/json'},
  data: {
    cloudConsoleUri: '',
    customId: '',
    email: '',
    handoverServiceAccount: '',
    instances: [
      {
        accountNetworksEnabled: false,
        clientNetwork: {address: '', existingNetworkId: '', networkId: ''},
        hyperthreading: false,
        id: '',
        instanceType: '',
        logicalInterfaces: [
          {
            interfaceIndex: 0,
            logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
            name: ''
          }
        ],
        name: '',
        networkConfig: '',
        networkTemplate: '',
        osImage: '',
        privateNetwork: {},
        userNote: ''
      }
    ],
    location: '',
    name: '',
    networks: [
      {
        bandwidth: '',
        cidr: '',
        gcpService: '',
        id: '',
        jumboFramesEnabled: false,
        name: '',
        serviceCidr: '',
        type: '',
        userNote: '',
        vlanAttachments: [{id: '', pairingKey: ''}],
        vlanSameProject: false
      }
    ],
    state: '',
    statusMessage: '',
    ticketId: '',
    updateTime: '',
    volumes: [
      {
        gcpService: '',
        id: '',
        lunRanges: [{quantity: 0, sizeGb: 0}],
        machineIds: [],
        name: '',
        nfsExports: [
          {
            allowDev: false,
            allowSuid: false,
            cidr: '',
            machineId: '',
            networkId: '',
            noRootSquash: false,
            permissions: ''
          }
        ],
        performanceTier: '',
        protocol: '',
        sizeGb: 0,
        snapshotsEnabled: false,
        storageAggregatePool: '',
        type: '',
        userNote: ''
      }
    ],
    vpcScEnabled: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/provisioningConfigs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"cloudConsoleUri":"","customId":"","email":"","handoverServiceAccount":"","instances":[{"accountNetworksEnabled":false,"clientNetwork":{"address":"","existingNetworkId":"","networkId":""},"hyperthreading":false,"id":"","instanceType":"","logicalInterfaces":[{"interfaceIndex":0,"logicalNetworkInterfaces":[{"defaultGateway":false,"id":"","ipAddress":"","network":"","networkType":""}],"name":""}],"name":"","networkConfig":"","networkTemplate":"","osImage":"","privateNetwork":{},"userNote":""}],"location":"","name":"","networks":[{"bandwidth":"","cidr":"","gcpService":"","id":"","jumboFramesEnabled":false,"name":"","serviceCidr":"","type":"","userNote":"","vlanAttachments":[{"id":"","pairingKey":""}],"vlanSameProject":false}],"state":"","statusMessage":"","ticketId":"","updateTime":"","volumes":[{"gcpService":"","id":"","lunRanges":[{"quantity":0,"sizeGb":0}],"machineIds":[],"name":"","nfsExports":[{"allowDev":false,"allowSuid":false,"cidr":"","machineId":"","networkId":"","noRootSquash":false,"permissions":""}],"performanceTier":"","protocol":"","sizeGb":0,"snapshotsEnabled":false,"storageAggregatePool":"","type":"","userNote":""}],"vpcScEnabled":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"cloudConsoleUri": @"",
                              @"customId": @"",
                              @"email": @"",
                              @"handoverServiceAccount": @"",
                              @"instances": @[ @{ @"accountNetworksEnabled": @NO, @"clientNetwork": @{ @"address": @"", @"existingNetworkId": @"", @"networkId": @"" }, @"hyperthreading": @NO, @"id": @"", @"instanceType": @"", @"logicalInterfaces": @[ @{ @"interfaceIndex": @0, @"logicalNetworkInterfaces": @[ @{ @"defaultGateway": @NO, @"id": @"", @"ipAddress": @"", @"network": @"", @"networkType": @"" } ], @"name": @"" } ], @"name": @"", @"networkConfig": @"", @"networkTemplate": @"", @"osImage": @"", @"privateNetwork": @{  }, @"userNote": @"" } ],
                              @"location": @"",
                              @"name": @"",
                              @"networks": @[ @{ @"bandwidth": @"", @"cidr": @"", @"gcpService": @"", @"id": @"", @"jumboFramesEnabled": @NO, @"name": @"", @"serviceCidr": @"", @"type": @"", @"userNote": @"", @"vlanAttachments": @[ @{ @"id": @"", @"pairingKey": @"" } ], @"vlanSameProject": @NO } ],
                              @"state": @"",
                              @"statusMessage": @"",
                              @"ticketId": @"",
                              @"updateTime": @"",
                              @"volumes": @[ @{ @"gcpService": @"", @"id": @"", @"lunRanges": @[ @{ @"quantity": @0, @"sizeGb": @0 } ], @"machineIds": @[  ], @"name": @"", @"nfsExports": @[ @{ @"allowDev": @NO, @"allowSuid": @NO, @"cidr": @"", @"machineId": @"", @"networkId": @"", @"noRootSquash": @NO, @"permissions": @"" } ], @"performanceTier": @"", @"protocol": @"", @"sizeGb": @0, @"snapshotsEnabled": @NO, @"storageAggregatePool": @"", @"type": @"", @"userNote": @"" } ],
                              @"vpcScEnabled": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/provisioningConfigs"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/provisioningConfigs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/provisioningConfigs",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'cloudConsoleUri' => '',
    'customId' => '',
    'email' => '',
    'handoverServiceAccount' => '',
    'instances' => [
        [
                'accountNetworksEnabled' => null,
                'clientNetwork' => [
                                'address' => '',
                                'existingNetworkId' => '',
                                'networkId' => ''
                ],
                'hyperthreading' => null,
                'id' => '',
                'instanceType' => '',
                'logicalInterfaces' => [
                                [
                                                                'interfaceIndex' => 0,
                                                                'logicalNetworkInterfaces' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'defaultGateway' => null,
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'ipAddress' => '',
                                                                                                                                                                                                                                                                'network' => '',
                                                                                                                                                                                                                                                                'networkType' => ''
                                                                                                                                ]
                                                                ],
                                                                'name' => ''
                                ]
                ],
                'name' => '',
                'networkConfig' => '',
                'networkTemplate' => '',
                'osImage' => '',
                'privateNetwork' => [
                                
                ],
                'userNote' => ''
        ]
    ],
    'location' => '',
    'name' => '',
    'networks' => [
        [
                'bandwidth' => '',
                'cidr' => '',
                'gcpService' => '',
                'id' => '',
                'jumboFramesEnabled' => null,
                'name' => '',
                'serviceCidr' => '',
                'type' => '',
                'userNote' => '',
                'vlanAttachments' => [
                                [
                                                                'id' => '',
                                                                'pairingKey' => ''
                                ]
                ],
                'vlanSameProject' => null
        ]
    ],
    'state' => '',
    'statusMessage' => '',
    'ticketId' => '',
    'updateTime' => '',
    'volumes' => [
        [
                'gcpService' => '',
                'id' => '',
                'lunRanges' => [
                                [
                                                                'quantity' => 0,
                                                                'sizeGb' => 0
                                ]
                ],
                'machineIds' => [
                                
                ],
                'name' => '',
                'nfsExports' => [
                                [
                                                                'allowDev' => null,
                                                                'allowSuid' => null,
                                                                'cidr' => '',
                                                                'machineId' => '',
                                                                'networkId' => '',
                                                                'noRootSquash' => null,
                                                                'permissions' => ''
                                ]
                ],
                'performanceTier' => '',
                'protocol' => '',
                'sizeGb' => 0,
                'snapshotsEnabled' => null,
                'storageAggregatePool' => '',
                'type' => '',
                'userNote' => ''
        ]
    ],
    'vpcScEnabled' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:parent/provisioningConfigs', [
  'body' => '{
  "cloudConsoleUri": "",
  "customId": "",
  "email": "",
  "handoverServiceAccount": "",
  "instances": [
    {
      "accountNetworksEnabled": false,
      "clientNetwork": {
        "address": "",
        "existingNetworkId": "",
        "networkId": ""
      },
      "hyperthreading": false,
      "id": "",
      "instanceType": "",
      "logicalInterfaces": [
        {
          "interfaceIndex": 0,
          "logicalNetworkInterfaces": [
            {
              "defaultGateway": false,
              "id": "",
              "ipAddress": "",
              "network": "",
              "networkType": ""
            }
          ],
          "name": ""
        }
      ],
      "name": "",
      "networkConfig": "",
      "networkTemplate": "",
      "osImage": "",
      "privateNetwork": {},
      "userNote": ""
    }
  ],
  "location": "",
  "name": "",
  "networks": [
    {
      "bandwidth": "",
      "cidr": "",
      "gcpService": "",
      "id": "",
      "jumboFramesEnabled": false,
      "name": "",
      "serviceCidr": "",
      "type": "",
      "userNote": "",
      "vlanAttachments": [
        {
          "id": "",
          "pairingKey": ""
        }
      ],
      "vlanSameProject": false
    }
  ],
  "state": "",
  "statusMessage": "",
  "ticketId": "",
  "updateTime": "",
  "volumes": [
    {
      "gcpService": "",
      "id": "",
      "lunRanges": [
        {
          "quantity": 0,
          "sizeGb": 0
        }
      ],
      "machineIds": [],
      "name": "",
      "nfsExports": [
        {
          "allowDev": false,
          "allowSuid": false,
          "cidr": "",
          "machineId": "",
          "networkId": "",
          "noRootSquash": false,
          "permissions": ""
        }
      ],
      "performanceTier": "",
      "protocol": "",
      "sizeGb": 0,
      "snapshotsEnabled": false,
      "storageAggregatePool": "",
      "type": "",
      "userNote": ""
    }
  ],
  "vpcScEnabled": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/provisioningConfigs');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'cloudConsoleUri' => '',
  'customId' => '',
  'email' => '',
  'handoverServiceAccount' => '',
  'instances' => [
    [
        'accountNetworksEnabled' => null,
        'clientNetwork' => [
                'address' => '',
                'existingNetworkId' => '',
                'networkId' => ''
        ],
        'hyperthreading' => null,
        'id' => '',
        'instanceType' => '',
        'logicalInterfaces' => [
                [
                                'interfaceIndex' => 0,
                                'logicalNetworkInterfaces' => [
                                                                [
                                                                                                                                'defaultGateway' => null,
                                                                                                                                'id' => '',
                                                                                                                                'ipAddress' => '',
                                                                                                                                'network' => '',
                                                                                                                                'networkType' => ''
                                                                ]
                                ],
                                'name' => ''
                ]
        ],
        'name' => '',
        'networkConfig' => '',
        'networkTemplate' => '',
        'osImage' => '',
        'privateNetwork' => [
                
        ],
        'userNote' => ''
    ]
  ],
  'location' => '',
  'name' => '',
  'networks' => [
    [
        'bandwidth' => '',
        'cidr' => '',
        'gcpService' => '',
        'id' => '',
        'jumboFramesEnabled' => null,
        'name' => '',
        'serviceCidr' => '',
        'type' => '',
        'userNote' => '',
        'vlanAttachments' => [
                [
                                'id' => '',
                                'pairingKey' => ''
                ]
        ],
        'vlanSameProject' => null
    ]
  ],
  'state' => '',
  'statusMessage' => '',
  'ticketId' => '',
  'updateTime' => '',
  'volumes' => [
    [
        'gcpService' => '',
        'id' => '',
        'lunRanges' => [
                [
                                'quantity' => 0,
                                'sizeGb' => 0
                ]
        ],
        'machineIds' => [
                
        ],
        'name' => '',
        'nfsExports' => [
                [
                                'allowDev' => null,
                                'allowSuid' => null,
                                'cidr' => '',
                                'machineId' => '',
                                'networkId' => '',
                                'noRootSquash' => null,
                                'permissions' => ''
                ]
        ],
        'performanceTier' => '',
        'protocol' => '',
        'sizeGb' => 0,
        'snapshotsEnabled' => null,
        'storageAggregatePool' => '',
        'type' => '',
        'userNote' => ''
    ]
  ],
  'vpcScEnabled' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'cloudConsoleUri' => '',
  'customId' => '',
  'email' => '',
  'handoverServiceAccount' => '',
  'instances' => [
    [
        'accountNetworksEnabled' => null,
        'clientNetwork' => [
                'address' => '',
                'existingNetworkId' => '',
                'networkId' => ''
        ],
        'hyperthreading' => null,
        'id' => '',
        'instanceType' => '',
        'logicalInterfaces' => [
                [
                                'interfaceIndex' => 0,
                                'logicalNetworkInterfaces' => [
                                                                [
                                                                                                                                'defaultGateway' => null,
                                                                                                                                'id' => '',
                                                                                                                                'ipAddress' => '',
                                                                                                                                'network' => '',
                                                                                                                                'networkType' => ''
                                                                ]
                                ],
                                'name' => ''
                ]
        ],
        'name' => '',
        'networkConfig' => '',
        'networkTemplate' => '',
        'osImage' => '',
        'privateNetwork' => [
                
        ],
        'userNote' => ''
    ]
  ],
  'location' => '',
  'name' => '',
  'networks' => [
    [
        'bandwidth' => '',
        'cidr' => '',
        'gcpService' => '',
        'id' => '',
        'jumboFramesEnabled' => null,
        'name' => '',
        'serviceCidr' => '',
        'type' => '',
        'userNote' => '',
        'vlanAttachments' => [
                [
                                'id' => '',
                                'pairingKey' => ''
                ]
        ],
        'vlanSameProject' => null
    ]
  ],
  'state' => '',
  'statusMessage' => '',
  'ticketId' => '',
  'updateTime' => '',
  'volumes' => [
    [
        'gcpService' => '',
        'id' => '',
        'lunRanges' => [
                [
                                'quantity' => 0,
                                'sizeGb' => 0
                ]
        ],
        'machineIds' => [
                
        ],
        'name' => '',
        'nfsExports' => [
                [
                                'allowDev' => null,
                                'allowSuid' => null,
                                'cidr' => '',
                                'machineId' => '',
                                'networkId' => '',
                                'noRootSquash' => null,
                                'permissions' => ''
                ]
        ],
        'performanceTier' => '',
        'protocol' => '',
        'sizeGb' => 0,
        'snapshotsEnabled' => null,
        'storageAggregatePool' => '',
        'type' => '',
        'userNote' => ''
    ]
  ],
  'vpcScEnabled' => null
]));
$request->setRequestUrl('{{baseUrl}}/v2/:parent/provisioningConfigs');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/provisioningConfigs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "cloudConsoleUri": "",
  "customId": "",
  "email": "",
  "handoverServiceAccount": "",
  "instances": [
    {
      "accountNetworksEnabled": false,
      "clientNetwork": {
        "address": "",
        "existingNetworkId": "",
        "networkId": ""
      },
      "hyperthreading": false,
      "id": "",
      "instanceType": "",
      "logicalInterfaces": [
        {
          "interfaceIndex": 0,
          "logicalNetworkInterfaces": [
            {
              "defaultGateway": false,
              "id": "",
              "ipAddress": "",
              "network": "",
              "networkType": ""
            }
          ],
          "name": ""
        }
      ],
      "name": "",
      "networkConfig": "",
      "networkTemplate": "",
      "osImage": "",
      "privateNetwork": {},
      "userNote": ""
    }
  ],
  "location": "",
  "name": "",
  "networks": [
    {
      "bandwidth": "",
      "cidr": "",
      "gcpService": "",
      "id": "",
      "jumboFramesEnabled": false,
      "name": "",
      "serviceCidr": "",
      "type": "",
      "userNote": "",
      "vlanAttachments": [
        {
          "id": "",
          "pairingKey": ""
        }
      ],
      "vlanSameProject": false
    }
  ],
  "state": "",
  "statusMessage": "",
  "ticketId": "",
  "updateTime": "",
  "volumes": [
    {
      "gcpService": "",
      "id": "",
      "lunRanges": [
        {
          "quantity": 0,
          "sizeGb": 0
        }
      ],
      "machineIds": [],
      "name": "",
      "nfsExports": [
        {
          "allowDev": false,
          "allowSuid": false,
          "cidr": "",
          "machineId": "",
          "networkId": "",
          "noRootSquash": false,
          "permissions": ""
        }
      ],
      "performanceTier": "",
      "protocol": "",
      "sizeGb": 0,
      "snapshotsEnabled": false,
      "storageAggregatePool": "",
      "type": "",
      "userNote": ""
    }
  ],
  "vpcScEnabled": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/provisioningConfigs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "cloudConsoleUri": "",
  "customId": "",
  "email": "",
  "handoverServiceAccount": "",
  "instances": [
    {
      "accountNetworksEnabled": false,
      "clientNetwork": {
        "address": "",
        "existingNetworkId": "",
        "networkId": ""
      },
      "hyperthreading": false,
      "id": "",
      "instanceType": "",
      "logicalInterfaces": [
        {
          "interfaceIndex": 0,
          "logicalNetworkInterfaces": [
            {
              "defaultGateway": false,
              "id": "",
              "ipAddress": "",
              "network": "",
              "networkType": ""
            }
          ],
          "name": ""
        }
      ],
      "name": "",
      "networkConfig": "",
      "networkTemplate": "",
      "osImage": "",
      "privateNetwork": {},
      "userNote": ""
    }
  ],
  "location": "",
  "name": "",
  "networks": [
    {
      "bandwidth": "",
      "cidr": "",
      "gcpService": "",
      "id": "",
      "jumboFramesEnabled": false,
      "name": "",
      "serviceCidr": "",
      "type": "",
      "userNote": "",
      "vlanAttachments": [
        {
          "id": "",
          "pairingKey": ""
        }
      ],
      "vlanSameProject": false
    }
  ],
  "state": "",
  "statusMessage": "",
  "ticketId": "",
  "updateTime": "",
  "volumes": [
    {
      "gcpService": "",
      "id": "",
      "lunRanges": [
        {
          "quantity": 0,
          "sizeGb": 0
        }
      ],
      "machineIds": [],
      "name": "",
      "nfsExports": [
        {
          "allowDev": false,
          "allowSuid": false,
          "cidr": "",
          "machineId": "",
          "networkId": "",
          "noRootSquash": false,
          "permissions": ""
        }
      ],
      "performanceTier": "",
      "protocol": "",
      "sizeGb": 0,
      "snapshotsEnabled": false,
      "storageAggregatePool": "",
      "type": "",
      "userNote": ""
    }
  ],
  "vpcScEnabled": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:parent/provisioningConfigs", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/provisioningConfigs"

payload = {
    "cloudConsoleUri": "",
    "customId": "",
    "email": "",
    "handoverServiceAccount": "",
    "instances": [
        {
            "accountNetworksEnabled": False,
            "clientNetwork": {
                "address": "",
                "existingNetworkId": "",
                "networkId": ""
            },
            "hyperthreading": False,
            "id": "",
            "instanceType": "",
            "logicalInterfaces": [
                {
                    "interfaceIndex": 0,
                    "logicalNetworkInterfaces": [
                        {
                            "defaultGateway": False,
                            "id": "",
                            "ipAddress": "",
                            "network": "",
                            "networkType": ""
                        }
                    ],
                    "name": ""
                }
            ],
            "name": "",
            "networkConfig": "",
            "networkTemplate": "",
            "osImage": "",
            "privateNetwork": {},
            "userNote": ""
        }
    ],
    "location": "",
    "name": "",
    "networks": [
        {
            "bandwidth": "",
            "cidr": "",
            "gcpService": "",
            "id": "",
            "jumboFramesEnabled": False,
            "name": "",
            "serviceCidr": "",
            "type": "",
            "userNote": "",
            "vlanAttachments": [
                {
                    "id": "",
                    "pairingKey": ""
                }
            ],
            "vlanSameProject": False
        }
    ],
    "state": "",
    "statusMessage": "",
    "ticketId": "",
    "updateTime": "",
    "volumes": [
        {
            "gcpService": "",
            "id": "",
            "lunRanges": [
                {
                    "quantity": 0,
                    "sizeGb": 0
                }
            ],
            "machineIds": [],
            "name": "",
            "nfsExports": [
                {
                    "allowDev": False,
                    "allowSuid": False,
                    "cidr": "",
                    "machineId": "",
                    "networkId": "",
                    "noRootSquash": False,
                    "permissions": ""
                }
            ],
            "performanceTier": "",
            "protocol": "",
            "sizeGb": 0,
            "snapshotsEnabled": False,
            "storageAggregatePool": "",
            "type": "",
            "userNote": ""
        }
    ],
    "vpcScEnabled": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/provisioningConfigs"

payload <- "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/provisioningConfigs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:parent/provisioningConfigs') do |req|
  req.body = "{\n  \"cloudConsoleUri\": \"\",\n  \"customId\": \"\",\n  \"email\": \"\",\n  \"handoverServiceAccount\": \"\",\n  \"instances\": [\n    {\n      \"accountNetworksEnabled\": false,\n      \"clientNetwork\": {\n        \"address\": \"\",\n        \"existingNetworkId\": \"\",\n        \"networkId\": \"\"\n      },\n      \"hyperthreading\": false,\n      \"id\": \"\",\n      \"instanceType\": \"\",\n      \"logicalInterfaces\": [\n        {\n          \"interfaceIndex\": 0,\n          \"logicalNetworkInterfaces\": [\n            {\n              \"defaultGateway\": false,\n              \"id\": \"\",\n              \"ipAddress\": \"\",\n              \"network\": \"\",\n              \"networkType\": \"\"\n            }\n          ],\n          \"name\": \"\"\n        }\n      ],\n      \"name\": \"\",\n      \"networkConfig\": \"\",\n      \"networkTemplate\": \"\",\n      \"osImage\": \"\",\n      \"privateNetwork\": {},\n      \"userNote\": \"\"\n    }\n  ],\n  \"location\": \"\",\n  \"name\": \"\",\n  \"networks\": [\n    {\n      \"bandwidth\": \"\",\n      \"cidr\": \"\",\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"jumboFramesEnabled\": false,\n      \"name\": \"\",\n      \"serviceCidr\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\",\n      \"vlanAttachments\": [\n        {\n          \"id\": \"\",\n          \"pairingKey\": \"\"\n        }\n      ],\n      \"vlanSameProject\": false\n    }\n  ],\n  \"state\": \"\",\n  \"statusMessage\": \"\",\n  \"ticketId\": \"\",\n  \"updateTime\": \"\",\n  \"volumes\": [\n    {\n      \"gcpService\": \"\",\n      \"id\": \"\",\n      \"lunRanges\": [\n        {\n          \"quantity\": 0,\n          \"sizeGb\": 0\n        }\n      ],\n      \"machineIds\": [],\n      \"name\": \"\",\n      \"nfsExports\": [\n        {\n          \"allowDev\": false,\n          \"allowSuid\": false,\n          \"cidr\": \"\",\n          \"machineId\": \"\",\n          \"networkId\": \"\",\n          \"noRootSquash\": false,\n          \"permissions\": \"\"\n        }\n      ],\n      \"performanceTier\": \"\",\n      \"protocol\": \"\",\n      \"sizeGb\": 0,\n      \"snapshotsEnabled\": false,\n      \"storageAggregatePool\": \"\",\n      \"type\": \"\",\n      \"userNote\": \"\"\n    }\n  ],\n  \"vpcScEnabled\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/provisioningConfigs";

    let payload = json!({
        "cloudConsoleUri": "",
        "customId": "",
        "email": "",
        "handoverServiceAccount": "",
        "instances": (
            json!({
                "accountNetworksEnabled": false,
                "clientNetwork": json!({
                    "address": "",
                    "existingNetworkId": "",
                    "networkId": ""
                }),
                "hyperthreading": false,
                "id": "",
                "instanceType": "",
                "logicalInterfaces": (
                    json!({
                        "interfaceIndex": 0,
                        "logicalNetworkInterfaces": (
                            json!({
                                "defaultGateway": false,
                                "id": "",
                                "ipAddress": "",
                                "network": "",
                                "networkType": ""
                            })
                        ),
                        "name": ""
                    })
                ),
                "name": "",
                "networkConfig": "",
                "networkTemplate": "",
                "osImage": "",
                "privateNetwork": json!({}),
                "userNote": ""
            })
        ),
        "location": "",
        "name": "",
        "networks": (
            json!({
                "bandwidth": "",
                "cidr": "",
                "gcpService": "",
                "id": "",
                "jumboFramesEnabled": false,
                "name": "",
                "serviceCidr": "",
                "type": "",
                "userNote": "",
                "vlanAttachments": (
                    json!({
                        "id": "",
                        "pairingKey": ""
                    })
                ),
                "vlanSameProject": false
            })
        ),
        "state": "",
        "statusMessage": "",
        "ticketId": "",
        "updateTime": "",
        "volumes": (
            json!({
                "gcpService": "",
                "id": "",
                "lunRanges": (
                    json!({
                        "quantity": 0,
                        "sizeGb": 0
                    })
                ),
                "machineIds": (),
                "name": "",
                "nfsExports": (
                    json!({
                        "allowDev": false,
                        "allowSuid": false,
                        "cidr": "",
                        "machineId": "",
                        "networkId": "",
                        "noRootSquash": false,
                        "permissions": ""
                    })
                ),
                "performanceTier": "",
                "protocol": "",
                "sizeGb": 0,
                "snapshotsEnabled": false,
                "storageAggregatePool": "",
                "type": "",
                "userNote": ""
            })
        ),
        "vpcScEnabled": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:parent/provisioningConfigs \
  --header 'content-type: application/json' \
  --data '{
  "cloudConsoleUri": "",
  "customId": "",
  "email": "",
  "handoverServiceAccount": "",
  "instances": [
    {
      "accountNetworksEnabled": false,
      "clientNetwork": {
        "address": "",
        "existingNetworkId": "",
        "networkId": ""
      },
      "hyperthreading": false,
      "id": "",
      "instanceType": "",
      "logicalInterfaces": [
        {
          "interfaceIndex": 0,
          "logicalNetworkInterfaces": [
            {
              "defaultGateway": false,
              "id": "",
              "ipAddress": "",
              "network": "",
              "networkType": ""
            }
          ],
          "name": ""
        }
      ],
      "name": "",
      "networkConfig": "",
      "networkTemplate": "",
      "osImage": "",
      "privateNetwork": {},
      "userNote": ""
    }
  ],
  "location": "",
  "name": "",
  "networks": [
    {
      "bandwidth": "",
      "cidr": "",
      "gcpService": "",
      "id": "",
      "jumboFramesEnabled": false,
      "name": "",
      "serviceCidr": "",
      "type": "",
      "userNote": "",
      "vlanAttachments": [
        {
          "id": "",
          "pairingKey": ""
        }
      ],
      "vlanSameProject": false
    }
  ],
  "state": "",
  "statusMessage": "",
  "ticketId": "",
  "updateTime": "",
  "volumes": [
    {
      "gcpService": "",
      "id": "",
      "lunRanges": [
        {
          "quantity": 0,
          "sizeGb": 0
        }
      ],
      "machineIds": [],
      "name": "",
      "nfsExports": [
        {
          "allowDev": false,
          "allowSuid": false,
          "cidr": "",
          "machineId": "",
          "networkId": "",
          "noRootSquash": false,
          "permissions": ""
        }
      ],
      "performanceTier": "",
      "protocol": "",
      "sizeGb": 0,
      "snapshotsEnabled": false,
      "storageAggregatePool": "",
      "type": "",
      "userNote": ""
    }
  ],
  "vpcScEnabled": false
}'
echo '{
  "cloudConsoleUri": "",
  "customId": "",
  "email": "",
  "handoverServiceAccount": "",
  "instances": [
    {
      "accountNetworksEnabled": false,
      "clientNetwork": {
        "address": "",
        "existingNetworkId": "",
        "networkId": ""
      },
      "hyperthreading": false,
      "id": "",
      "instanceType": "",
      "logicalInterfaces": [
        {
          "interfaceIndex": 0,
          "logicalNetworkInterfaces": [
            {
              "defaultGateway": false,
              "id": "",
              "ipAddress": "",
              "network": "",
              "networkType": ""
            }
          ],
          "name": ""
        }
      ],
      "name": "",
      "networkConfig": "",
      "networkTemplate": "",
      "osImage": "",
      "privateNetwork": {},
      "userNote": ""
    }
  ],
  "location": "",
  "name": "",
  "networks": [
    {
      "bandwidth": "",
      "cidr": "",
      "gcpService": "",
      "id": "",
      "jumboFramesEnabled": false,
      "name": "",
      "serviceCidr": "",
      "type": "",
      "userNote": "",
      "vlanAttachments": [
        {
          "id": "",
          "pairingKey": ""
        }
      ],
      "vlanSameProject": false
    }
  ],
  "state": "",
  "statusMessage": "",
  "ticketId": "",
  "updateTime": "",
  "volumes": [
    {
      "gcpService": "",
      "id": "",
      "lunRanges": [
        {
          "quantity": 0,
          "sizeGb": 0
        }
      ],
      "machineIds": [],
      "name": "",
      "nfsExports": [
        {
          "allowDev": false,
          "allowSuid": false,
          "cidr": "",
          "machineId": "",
          "networkId": "",
          "noRootSquash": false,
          "permissions": ""
        }
      ],
      "performanceTier": "",
      "protocol": "",
      "sizeGb": 0,
      "snapshotsEnabled": false,
      "storageAggregatePool": "",
      "type": "",
      "userNote": ""
    }
  ],
  "vpcScEnabled": false
}' |  \
  http POST {{baseUrl}}/v2/:parent/provisioningConfigs \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "cloudConsoleUri": "",\n  "customId": "",\n  "email": "",\n  "handoverServiceAccount": "",\n  "instances": [\n    {\n      "accountNetworksEnabled": false,\n      "clientNetwork": {\n        "address": "",\n        "existingNetworkId": "",\n        "networkId": ""\n      },\n      "hyperthreading": false,\n      "id": "",\n      "instanceType": "",\n      "logicalInterfaces": [\n        {\n          "interfaceIndex": 0,\n          "logicalNetworkInterfaces": [\n            {\n              "defaultGateway": false,\n              "id": "",\n              "ipAddress": "",\n              "network": "",\n              "networkType": ""\n            }\n          ],\n          "name": ""\n        }\n      ],\n      "name": "",\n      "networkConfig": "",\n      "networkTemplate": "",\n      "osImage": "",\n      "privateNetwork": {},\n      "userNote": ""\n    }\n  ],\n  "location": "",\n  "name": "",\n  "networks": [\n    {\n      "bandwidth": "",\n      "cidr": "",\n      "gcpService": "",\n      "id": "",\n      "jumboFramesEnabled": false,\n      "name": "",\n      "serviceCidr": "",\n      "type": "",\n      "userNote": "",\n      "vlanAttachments": [\n        {\n          "id": "",\n          "pairingKey": ""\n        }\n      ],\n      "vlanSameProject": false\n    }\n  ],\n  "state": "",\n  "statusMessage": "",\n  "ticketId": "",\n  "updateTime": "",\n  "volumes": [\n    {\n      "gcpService": "",\n      "id": "",\n      "lunRanges": [\n        {\n          "quantity": 0,\n          "sizeGb": 0\n        }\n      ],\n      "machineIds": [],\n      "name": "",\n      "nfsExports": [\n        {\n          "allowDev": false,\n          "allowSuid": false,\n          "cidr": "",\n          "machineId": "",\n          "networkId": "",\n          "noRootSquash": false,\n          "permissions": ""\n        }\n      ],\n      "performanceTier": "",\n      "protocol": "",\n      "sizeGb": 0,\n      "snapshotsEnabled": false,\n      "storageAggregatePool": "",\n      "type": "",\n      "userNote": ""\n    }\n  ],\n  "vpcScEnabled": false\n}' \
  --output-document \
  - {{baseUrl}}/v2/:parent/provisioningConfigs
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "cloudConsoleUri": "",
  "customId": "",
  "email": "",
  "handoverServiceAccount": "",
  "instances": [
    [
      "accountNetworksEnabled": false,
      "clientNetwork": [
        "address": "",
        "existingNetworkId": "",
        "networkId": ""
      ],
      "hyperthreading": false,
      "id": "",
      "instanceType": "",
      "logicalInterfaces": [
        [
          "interfaceIndex": 0,
          "logicalNetworkInterfaces": [
            [
              "defaultGateway": false,
              "id": "",
              "ipAddress": "",
              "network": "",
              "networkType": ""
            ]
          ],
          "name": ""
        ]
      ],
      "name": "",
      "networkConfig": "",
      "networkTemplate": "",
      "osImage": "",
      "privateNetwork": [],
      "userNote": ""
    ]
  ],
  "location": "",
  "name": "",
  "networks": [
    [
      "bandwidth": "",
      "cidr": "",
      "gcpService": "",
      "id": "",
      "jumboFramesEnabled": false,
      "name": "",
      "serviceCidr": "",
      "type": "",
      "userNote": "",
      "vlanAttachments": [
        [
          "id": "",
          "pairingKey": ""
        ]
      ],
      "vlanSameProject": false
    ]
  ],
  "state": "",
  "statusMessage": "",
  "ticketId": "",
  "updateTime": "",
  "volumes": [
    [
      "gcpService": "",
      "id": "",
      "lunRanges": [
        [
          "quantity": 0,
          "sizeGb": 0
        ]
      ],
      "machineIds": [],
      "name": "",
      "nfsExports": [
        [
          "allowDev": false,
          "allowSuid": false,
          "cidr": "",
          "machineId": "",
          "networkId": "",
          "noRootSquash": false,
          "permissions": ""
        ]
      ],
      "performanceTier": "",
      "protocol": "",
      "sizeGb": 0,
      "snapshotsEnabled": false,
      "storageAggregatePool": "",
      "type": "",
      "userNote": ""
    ]
  ],
  "vpcScEnabled": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/provisioningConfigs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.provisioningConfigs.submit
{{baseUrl}}/v2/:parent/provisioningConfigs:submit
QUERY PARAMS

parent
BODY json

{
  "email": "",
  "provisioningConfig": {
    "cloudConsoleUri": "",
    "customId": "",
    "email": "",
    "handoverServiceAccount": "",
    "instances": [
      {
        "accountNetworksEnabled": false,
        "clientNetwork": {
          "address": "",
          "existingNetworkId": "",
          "networkId": ""
        },
        "hyperthreading": false,
        "id": "",
        "instanceType": "",
        "logicalInterfaces": [
          {
            "interfaceIndex": 0,
            "logicalNetworkInterfaces": [
              {
                "defaultGateway": false,
                "id": "",
                "ipAddress": "",
                "network": "",
                "networkType": ""
              }
            ],
            "name": ""
          }
        ],
        "name": "",
        "networkConfig": "",
        "networkTemplate": "",
        "osImage": "",
        "privateNetwork": {},
        "userNote": ""
      }
    ],
    "location": "",
    "name": "",
    "networks": [
      {
        "bandwidth": "",
        "cidr": "",
        "gcpService": "",
        "id": "",
        "jumboFramesEnabled": false,
        "name": "",
        "serviceCidr": "",
        "type": "",
        "userNote": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": ""
          }
        ],
        "vlanSameProject": false
      }
    ],
    "state": "",
    "statusMessage": "",
    "ticketId": "",
    "updateTime": "",
    "volumes": [
      {
        "gcpService": "",
        "id": "",
        "lunRanges": [
          {
            "quantity": 0,
            "sizeGb": 0
          }
        ],
        "machineIds": [],
        "name": "",
        "nfsExports": [
          {
            "allowDev": false,
            "allowSuid": false,
            "cidr": "",
            "machineId": "",
            "networkId": "",
            "noRootSquash": false,
            "permissions": ""
          }
        ],
        "performanceTier": "",
        "protocol": "",
        "sizeGb": 0,
        "snapshotsEnabled": false,
        "storageAggregatePool": "",
        "type": "",
        "userNote": ""
      }
    ],
    "vpcScEnabled": false
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/provisioningConfigs:submit");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:parent/provisioningConfigs:submit" {:content-type :json
                                                                                  :form-params {:email ""
                                                                                                :provisioningConfig {:cloudConsoleUri ""
                                                                                                                     :customId ""
                                                                                                                     :email ""
                                                                                                                     :handoverServiceAccount ""
                                                                                                                     :instances [{:accountNetworksEnabled false
                                                                                                                                  :clientNetwork {:address ""
                                                                                                                                                  :existingNetworkId ""
                                                                                                                                                  :networkId ""}
                                                                                                                                  :hyperthreading false
                                                                                                                                  :id ""
                                                                                                                                  :instanceType ""
                                                                                                                                  :logicalInterfaces [{:interfaceIndex 0
                                                                                                                                                       :logicalNetworkInterfaces [{:defaultGateway false
                                                                                                                                                                                   :id ""
                                                                                                                                                                                   :ipAddress ""
                                                                                                                                                                                   :network ""
                                                                                                                                                                                   :networkType ""}]
                                                                                                                                                       :name ""}]
                                                                                                                                  :name ""
                                                                                                                                  :networkConfig ""
                                                                                                                                  :networkTemplate ""
                                                                                                                                  :osImage ""
                                                                                                                                  :privateNetwork {}
                                                                                                                                  :userNote ""}]
                                                                                                                     :location ""
                                                                                                                     :name ""
                                                                                                                     :networks [{:bandwidth ""
                                                                                                                                 :cidr ""
                                                                                                                                 :gcpService ""
                                                                                                                                 :id ""
                                                                                                                                 :jumboFramesEnabled false
                                                                                                                                 :name ""
                                                                                                                                 :serviceCidr ""
                                                                                                                                 :type ""
                                                                                                                                 :userNote ""
                                                                                                                                 :vlanAttachments [{:id ""
                                                                                                                                                    :pairingKey ""}]
                                                                                                                                 :vlanSameProject false}]
                                                                                                                     :state ""
                                                                                                                     :statusMessage ""
                                                                                                                     :ticketId ""
                                                                                                                     :updateTime ""
                                                                                                                     :volumes [{:gcpService ""
                                                                                                                                :id ""
                                                                                                                                :lunRanges [{:quantity 0
                                                                                                                                             :sizeGb 0}]
                                                                                                                                :machineIds []
                                                                                                                                :name ""
                                                                                                                                :nfsExports [{:allowDev false
                                                                                                                                              :allowSuid false
                                                                                                                                              :cidr ""
                                                                                                                                              :machineId ""
                                                                                                                                              :networkId ""
                                                                                                                                              :noRootSquash false
                                                                                                                                              :permissions ""}]
                                                                                                                                :performanceTier ""
                                                                                                                                :protocol ""
                                                                                                                                :sizeGb 0
                                                                                                                                :snapshotsEnabled false
                                                                                                                                :storageAggregatePool ""
                                                                                                                                :type ""
                                                                                                                                :userNote ""}]
                                                                                                                     :vpcScEnabled false}}})
require "http/client"

url = "{{baseUrl}}/v2/:parent/provisioningConfigs:submit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/provisioningConfigs:submit"),
    Content = new StringContent("{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/provisioningConfigs:submit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/provisioningConfigs:submit"

	payload := strings.NewReader("{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:parent/provisioningConfigs:submit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2214

{
  "email": "",
  "provisioningConfig": {
    "cloudConsoleUri": "",
    "customId": "",
    "email": "",
    "handoverServiceAccount": "",
    "instances": [
      {
        "accountNetworksEnabled": false,
        "clientNetwork": {
          "address": "",
          "existingNetworkId": "",
          "networkId": ""
        },
        "hyperthreading": false,
        "id": "",
        "instanceType": "",
        "logicalInterfaces": [
          {
            "interfaceIndex": 0,
            "logicalNetworkInterfaces": [
              {
                "defaultGateway": false,
                "id": "",
                "ipAddress": "",
                "network": "",
                "networkType": ""
              }
            ],
            "name": ""
          }
        ],
        "name": "",
        "networkConfig": "",
        "networkTemplate": "",
        "osImage": "",
        "privateNetwork": {},
        "userNote": ""
      }
    ],
    "location": "",
    "name": "",
    "networks": [
      {
        "bandwidth": "",
        "cidr": "",
        "gcpService": "",
        "id": "",
        "jumboFramesEnabled": false,
        "name": "",
        "serviceCidr": "",
        "type": "",
        "userNote": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": ""
          }
        ],
        "vlanSameProject": false
      }
    ],
    "state": "",
    "statusMessage": "",
    "ticketId": "",
    "updateTime": "",
    "volumes": [
      {
        "gcpService": "",
        "id": "",
        "lunRanges": [
          {
            "quantity": 0,
            "sizeGb": 0
          }
        ],
        "machineIds": [],
        "name": "",
        "nfsExports": [
          {
            "allowDev": false,
            "allowSuid": false,
            "cidr": "",
            "machineId": "",
            "networkId": "",
            "noRootSquash": false,
            "permissions": ""
          }
        ],
        "performanceTier": "",
        "protocol": "",
        "sizeGb": 0,
        "snapshotsEnabled": false,
        "storageAggregatePool": "",
        "type": "",
        "userNote": ""
      }
    ],
    "vpcScEnabled": false
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:parent/provisioningConfigs:submit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/provisioningConfigs:submit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/provisioningConfigs:submit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:parent/provisioningConfigs:submit")
  .header("content-type", "application/json")
  .body("{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}")
  .asString();
const data = JSON.stringify({
  email: '',
  provisioningConfig: {
    cloudConsoleUri: '',
    customId: '',
    email: '',
    handoverServiceAccount: '',
    instances: [
      {
        accountNetworksEnabled: false,
        clientNetwork: {
          address: '',
          existingNetworkId: '',
          networkId: ''
        },
        hyperthreading: false,
        id: '',
        instanceType: '',
        logicalInterfaces: [
          {
            interfaceIndex: 0,
            logicalNetworkInterfaces: [
              {
                defaultGateway: false,
                id: '',
                ipAddress: '',
                network: '',
                networkType: ''
              }
            ],
            name: ''
          }
        ],
        name: '',
        networkConfig: '',
        networkTemplate: '',
        osImage: '',
        privateNetwork: {},
        userNote: ''
      }
    ],
    location: '',
    name: '',
    networks: [
      {
        bandwidth: '',
        cidr: '',
        gcpService: '',
        id: '',
        jumboFramesEnabled: false,
        name: '',
        serviceCidr: '',
        type: '',
        userNote: '',
        vlanAttachments: [
          {
            id: '',
            pairingKey: ''
          }
        ],
        vlanSameProject: false
      }
    ],
    state: '',
    statusMessage: '',
    ticketId: '',
    updateTime: '',
    volumes: [
      {
        gcpService: '',
        id: '',
        lunRanges: [
          {
            quantity: 0,
            sizeGb: 0
          }
        ],
        machineIds: [],
        name: '',
        nfsExports: [
          {
            allowDev: false,
            allowSuid: false,
            cidr: '',
            machineId: '',
            networkId: '',
            noRootSquash: false,
            permissions: ''
          }
        ],
        performanceTier: '',
        protocol: '',
        sizeGb: 0,
        snapshotsEnabled: false,
        storageAggregatePool: '',
        type: '',
        userNote: ''
      }
    ],
    vpcScEnabled: false
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:parent/provisioningConfigs:submit');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/provisioningConfigs:submit',
  headers: {'content-type': 'application/json'},
  data: {
    email: '',
    provisioningConfig: {
      cloudConsoleUri: '',
      customId: '',
      email: '',
      handoverServiceAccount: '',
      instances: [
        {
          accountNetworksEnabled: false,
          clientNetwork: {address: '', existingNetworkId: '', networkId: ''},
          hyperthreading: false,
          id: '',
          instanceType: '',
          logicalInterfaces: [
            {
              interfaceIndex: 0,
              logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
              name: ''
            }
          ],
          name: '',
          networkConfig: '',
          networkTemplate: '',
          osImage: '',
          privateNetwork: {},
          userNote: ''
        }
      ],
      location: '',
      name: '',
      networks: [
        {
          bandwidth: '',
          cidr: '',
          gcpService: '',
          id: '',
          jumboFramesEnabled: false,
          name: '',
          serviceCidr: '',
          type: '',
          userNote: '',
          vlanAttachments: [{id: '', pairingKey: ''}],
          vlanSameProject: false
        }
      ],
      state: '',
      statusMessage: '',
      ticketId: '',
      updateTime: '',
      volumes: [
        {
          gcpService: '',
          id: '',
          lunRanges: [{quantity: 0, sizeGb: 0}],
          machineIds: [],
          name: '',
          nfsExports: [
            {
              allowDev: false,
              allowSuid: false,
              cidr: '',
              machineId: '',
              networkId: '',
              noRootSquash: false,
              permissions: ''
            }
          ],
          performanceTier: '',
          protocol: '',
          sizeGb: 0,
          snapshotsEnabled: false,
          storageAggregatePool: '',
          type: '',
          userNote: ''
        }
      ],
      vpcScEnabled: false
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/provisioningConfigs:submit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"email":"","provisioningConfig":{"cloudConsoleUri":"","customId":"","email":"","handoverServiceAccount":"","instances":[{"accountNetworksEnabled":false,"clientNetwork":{"address":"","existingNetworkId":"","networkId":""},"hyperthreading":false,"id":"","instanceType":"","logicalInterfaces":[{"interfaceIndex":0,"logicalNetworkInterfaces":[{"defaultGateway":false,"id":"","ipAddress":"","network":"","networkType":""}],"name":""}],"name":"","networkConfig":"","networkTemplate":"","osImage":"","privateNetwork":{},"userNote":""}],"location":"","name":"","networks":[{"bandwidth":"","cidr":"","gcpService":"","id":"","jumboFramesEnabled":false,"name":"","serviceCidr":"","type":"","userNote":"","vlanAttachments":[{"id":"","pairingKey":""}],"vlanSameProject":false}],"state":"","statusMessage":"","ticketId":"","updateTime":"","volumes":[{"gcpService":"","id":"","lunRanges":[{"quantity":0,"sizeGb":0}],"machineIds":[],"name":"","nfsExports":[{"allowDev":false,"allowSuid":false,"cidr":"","machineId":"","networkId":"","noRootSquash":false,"permissions":""}],"performanceTier":"","protocol":"","sizeGb":0,"snapshotsEnabled":false,"storageAggregatePool":"","type":"","userNote":""}],"vpcScEnabled":false}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/provisioningConfigs:submit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "email": "",\n  "provisioningConfig": {\n    "cloudConsoleUri": "",\n    "customId": "",\n    "email": "",\n    "handoverServiceAccount": "",\n    "instances": [\n      {\n        "accountNetworksEnabled": false,\n        "clientNetwork": {\n          "address": "",\n          "existingNetworkId": "",\n          "networkId": ""\n        },\n        "hyperthreading": false,\n        "id": "",\n        "instanceType": "",\n        "logicalInterfaces": [\n          {\n            "interfaceIndex": 0,\n            "logicalNetworkInterfaces": [\n              {\n                "defaultGateway": false,\n                "id": "",\n                "ipAddress": "",\n                "network": "",\n                "networkType": ""\n              }\n            ],\n            "name": ""\n          }\n        ],\n        "name": "",\n        "networkConfig": "",\n        "networkTemplate": "",\n        "osImage": "",\n        "privateNetwork": {},\n        "userNote": ""\n      }\n    ],\n    "location": "",\n    "name": "",\n    "networks": [\n      {\n        "bandwidth": "",\n        "cidr": "",\n        "gcpService": "",\n        "id": "",\n        "jumboFramesEnabled": false,\n        "name": "",\n        "serviceCidr": "",\n        "type": "",\n        "userNote": "",\n        "vlanAttachments": [\n          {\n            "id": "",\n            "pairingKey": ""\n          }\n        ],\n        "vlanSameProject": false\n      }\n    ],\n    "state": "",\n    "statusMessage": "",\n    "ticketId": "",\n    "updateTime": "",\n    "volumes": [\n      {\n        "gcpService": "",\n        "id": "",\n        "lunRanges": [\n          {\n            "quantity": 0,\n            "sizeGb": 0\n          }\n        ],\n        "machineIds": [],\n        "name": "",\n        "nfsExports": [\n          {\n            "allowDev": false,\n            "allowSuid": false,\n            "cidr": "",\n            "machineId": "",\n            "networkId": "",\n            "noRootSquash": false,\n            "permissions": ""\n          }\n        ],\n        "performanceTier": "",\n        "protocol": "",\n        "sizeGb": 0,\n        "snapshotsEnabled": false,\n        "storageAggregatePool": "",\n        "type": "",\n        "userNote": ""\n      }\n    ],\n    "vpcScEnabled": false\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/provisioningConfigs:submit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/provisioningConfigs:submit',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  email: '',
  provisioningConfig: {
    cloudConsoleUri: '',
    customId: '',
    email: '',
    handoverServiceAccount: '',
    instances: [
      {
        accountNetworksEnabled: false,
        clientNetwork: {address: '', existingNetworkId: '', networkId: ''},
        hyperthreading: false,
        id: '',
        instanceType: '',
        logicalInterfaces: [
          {
            interfaceIndex: 0,
            logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
            name: ''
          }
        ],
        name: '',
        networkConfig: '',
        networkTemplate: '',
        osImage: '',
        privateNetwork: {},
        userNote: ''
      }
    ],
    location: '',
    name: '',
    networks: [
      {
        bandwidth: '',
        cidr: '',
        gcpService: '',
        id: '',
        jumboFramesEnabled: false,
        name: '',
        serviceCidr: '',
        type: '',
        userNote: '',
        vlanAttachments: [{id: '', pairingKey: ''}],
        vlanSameProject: false
      }
    ],
    state: '',
    statusMessage: '',
    ticketId: '',
    updateTime: '',
    volumes: [
      {
        gcpService: '',
        id: '',
        lunRanges: [{quantity: 0, sizeGb: 0}],
        machineIds: [],
        name: '',
        nfsExports: [
          {
            allowDev: false,
            allowSuid: false,
            cidr: '',
            machineId: '',
            networkId: '',
            noRootSquash: false,
            permissions: ''
          }
        ],
        performanceTier: '',
        protocol: '',
        sizeGb: 0,
        snapshotsEnabled: false,
        storageAggregatePool: '',
        type: '',
        userNote: ''
      }
    ],
    vpcScEnabled: false
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/provisioningConfigs:submit',
  headers: {'content-type': 'application/json'},
  body: {
    email: '',
    provisioningConfig: {
      cloudConsoleUri: '',
      customId: '',
      email: '',
      handoverServiceAccount: '',
      instances: [
        {
          accountNetworksEnabled: false,
          clientNetwork: {address: '', existingNetworkId: '', networkId: ''},
          hyperthreading: false,
          id: '',
          instanceType: '',
          logicalInterfaces: [
            {
              interfaceIndex: 0,
              logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
              name: ''
            }
          ],
          name: '',
          networkConfig: '',
          networkTemplate: '',
          osImage: '',
          privateNetwork: {},
          userNote: ''
        }
      ],
      location: '',
      name: '',
      networks: [
        {
          bandwidth: '',
          cidr: '',
          gcpService: '',
          id: '',
          jumboFramesEnabled: false,
          name: '',
          serviceCidr: '',
          type: '',
          userNote: '',
          vlanAttachments: [{id: '', pairingKey: ''}],
          vlanSameProject: false
        }
      ],
      state: '',
      statusMessage: '',
      ticketId: '',
      updateTime: '',
      volumes: [
        {
          gcpService: '',
          id: '',
          lunRanges: [{quantity: 0, sizeGb: 0}],
          machineIds: [],
          name: '',
          nfsExports: [
            {
              allowDev: false,
              allowSuid: false,
              cidr: '',
              machineId: '',
              networkId: '',
              noRootSquash: false,
              permissions: ''
            }
          ],
          performanceTier: '',
          protocol: '',
          sizeGb: 0,
          snapshotsEnabled: false,
          storageAggregatePool: '',
          type: '',
          userNote: ''
        }
      ],
      vpcScEnabled: false
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:parent/provisioningConfigs:submit');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  email: '',
  provisioningConfig: {
    cloudConsoleUri: '',
    customId: '',
    email: '',
    handoverServiceAccount: '',
    instances: [
      {
        accountNetworksEnabled: false,
        clientNetwork: {
          address: '',
          existingNetworkId: '',
          networkId: ''
        },
        hyperthreading: false,
        id: '',
        instanceType: '',
        logicalInterfaces: [
          {
            interfaceIndex: 0,
            logicalNetworkInterfaces: [
              {
                defaultGateway: false,
                id: '',
                ipAddress: '',
                network: '',
                networkType: ''
              }
            ],
            name: ''
          }
        ],
        name: '',
        networkConfig: '',
        networkTemplate: '',
        osImage: '',
        privateNetwork: {},
        userNote: ''
      }
    ],
    location: '',
    name: '',
    networks: [
      {
        bandwidth: '',
        cidr: '',
        gcpService: '',
        id: '',
        jumboFramesEnabled: false,
        name: '',
        serviceCidr: '',
        type: '',
        userNote: '',
        vlanAttachments: [
          {
            id: '',
            pairingKey: ''
          }
        ],
        vlanSameProject: false
      }
    ],
    state: '',
    statusMessage: '',
    ticketId: '',
    updateTime: '',
    volumes: [
      {
        gcpService: '',
        id: '',
        lunRanges: [
          {
            quantity: 0,
            sizeGb: 0
          }
        ],
        machineIds: [],
        name: '',
        nfsExports: [
          {
            allowDev: false,
            allowSuid: false,
            cidr: '',
            machineId: '',
            networkId: '',
            noRootSquash: false,
            permissions: ''
          }
        ],
        performanceTier: '',
        protocol: '',
        sizeGb: 0,
        snapshotsEnabled: false,
        storageAggregatePool: '',
        type: '',
        userNote: ''
      }
    ],
    vpcScEnabled: false
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/provisioningConfigs:submit',
  headers: {'content-type': 'application/json'},
  data: {
    email: '',
    provisioningConfig: {
      cloudConsoleUri: '',
      customId: '',
      email: '',
      handoverServiceAccount: '',
      instances: [
        {
          accountNetworksEnabled: false,
          clientNetwork: {address: '', existingNetworkId: '', networkId: ''},
          hyperthreading: false,
          id: '',
          instanceType: '',
          logicalInterfaces: [
            {
              interfaceIndex: 0,
              logicalNetworkInterfaces: [{defaultGateway: false, id: '', ipAddress: '', network: '', networkType: ''}],
              name: ''
            }
          ],
          name: '',
          networkConfig: '',
          networkTemplate: '',
          osImage: '',
          privateNetwork: {},
          userNote: ''
        }
      ],
      location: '',
      name: '',
      networks: [
        {
          bandwidth: '',
          cidr: '',
          gcpService: '',
          id: '',
          jumboFramesEnabled: false,
          name: '',
          serviceCidr: '',
          type: '',
          userNote: '',
          vlanAttachments: [{id: '', pairingKey: ''}],
          vlanSameProject: false
        }
      ],
      state: '',
      statusMessage: '',
      ticketId: '',
      updateTime: '',
      volumes: [
        {
          gcpService: '',
          id: '',
          lunRanges: [{quantity: 0, sizeGb: 0}],
          machineIds: [],
          name: '',
          nfsExports: [
            {
              allowDev: false,
              allowSuid: false,
              cidr: '',
              machineId: '',
              networkId: '',
              noRootSquash: false,
              permissions: ''
            }
          ],
          performanceTier: '',
          protocol: '',
          sizeGb: 0,
          snapshotsEnabled: false,
          storageAggregatePool: '',
          type: '',
          userNote: ''
        }
      ],
      vpcScEnabled: false
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/provisioningConfigs:submit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"email":"","provisioningConfig":{"cloudConsoleUri":"","customId":"","email":"","handoverServiceAccount":"","instances":[{"accountNetworksEnabled":false,"clientNetwork":{"address":"","existingNetworkId":"","networkId":""},"hyperthreading":false,"id":"","instanceType":"","logicalInterfaces":[{"interfaceIndex":0,"logicalNetworkInterfaces":[{"defaultGateway":false,"id":"","ipAddress":"","network":"","networkType":""}],"name":""}],"name":"","networkConfig":"","networkTemplate":"","osImage":"","privateNetwork":{},"userNote":""}],"location":"","name":"","networks":[{"bandwidth":"","cidr":"","gcpService":"","id":"","jumboFramesEnabled":false,"name":"","serviceCidr":"","type":"","userNote":"","vlanAttachments":[{"id":"","pairingKey":""}],"vlanSameProject":false}],"state":"","statusMessage":"","ticketId":"","updateTime":"","volumes":[{"gcpService":"","id":"","lunRanges":[{"quantity":0,"sizeGb":0}],"machineIds":[],"name":"","nfsExports":[{"allowDev":false,"allowSuid":false,"cidr":"","machineId":"","networkId":"","noRootSquash":false,"permissions":""}],"performanceTier":"","protocol":"","sizeGb":0,"snapshotsEnabled":false,"storageAggregatePool":"","type":"","userNote":""}],"vpcScEnabled":false}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"email": @"",
                              @"provisioningConfig": @{ @"cloudConsoleUri": @"", @"customId": @"", @"email": @"", @"handoverServiceAccount": @"", @"instances": @[ @{ @"accountNetworksEnabled": @NO, @"clientNetwork": @{ @"address": @"", @"existingNetworkId": @"", @"networkId": @"" }, @"hyperthreading": @NO, @"id": @"", @"instanceType": @"", @"logicalInterfaces": @[ @{ @"interfaceIndex": @0, @"logicalNetworkInterfaces": @[ @{ @"defaultGateway": @NO, @"id": @"", @"ipAddress": @"", @"network": @"", @"networkType": @"" } ], @"name": @"" } ], @"name": @"", @"networkConfig": @"", @"networkTemplate": @"", @"osImage": @"", @"privateNetwork": @{  }, @"userNote": @"" } ], @"location": @"", @"name": @"", @"networks": @[ @{ @"bandwidth": @"", @"cidr": @"", @"gcpService": @"", @"id": @"", @"jumboFramesEnabled": @NO, @"name": @"", @"serviceCidr": @"", @"type": @"", @"userNote": @"", @"vlanAttachments": @[ @{ @"id": @"", @"pairingKey": @"" } ], @"vlanSameProject": @NO } ], @"state": @"", @"statusMessage": @"", @"ticketId": @"", @"updateTime": @"", @"volumes": @[ @{ @"gcpService": @"", @"id": @"", @"lunRanges": @[ @{ @"quantity": @0, @"sizeGb": @0 } ], @"machineIds": @[  ], @"name": @"", @"nfsExports": @[ @{ @"allowDev": @NO, @"allowSuid": @NO, @"cidr": @"", @"machineId": @"", @"networkId": @"", @"noRootSquash": @NO, @"permissions": @"" } ], @"performanceTier": @"", @"protocol": @"", @"sizeGb": @0, @"snapshotsEnabled": @NO, @"storageAggregatePool": @"", @"type": @"", @"userNote": @"" } ], @"vpcScEnabled": @NO } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/provisioningConfigs:submit"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/provisioningConfigs:submit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/provisioningConfigs:submit",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'email' => '',
    'provisioningConfig' => [
        'cloudConsoleUri' => '',
        'customId' => '',
        'email' => '',
        'handoverServiceAccount' => '',
        'instances' => [
                [
                                'accountNetworksEnabled' => null,
                                'clientNetwork' => [
                                                                'address' => '',
                                                                'existingNetworkId' => '',
                                                                'networkId' => ''
                                ],
                                'hyperthreading' => null,
                                'id' => '',
                                'instanceType' => '',
                                'logicalInterfaces' => [
                                                                [
                                                                                                                                'interfaceIndex' => 0,
                                                                                                                                'logicalNetworkInterfaces' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'defaultGateway' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ipAddress' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'network' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'networkType' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'name' => ''
                                                                ]
                                ],
                                'name' => '',
                                'networkConfig' => '',
                                'networkTemplate' => '',
                                'osImage' => '',
                                'privateNetwork' => [
                                                                
                                ],
                                'userNote' => ''
                ]
        ],
        'location' => '',
        'name' => '',
        'networks' => [
                [
                                'bandwidth' => '',
                                'cidr' => '',
                                'gcpService' => '',
                                'id' => '',
                                'jumboFramesEnabled' => null,
                                'name' => '',
                                'serviceCidr' => '',
                                'type' => '',
                                'userNote' => '',
                                'vlanAttachments' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'pairingKey' => ''
                                                                ]
                                ],
                                'vlanSameProject' => null
                ]
        ],
        'state' => '',
        'statusMessage' => '',
        'ticketId' => '',
        'updateTime' => '',
        'volumes' => [
                [
                                'gcpService' => '',
                                'id' => '',
                                'lunRanges' => [
                                                                [
                                                                                                                                'quantity' => 0,
                                                                                                                                'sizeGb' => 0
                                                                ]
                                ],
                                'machineIds' => [
                                                                
                                ],
                                'name' => '',
                                'nfsExports' => [
                                                                [
                                                                                                                                'allowDev' => null,
                                                                                                                                'allowSuid' => null,
                                                                                                                                'cidr' => '',
                                                                                                                                'machineId' => '',
                                                                                                                                'networkId' => '',
                                                                                                                                'noRootSquash' => null,
                                                                                                                                'permissions' => ''
                                                                ]
                                ],
                                'performanceTier' => '',
                                'protocol' => '',
                                'sizeGb' => 0,
                                'snapshotsEnabled' => null,
                                'storageAggregatePool' => '',
                                'type' => '',
                                'userNote' => ''
                ]
        ],
        'vpcScEnabled' => null
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:parent/provisioningConfigs:submit', [
  'body' => '{
  "email": "",
  "provisioningConfig": {
    "cloudConsoleUri": "",
    "customId": "",
    "email": "",
    "handoverServiceAccount": "",
    "instances": [
      {
        "accountNetworksEnabled": false,
        "clientNetwork": {
          "address": "",
          "existingNetworkId": "",
          "networkId": ""
        },
        "hyperthreading": false,
        "id": "",
        "instanceType": "",
        "logicalInterfaces": [
          {
            "interfaceIndex": 0,
            "logicalNetworkInterfaces": [
              {
                "defaultGateway": false,
                "id": "",
                "ipAddress": "",
                "network": "",
                "networkType": ""
              }
            ],
            "name": ""
          }
        ],
        "name": "",
        "networkConfig": "",
        "networkTemplate": "",
        "osImage": "",
        "privateNetwork": {},
        "userNote": ""
      }
    ],
    "location": "",
    "name": "",
    "networks": [
      {
        "bandwidth": "",
        "cidr": "",
        "gcpService": "",
        "id": "",
        "jumboFramesEnabled": false,
        "name": "",
        "serviceCidr": "",
        "type": "",
        "userNote": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": ""
          }
        ],
        "vlanSameProject": false
      }
    ],
    "state": "",
    "statusMessage": "",
    "ticketId": "",
    "updateTime": "",
    "volumes": [
      {
        "gcpService": "",
        "id": "",
        "lunRanges": [
          {
            "quantity": 0,
            "sizeGb": 0
          }
        ],
        "machineIds": [],
        "name": "",
        "nfsExports": [
          {
            "allowDev": false,
            "allowSuid": false,
            "cidr": "",
            "machineId": "",
            "networkId": "",
            "noRootSquash": false,
            "permissions": ""
          }
        ],
        "performanceTier": "",
        "protocol": "",
        "sizeGb": 0,
        "snapshotsEnabled": false,
        "storageAggregatePool": "",
        "type": "",
        "userNote": ""
      }
    ],
    "vpcScEnabled": false
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/provisioningConfigs:submit');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'email' => '',
  'provisioningConfig' => [
    'cloudConsoleUri' => '',
    'customId' => '',
    'email' => '',
    'handoverServiceAccount' => '',
    'instances' => [
        [
                'accountNetworksEnabled' => null,
                'clientNetwork' => [
                                'address' => '',
                                'existingNetworkId' => '',
                                'networkId' => ''
                ],
                'hyperthreading' => null,
                'id' => '',
                'instanceType' => '',
                'logicalInterfaces' => [
                                [
                                                                'interfaceIndex' => 0,
                                                                'logicalNetworkInterfaces' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'defaultGateway' => null,
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'ipAddress' => '',
                                                                                                                                                                                                                                                                'network' => '',
                                                                                                                                                                                                                                                                'networkType' => ''
                                                                                                                                ]
                                                                ],
                                                                'name' => ''
                                ]
                ],
                'name' => '',
                'networkConfig' => '',
                'networkTemplate' => '',
                'osImage' => '',
                'privateNetwork' => [
                                
                ],
                'userNote' => ''
        ]
    ],
    'location' => '',
    'name' => '',
    'networks' => [
        [
                'bandwidth' => '',
                'cidr' => '',
                'gcpService' => '',
                'id' => '',
                'jumboFramesEnabled' => null,
                'name' => '',
                'serviceCidr' => '',
                'type' => '',
                'userNote' => '',
                'vlanAttachments' => [
                                [
                                                                'id' => '',
                                                                'pairingKey' => ''
                                ]
                ],
                'vlanSameProject' => null
        ]
    ],
    'state' => '',
    'statusMessage' => '',
    'ticketId' => '',
    'updateTime' => '',
    'volumes' => [
        [
                'gcpService' => '',
                'id' => '',
                'lunRanges' => [
                                [
                                                                'quantity' => 0,
                                                                'sizeGb' => 0
                                ]
                ],
                'machineIds' => [
                                
                ],
                'name' => '',
                'nfsExports' => [
                                [
                                                                'allowDev' => null,
                                                                'allowSuid' => null,
                                                                'cidr' => '',
                                                                'machineId' => '',
                                                                'networkId' => '',
                                                                'noRootSquash' => null,
                                                                'permissions' => ''
                                ]
                ],
                'performanceTier' => '',
                'protocol' => '',
                'sizeGb' => 0,
                'snapshotsEnabled' => null,
                'storageAggregatePool' => '',
                'type' => '',
                'userNote' => ''
        ]
    ],
    'vpcScEnabled' => null
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'email' => '',
  'provisioningConfig' => [
    'cloudConsoleUri' => '',
    'customId' => '',
    'email' => '',
    'handoverServiceAccount' => '',
    'instances' => [
        [
                'accountNetworksEnabled' => null,
                'clientNetwork' => [
                                'address' => '',
                                'existingNetworkId' => '',
                                'networkId' => ''
                ],
                'hyperthreading' => null,
                'id' => '',
                'instanceType' => '',
                'logicalInterfaces' => [
                                [
                                                                'interfaceIndex' => 0,
                                                                'logicalNetworkInterfaces' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'defaultGateway' => null,
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'ipAddress' => '',
                                                                                                                                                                                                                                                                'network' => '',
                                                                                                                                                                                                                                                                'networkType' => ''
                                                                                                                                ]
                                                                ],
                                                                'name' => ''
                                ]
                ],
                'name' => '',
                'networkConfig' => '',
                'networkTemplate' => '',
                'osImage' => '',
                'privateNetwork' => [
                                
                ],
                'userNote' => ''
        ]
    ],
    'location' => '',
    'name' => '',
    'networks' => [
        [
                'bandwidth' => '',
                'cidr' => '',
                'gcpService' => '',
                'id' => '',
                'jumboFramesEnabled' => null,
                'name' => '',
                'serviceCidr' => '',
                'type' => '',
                'userNote' => '',
                'vlanAttachments' => [
                                [
                                                                'id' => '',
                                                                'pairingKey' => ''
                                ]
                ],
                'vlanSameProject' => null
        ]
    ],
    'state' => '',
    'statusMessage' => '',
    'ticketId' => '',
    'updateTime' => '',
    'volumes' => [
        [
                'gcpService' => '',
                'id' => '',
                'lunRanges' => [
                                [
                                                                'quantity' => 0,
                                                                'sizeGb' => 0
                                ]
                ],
                'machineIds' => [
                                
                ],
                'name' => '',
                'nfsExports' => [
                                [
                                                                'allowDev' => null,
                                                                'allowSuid' => null,
                                                                'cidr' => '',
                                                                'machineId' => '',
                                                                'networkId' => '',
                                                                'noRootSquash' => null,
                                                                'permissions' => ''
                                ]
                ],
                'performanceTier' => '',
                'protocol' => '',
                'sizeGb' => 0,
                'snapshotsEnabled' => null,
                'storageAggregatePool' => '',
                'type' => '',
                'userNote' => ''
        ]
    ],
    'vpcScEnabled' => null
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/:parent/provisioningConfigs:submit');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/provisioningConfigs:submit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "email": "",
  "provisioningConfig": {
    "cloudConsoleUri": "",
    "customId": "",
    "email": "",
    "handoverServiceAccount": "",
    "instances": [
      {
        "accountNetworksEnabled": false,
        "clientNetwork": {
          "address": "",
          "existingNetworkId": "",
          "networkId": ""
        },
        "hyperthreading": false,
        "id": "",
        "instanceType": "",
        "logicalInterfaces": [
          {
            "interfaceIndex": 0,
            "logicalNetworkInterfaces": [
              {
                "defaultGateway": false,
                "id": "",
                "ipAddress": "",
                "network": "",
                "networkType": ""
              }
            ],
            "name": ""
          }
        ],
        "name": "",
        "networkConfig": "",
        "networkTemplate": "",
        "osImage": "",
        "privateNetwork": {},
        "userNote": ""
      }
    ],
    "location": "",
    "name": "",
    "networks": [
      {
        "bandwidth": "",
        "cidr": "",
        "gcpService": "",
        "id": "",
        "jumboFramesEnabled": false,
        "name": "",
        "serviceCidr": "",
        "type": "",
        "userNote": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": ""
          }
        ],
        "vlanSameProject": false
      }
    ],
    "state": "",
    "statusMessage": "",
    "ticketId": "",
    "updateTime": "",
    "volumes": [
      {
        "gcpService": "",
        "id": "",
        "lunRanges": [
          {
            "quantity": 0,
            "sizeGb": 0
          }
        ],
        "machineIds": [],
        "name": "",
        "nfsExports": [
          {
            "allowDev": false,
            "allowSuid": false,
            "cidr": "",
            "machineId": "",
            "networkId": "",
            "noRootSquash": false,
            "permissions": ""
          }
        ],
        "performanceTier": "",
        "protocol": "",
        "sizeGb": 0,
        "snapshotsEnabled": false,
        "storageAggregatePool": "",
        "type": "",
        "userNote": ""
      }
    ],
    "vpcScEnabled": false
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/provisioningConfigs:submit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "email": "",
  "provisioningConfig": {
    "cloudConsoleUri": "",
    "customId": "",
    "email": "",
    "handoverServiceAccount": "",
    "instances": [
      {
        "accountNetworksEnabled": false,
        "clientNetwork": {
          "address": "",
          "existingNetworkId": "",
          "networkId": ""
        },
        "hyperthreading": false,
        "id": "",
        "instanceType": "",
        "logicalInterfaces": [
          {
            "interfaceIndex": 0,
            "logicalNetworkInterfaces": [
              {
                "defaultGateway": false,
                "id": "",
                "ipAddress": "",
                "network": "",
                "networkType": ""
              }
            ],
            "name": ""
          }
        ],
        "name": "",
        "networkConfig": "",
        "networkTemplate": "",
        "osImage": "",
        "privateNetwork": {},
        "userNote": ""
      }
    ],
    "location": "",
    "name": "",
    "networks": [
      {
        "bandwidth": "",
        "cidr": "",
        "gcpService": "",
        "id": "",
        "jumboFramesEnabled": false,
        "name": "",
        "serviceCidr": "",
        "type": "",
        "userNote": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": ""
          }
        ],
        "vlanSameProject": false
      }
    ],
    "state": "",
    "statusMessage": "",
    "ticketId": "",
    "updateTime": "",
    "volumes": [
      {
        "gcpService": "",
        "id": "",
        "lunRanges": [
          {
            "quantity": 0,
            "sizeGb": 0
          }
        ],
        "machineIds": [],
        "name": "",
        "nfsExports": [
          {
            "allowDev": false,
            "allowSuid": false,
            "cidr": "",
            "machineId": "",
            "networkId": "",
            "noRootSquash": false,
            "permissions": ""
          }
        ],
        "performanceTier": "",
        "protocol": "",
        "sizeGb": 0,
        "snapshotsEnabled": false,
        "storageAggregatePool": "",
        "type": "",
        "userNote": ""
      }
    ],
    "vpcScEnabled": false
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:parent/provisioningConfigs:submit", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/provisioningConfigs:submit"

payload = {
    "email": "",
    "provisioningConfig": {
        "cloudConsoleUri": "",
        "customId": "",
        "email": "",
        "handoverServiceAccount": "",
        "instances": [
            {
                "accountNetworksEnabled": False,
                "clientNetwork": {
                    "address": "",
                    "existingNetworkId": "",
                    "networkId": ""
                },
                "hyperthreading": False,
                "id": "",
                "instanceType": "",
                "logicalInterfaces": [
                    {
                        "interfaceIndex": 0,
                        "logicalNetworkInterfaces": [
                            {
                                "defaultGateway": False,
                                "id": "",
                                "ipAddress": "",
                                "network": "",
                                "networkType": ""
                            }
                        ],
                        "name": ""
                    }
                ],
                "name": "",
                "networkConfig": "",
                "networkTemplate": "",
                "osImage": "",
                "privateNetwork": {},
                "userNote": ""
            }
        ],
        "location": "",
        "name": "",
        "networks": [
            {
                "bandwidth": "",
                "cidr": "",
                "gcpService": "",
                "id": "",
                "jumboFramesEnabled": False,
                "name": "",
                "serviceCidr": "",
                "type": "",
                "userNote": "",
                "vlanAttachments": [
                    {
                        "id": "",
                        "pairingKey": ""
                    }
                ],
                "vlanSameProject": False
            }
        ],
        "state": "",
        "statusMessage": "",
        "ticketId": "",
        "updateTime": "",
        "volumes": [
            {
                "gcpService": "",
                "id": "",
                "lunRanges": [
                    {
                        "quantity": 0,
                        "sizeGb": 0
                    }
                ],
                "machineIds": [],
                "name": "",
                "nfsExports": [
                    {
                        "allowDev": False,
                        "allowSuid": False,
                        "cidr": "",
                        "machineId": "",
                        "networkId": "",
                        "noRootSquash": False,
                        "permissions": ""
                    }
                ],
                "performanceTier": "",
                "protocol": "",
                "sizeGb": 0,
                "snapshotsEnabled": False,
                "storageAggregatePool": "",
                "type": "",
                "userNote": ""
            }
        ],
        "vpcScEnabled": False
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/provisioningConfigs:submit"

payload <- "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/provisioningConfigs:submit")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:parent/provisioningConfigs:submit') do |req|
  req.body = "{\n  \"email\": \"\",\n  \"provisioningConfig\": {\n    \"cloudConsoleUri\": \"\",\n    \"customId\": \"\",\n    \"email\": \"\",\n    \"handoverServiceAccount\": \"\",\n    \"instances\": [\n      {\n        \"accountNetworksEnabled\": false,\n        \"clientNetwork\": {\n          \"address\": \"\",\n          \"existingNetworkId\": \"\",\n          \"networkId\": \"\"\n        },\n        \"hyperthreading\": false,\n        \"id\": \"\",\n        \"instanceType\": \"\",\n        \"logicalInterfaces\": [\n          {\n            \"interfaceIndex\": 0,\n            \"logicalNetworkInterfaces\": [\n              {\n                \"defaultGateway\": false,\n                \"id\": \"\",\n                \"ipAddress\": \"\",\n                \"network\": \"\",\n                \"networkType\": \"\"\n              }\n            ],\n            \"name\": \"\"\n          }\n        ],\n        \"name\": \"\",\n        \"networkConfig\": \"\",\n        \"networkTemplate\": \"\",\n        \"osImage\": \"\",\n        \"privateNetwork\": {},\n        \"userNote\": \"\"\n      }\n    ],\n    \"location\": \"\",\n    \"name\": \"\",\n    \"networks\": [\n      {\n        \"bandwidth\": \"\",\n        \"cidr\": \"\",\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"jumboFramesEnabled\": false,\n        \"name\": \"\",\n        \"serviceCidr\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\",\n        \"vlanAttachments\": [\n          {\n            \"id\": \"\",\n            \"pairingKey\": \"\"\n          }\n        ],\n        \"vlanSameProject\": false\n      }\n    ],\n    \"state\": \"\",\n    \"statusMessage\": \"\",\n    \"ticketId\": \"\",\n    \"updateTime\": \"\",\n    \"volumes\": [\n      {\n        \"gcpService\": \"\",\n        \"id\": \"\",\n        \"lunRanges\": [\n          {\n            \"quantity\": 0,\n            \"sizeGb\": 0\n          }\n        ],\n        \"machineIds\": [],\n        \"name\": \"\",\n        \"nfsExports\": [\n          {\n            \"allowDev\": false,\n            \"allowSuid\": false,\n            \"cidr\": \"\",\n            \"machineId\": \"\",\n            \"networkId\": \"\",\n            \"noRootSquash\": false,\n            \"permissions\": \"\"\n          }\n        ],\n        \"performanceTier\": \"\",\n        \"protocol\": \"\",\n        \"sizeGb\": 0,\n        \"snapshotsEnabled\": false,\n        \"storageAggregatePool\": \"\",\n        \"type\": \"\",\n        \"userNote\": \"\"\n      }\n    ],\n    \"vpcScEnabled\": false\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/provisioningConfigs:submit";

    let payload = json!({
        "email": "",
        "provisioningConfig": json!({
            "cloudConsoleUri": "",
            "customId": "",
            "email": "",
            "handoverServiceAccount": "",
            "instances": (
                json!({
                    "accountNetworksEnabled": false,
                    "clientNetwork": json!({
                        "address": "",
                        "existingNetworkId": "",
                        "networkId": ""
                    }),
                    "hyperthreading": false,
                    "id": "",
                    "instanceType": "",
                    "logicalInterfaces": (
                        json!({
                            "interfaceIndex": 0,
                            "logicalNetworkInterfaces": (
                                json!({
                                    "defaultGateway": false,
                                    "id": "",
                                    "ipAddress": "",
                                    "network": "",
                                    "networkType": ""
                                })
                            ),
                            "name": ""
                        })
                    ),
                    "name": "",
                    "networkConfig": "",
                    "networkTemplate": "",
                    "osImage": "",
                    "privateNetwork": json!({}),
                    "userNote": ""
                })
            ),
            "location": "",
            "name": "",
            "networks": (
                json!({
                    "bandwidth": "",
                    "cidr": "",
                    "gcpService": "",
                    "id": "",
                    "jumboFramesEnabled": false,
                    "name": "",
                    "serviceCidr": "",
                    "type": "",
                    "userNote": "",
                    "vlanAttachments": (
                        json!({
                            "id": "",
                            "pairingKey": ""
                        })
                    ),
                    "vlanSameProject": false
                })
            ),
            "state": "",
            "statusMessage": "",
            "ticketId": "",
            "updateTime": "",
            "volumes": (
                json!({
                    "gcpService": "",
                    "id": "",
                    "lunRanges": (
                        json!({
                            "quantity": 0,
                            "sizeGb": 0
                        })
                    ),
                    "machineIds": (),
                    "name": "",
                    "nfsExports": (
                        json!({
                            "allowDev": false,
                            "allowSuid": false,
                            "cidr": "",
                            "machineId": "",
                            "networkId": "",
                            "noRootSquash": false,
                            "permissions": ""
                        })
                    ),
                    "performanceTier": "",
                    "protocol": "",
                    "sizeGb": 0,
                    "snapshotsEnabled": false,
                    "storageAggregatePool": "",
                    "type": "",
                    "userNote": ""
                })
            ),
            "vpcScEnabled": false
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:parent/provisioningConfigs:submit \
  --header 'content-type: application/json' \
  --data '{
  "email": "",
  "provisioningConfig": {
    "cloudConsoleUri": "",
    "customId": "",
    "email": "",
    "handoverServiceAccount": "",
    "instances": [
      {
        "accountNetworksEnabled": false,
        "clientNetwork": {
          "address": "",
          "existingNetworkId": "",
          "networkId": ""
        },
        "hyperthreading": false,
        "id": "",
        "instanceType": "",
        "logicalInterfaces": [
          {
            "interfaceIndex": 0,
            "logicalNetworkInterfaces": [
              {
                "defaultGateway": false,
                "id": "",
                "ipAddress": "",
                "network": "",
                "networkType": ""
              }
            ],
            "name": ""
          }
        ],
        "name": "",
        "networkConfig": "",
        "networkTemplate": "",
        "osImage": "",
        "privateNetwork": {},
        "userNote": ""
      }
    ],
    "location": "",
    "name": "",
    "networks": [
      {
        "bandwidth": "",
        "cidr": "",
        "gcpService": "",
        "id": "",
        "jumboFramesEnabled": false,
        "name": "",
        "serviceCidr": "",
        "type": "",
        "userNote": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": ""
          }
        ],
        "vlanSameProject": false
      }
    ],
    "state": "",
    "statusMessage": "",
    "ticketId": "",
    "updateTime": "",
    "volumes": [
      {
        "gcpService": "",
        "id": "",
        "lunRanges": [
          {
            "quantity": 0,
            "sizeGb": 0
          }
        ],
        "machineIds": [],
        "name": "",
        "nfsExports": [
          {
            "allowDev": false,
            "allowSuid": false,
            "cidr": "",
            "machineId": "",
            "networkId": "",
            "noRootSquash": false,
            "permissions": ""
          }
        ],
        "performanceTier": "",
        "protocol": "",
        "sizeGb": 0,
        "snapshotsEnabled": false,
        "storageAggregatePool": "",
        "type": "",
        "userNote": ""
      }
    ],
    "vpcScEnabled": false
  }
}'
echo '{
  "email": "",
  "provisioningConfig": {
    "cloudConsoleUri": "",
    "customId": "",
    "email": "",
    "handoverServiceAccount": "",
    "instances": [
      {
        "accountNetworksEnabled": false,
        "clientNetwork": {
          "address": "",
          "existingNetworkId": "",
          "networkId": ""
        },
        "hyperthreading": false,
        "id": "",
        "instanceType": "",
        "logicalInterfaces": [
          {
            "interfaceIndex": 0,
            "logicalNetworkInterfaces": [
              {
                "defaultGateway": false,
                "id": "",
                "ipAddress": "",
                "network": "",
                "networkType": ""
              }
            ],
            "name": ""
          }
        ],
        "name": "",
        "networkConfig": "",
        "networkTemplate": "",
        "osImage": "",
        "privateNetwork": {},
        "userNote": ""
      }
    ],
    "location": "",
    "name": "",
    "networks": [
      {
        "bandwidth": "",
        "cidr": "",
        "gcpService": "",
        "id": "",
        "jumboFramesEnabled": false,
        "name": "",
        "serviceCidr": "",
        "type": "",
        "userNote": "",
        "vlanAttachments": [
          {
            "id": "",
            "pairingKey": ""
          }
        ],
        "vlanSameProject": false
      }
    ],
    "state": "",
    "statusMessage": "",
    "ticketId": "",
    "updateTime": "",
    "volumes": [
      {
        "gcpService": "",
        "id": "",
        "lunRanges": [
          {
            "quantity": 0,
            "sizeGb": 0
          }
        ],
        "machineIds": [],
        "name": "",
        "nfsExports": [
          {
            "allowDev": false,
            "allowSuid": false,
            "cidr": "",
            "machineId": "",
            "networkId": "",
            "noRootSquash": false,
            "permissions": ""
          }
        ],
        "performanceTier": "",
        "protocol": "",
        "sizeGb": 0,
        "snapshotsEnabled": false,
        "storageAggregatePool": "",
        "type": "",
        "userNote": ""
      }
    ],
    "vpcScEnabled": false
  }
}' |  \
  http POST {{baseUrl}}/v2/:parent/provisioningConfigs:submit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "email": "",\n  "provisioningConfig": {\n    "cloudConsoleUri": "",\n    "customId": "",\n    "email": "",\n    "handoverServiceAccount": "",\n    "instances": [\n      {\n        "accountNetworksEnabled": false,\n        "clientNetwork": {\n          "address": "",\n          "existingNetworkId": "",\n          "networkId": ""\n        },\n        "hyperthreading": false,\n        "id": "",\n        "instanceType": "",\n        "logicalInterfaces": [\n          {\n            "interfaceIndex": 0,\n            "logicalNetworkInterfaces": [\n              {\n                "defaultGateway": false,\n                "id": "",\n                "ipAddress": "",\n                "network": "",\n                "networkType": ""\n              }\n            ],\n            "name": ""\n          }\n        ],\n        "name": "",\n        "networkConfig": "",\n        "networkTemplate": "",\n        "osImage": "",\n        "privateNetwork": {},\n        "userNote": ""\n      }\n    ],\n    "location": "",\n    "name": "",\n    "networks": [\n      {\n        "bandwidth": "",\n        "cidr": "",\n        "gcpService": "",\n        "id": "",\n        "jumboFramesEnabled": false,\n        "name": "",\n        "serviceCidr": "",\n        "type": "",\n        "userNote": "",\n        "vlanAttachments": [\n          {\n            "id": "",\n            "pairingKey": ""\n          }\n        ],\n        "vlanSameProject": false\n      }\n    ],\n    "state": "",\n    "statusMessage": "",\n    "ticketId": "",\n    "updateTime": "",\n    "volumes": [\n      {\n        "gcpService": "",\n        "id": "",\n        "lunRanges": [\n          {\n            "quantity": 0,\n            "sizeGb": 0\n          }\n        ],\n        "machineIds": [],\n        "name": "",\n        "nfsExports": [\n          {\n            "allowDev": false,\n            "allowSuid": false,\n            "cidr": "",\n            "machineId": "",\n            "networkId": "",\n            "noRootSquash": false,\n            "permissions": ""\n          }\n        ],\n        "performanceTier": "",\n        "protocol": "",\n        "sizeGb": 0,\n        "snapshotsEnabled": false,\n        "storageAggregatePool": "",\n        "type": "",\n        "userNote": ""\n      }\n    ],\n    "vpcScEnabled": false\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v2/:parent/provisioningConfigs:submit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "email": "",
  "provisioningConfig": [
    "cloudConsoleUri": "",
    "customId": "",
    "email": "",
    "handoverServiceAccount": "",
    "instances": [
      [
        "accountNetworksEnabled": false,
        "clientNetwork": [
          "address": "",
          "existingNetworkId": "",
          "networkId": ""
        ],
        "hyperthreading": false,
        "id": "",
        "instanceType": "",
        "logicalInterfaces": [
          [
            "interfaceIndex": 0,
            "logicalNetworkInterfaces": [
              [
                "defaultGateway": false,
                "id": "",
                "ipAddress": "",
                "network": "",
                "networkType": ""
              ]
            ],
            "name": ""
          ]
        ],
        "name": "",
        "networkConfig": "",
        "networkTemplate": "",
        "osImage": "",
        "privateNetwork": [],
        "userNote": ""
      ]
    ],
    "location": "",
    "name": "",
    "networks": [
      [
        "bandwidth": "",
        "cidr": "",
        "gcpService": "",
        "id": "",
        "jumboFramesEnabled": false,
        "name": "",
        "serviceCidr": "",
        "type": "",
        "userNote": "",
        "vlanAttachments": [
          [
            "id": "",
            "pairingKey": ""
          ]
        ],
        "vlanSameProject": false
      ]
    ],
    "state": "",
    "statusMessage": "",
    "ticketId": "",
    "updateTime": "",
    "volumes": [
      [
        "gcpService": "",
        "id": "",
        "lunRanges": [
          [
            "quantity": 0,
            "sizeGb": 0
          ]
        ],
        "machineIds": [],
        "name": "",
        "nfsExports": [
          [
            "allowDev": false,
            "allowSuid": false,
            "cidr": "",
            "machineId": "",
            "networkId": "",
            "noRootSquash": false,
            "permissions": ""
          ]
        ],
        "performanceTier": "",
        "protocol": "",
        "sizeGb": 0,
        "snapshotsEnabled": false,
        "storageAggregatePool": "",
        "type": "",
        "userNote": ""
      ]
    ],
    "vpcScEnabled": false
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/provisioningConfigs:submit")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.provisioningQuotas.list
{{baseUrl}}/v2/:parent/provisioningQuotas
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/provisioningQuotas");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:parent/provisioningQuotas")
require "http/client"

url = "{{baseUrl}}/v2/:parent/provisioningQuotas"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/provisioningQuotas"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/provisioningQuotas");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/provisioningQuotas"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:parent/provisioningQuotas HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:parent/provisioningQuotas")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/provisioningQuotas"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/provisioningQuotas")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:parent/provisioningQuotas")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:parent/provisioningQuotas');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/:parent/provisioningQuotas'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/provisioningQuotas';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/provisioningQuotas',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/provisioningQuotas")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/provisioningQuotas',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/:parent/provisioningQuotas'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:parent/provisioningQuotas');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/:parent/provisioningQuotas'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/provisioningQuotas';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/provisioningQuotas"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/provisioningQuotas" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/provisioningQuotas",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:parent/provisioningQuotas');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/provisioningQuotas');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:parent/provisioningQuotas');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/provisioningQuotas' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/provisioningQuotas' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:parent/provisioningQuotas")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/provisioningQuotas"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/provisioningQuotas"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/provisioningQuotas")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:parent/provisioningQuotas') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/provisioningQuotas";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:parent/provisioningQuotas
http GET {{baseUrl}}/v2/:parent/provisioningQuotas
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:parent/provisioningQuotas
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/provisioningQuotas")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.sshKeys.create
{{baseUrl}}/v2/:parent/sshKeys
QUERY PARAMS

parent
BODY json

{
  "name": "",
  "publicKey": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/sshKeys");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:parent/sshKeys" {:content-type :json
                                                               :form-params {:name ""
                                                                             :publicKey ""}})
require "http/client"

url = "{{baseUrl}}/v2/:parent/sshKeys"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/sshKeys"),
    Content = new StringContent("{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/sshKeys");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/sshKeys"

	payload := strings.NewReader("{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:parent/sshKeys HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 35

{
  "name": "",
  "publicKey": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:parent/sshKeys")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/sshKeys"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/sshKeys")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:parent/sshKeys")
  .header("content-type", "application/json")
  .body("{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  name: '',
  publicKey: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:parent/sshKeys');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/sshKeys',
  headers: {'content-type': 'application/json'},
  data: {name: '', publicKey: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/sshKeys';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","publicKey":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/sshKeys',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "name": "",\n  "publicKey": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/sshKeys")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/sshKeys',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({name: '', publicKey: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/sshKeys',
  headers: {'content-type': 'application/json'},
  body: {name: '', publicKey: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:parent/sshKeys');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  name: '',
  publicKey: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/sshKeys',
  headers: {'content-type': 'application/json'},
  data: {name: '', publicKey: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/sshKeys';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","publicKey":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"name": @"",
                              @"publicKey": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/sshKeys"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/sshKeys" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/sshKeys",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'name' => '',
    'publicKey' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:parent/sshKeys', [
  'body' => '{
  "name": "",
  "publicKey": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/sshKeys');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'name' => '',
  'publicKey' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'name' => '',
  'publicKey' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/:parent/sshKeys');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/sshKeys' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "publicKey": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/sshKeys' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "publicKey": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:parent/sshKeys", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/sshKeys"

payload = {
    "name": "",
    "publicKey": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/sshKeys"

payload <- "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/sshKeys")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:parent/sshKeys') do |req|
  req.body = "{\n  \"name\": \"\",\n  \"publicKey\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/sshKeys";

    let payload = json!({
        "name": "",
        "publicKey": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:parent/sshKeys \
  --header 'content-type: application/json' \
  --data '{
  "name": "",
  "publicKey": ""
}'
echo '{
  "name": "",
  "publicKey": ""
}' |  \
  http POST {{baseUrl}}/v2/:parent/sshKeys \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "name": "",\n  "publicKey": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/:parent/sshKeys
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "name": "",
  "publicKey": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/sshKeys")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.sshKeys.list
{{baseUrl}}/v2/:parent/sshKeys
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/sshKeys");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:parent/sshKeys")
require "http/client"

url = "{{baseUrl}}/v2/:parent/sshKeys"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/sshKeys"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/sshKeys");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/sshKeys"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:parent/sshKeys HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:parent/sshKeys")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/sshKeys"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/sshKeys")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:parent/sshKeys")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:parent/sshKeys');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/sshKeys'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/sshKeys';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/sshKeys',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/sshKeys")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/sshKeys',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/sshKeys'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:parent/sshKeys');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/sshKeys'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/sshKeys';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/sshKeys"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/sshKeys" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/sshKeys",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:parent/sshKeys');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/sshKeys');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:parent/sshKeys');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/sshKeys' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/sshKeys' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:parent/sshKeys")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/sshKeys"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/sshKeys"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/sshKeys")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:parent/sshKeys') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/sshKeys";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:parent/sshKeys
http GET {{baseUrl}}/v2/:parent/sshKeys
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:parent/sshKeys
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/sshKeys")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.volumes.list
{{baseUrl}}/v2/:parent/volumes
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/volumes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:parent/volumes")
require "http/client"

url = "{{baseUrl}}/v2/:parent/volumes"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/volumes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/volumes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/volumes"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:parent/volumes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:parent/volumes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/volumes"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/volumes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:parent/volumes")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:parent/volumes');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/volumes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/volumes';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/volumes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/volumes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/volumes',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/volumes'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:parent/volumes');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/volumes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/volumes';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/volumes"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/volumes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/volumes",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:parent/volumes');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/volumes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:parent/volumes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/volumes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/volumes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:parent/volumes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/volumes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/volumes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/volumes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:parent/volumes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/volumes";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:parent/volumes
http GET {{baseUrl}}/v2/:parent/volumes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:parent/volumes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/volumes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.volumes.luns.evict
{{baseUrl}}/v2/:name:evict
QUERY PARAMS

name
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name:evict");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:name:evict" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v2/:name:evict"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:name:evict"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name:evict");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name:evict"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:name:evict HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:name:evict")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name:evict"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name:evict")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:name:evict")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:name:evict');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:evict',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name:evict';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name:evict',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name:evict")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name:evict',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:evict',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:name:evict');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:evict',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name:evict';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name:evict"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name:evict" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name:evict",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:name:evict', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name:evict');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v2/:name:evict');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name:evict' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name:evict' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:name:evict", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name:evict"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name:evict"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name:evict")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:name:evict') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name:evict";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:name:evict \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v2/:name:evict \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v2/:name:evict
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name:evict")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.volumes.luns.list
{{baseUrl}}/v2/:parent/luns
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/luns");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:parent/luns")
require "http/client"

url = "{{baseUrl}}/v2/:parent/luns"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/luns"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/luns");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/luns"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:parent/luns HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:parent/luns")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/luns"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/luns")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:parent/luns")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:parent/luns');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/luns'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/luns';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/luns',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/luns")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/luns',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/luns'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:parent/luns');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/luns'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/luns';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/luns"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/luns" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/luns",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:parent/luns');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/luns');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:parent/luns');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/luns' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/luns' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:parent/luns")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/luns"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/luns"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/luns")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:parent/luns') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/luns";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:parent/luns
http GET {{baseUrl}}/v2/:parent/luns
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:parent/luns
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/luns")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PATCH baremetalsolution.projects.locations.volumes.patch
{{baseUrl}}/v2/:name
QUERY PARAMS

name
BODY json

{
  "attached": false,
  "autoGrownSizeGib": "",
  "bootVolume": false,
  "currentSizeGib": "",
  "emergencySizeGib": "",
  "expireTime": "",
  "id": "",
  "instances": [],
  "labels": {},
  "maxSizeGib": "",
  "name": "",
  "notes": "",
  "originallyRequestedSizeGib": "",
  "performanceTier": "",
  "pod": "",
  "protocol": "",
  "remainingSpaceGib": "",
  "requestedSizeGib": "",
  "snapshotAutoDeleteBehavior": "",
  "snapshotEnabled": false,
  "snapshotReservationDetail": {
    "reservedSpaceGib": "",
    "reservedSpacePercent": 0,
    "reservedSpaceRemainingGib": "",
    "reservedSpaceUsedPercent": 0
  },
  "snapshotSchedulePolicy": "",
  "state": "",
  "storageAggregatePool": "",
  "storageType": "",
  "workloadProfile": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/:name" {:content-type :json
                                                      :form-params {:attached false
                                                                    :autoGrownSizeGib ""
                                                                    :bootVolume false
                                                                    :currentSizeGib ""
                                                                    :emergencySizeGib ""
                                                                    :expireTime ""
                                                                    :id ""
                                                                    :instances []
                                                                    :labels {}
                                                                    :maxSizeGib ""
                                                                    :name ""
                                                                    :notes ""
                                                                    :originallyRequestedSizeGib ""
                                                                    :performanceTier ""
                                                                    :pod ""
                                                                    :protocol ""
                                                                    :remainingSpaceGib ""
                                                                    :requestedSizeGib ""
                                                                    :snapshotAutoDeleteBehavior ""
                                                                    :snapshotEnabled false
                                                                    :snapshotReservationDetail {:reservedSpaceGib ""
                                                                                                :reservedSpacePercent 0
                                                                                                :reservedSpaceRemainingGib ""
                                                                                                :reservedSpaceUsedPercent 0}
                                                                    :snapshotSchedulePolicy ""
                                                                    :state ""
                                                                    :storageAggregatePool ""
                                                                    :storageType ""
                                                                    :workloadProfile ""}})
require "http/client"

url = "{{baseUrl}}/v2/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v2/:name"),
    Content = new StringContent("{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name"

	payload := strings.NewReader("{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/v2/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 738

{
  "attached": false,
  "autoGrownSizeGib": "",
  "bootVolume": false,
  "currentSizeGib": "",
  "emergencySizeGib": "",
  "expireTime": "",
  "id": "",
  "instances": [],
  "labels": {},
  "maxSizeGib": "",
  "name": "",
  "notes": "",
  "originallyRequestedSizeGib": "",
  "performanceTier": "",
  "pod": "",
  "protocol": "",
  "remainingSpaceGib": "",
  "requestedSizeGib": "",
  "snapshotAutoDeleteBehavior": "",
  "snapshotEnabled": false,
  "snapshotReservationDetail": {
    "reservedSpaceGib": "",
    "reservedSpacePercent": 0,
    "reservedSpaceRemainingGib": "",
    "reservedSpaceUsedPercent": 0
  },
  "snapshotSchedulePolicy": "",
  "state": "",
  "storageAggregatePool": "",
  "storageType": "",
  "workloadProfile": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/:name")
  .header("content-type", "application/json")
  .body("{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attached: false,
  autoGrownSizeGib: '',
  bootVolume: false,
  currentSizeGib: '',
  emergencySizeGib: '',
  expireTime: '',
  id: '',
  instances: [],
  labels: {},
  maxSizeGib: '',
  name: '',
  notes: '',
  originallyRequestedSizeGib: '',
  performanceTier: '',
  pod: '',
  protocol: '',
  remainingSpaceGib: '',
  requestedSizeGib: '',
  snapshotAutoDeleteBehavior: '',
  snapshotEnabled: false,
  snapshotReservationDetail: {
    reservedSpaceGib: '',
    reservedSpacePercent: 0,
    reservedSpaceRemainingGib: '',
    reservedSpaceUsedPercent: 0
  },
  snapshotSchedulePolicy: '',
  state: '',
  storageAggregatePool: '',
  storageType: '',
  workloadProfile: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/:name');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/:name',
  headers: {'content-type': 'application/json'},
  data: {
    attached: false,
    autoGrownSizeGib: '',
    bootVolume: false,
    currentSizeGib: '',
    emergencySizeGib: '',
    expireTime: '',
    id: '',
    instances: [],
    labels: {},
    maxSizeGib: '',
    name: '',
    notes: '',
    originallyRequestedSizeGib: '',
    performanceTier: '',
    pod: '',
    protocol: '',
    remainingSpaceGib: '',
    requestedSizeGib: '',
    snapshotAutoDeleteBehavior: '',
    snapshotEnabled: false,
    snapshotReservationDetail: {
      reservedSpaceGib: '',
      reservedSpacePercent: 0,
      reservedSpaceRemainingGib: '',
      reservedSpaceUsedPercent: 0
    },
    snapshotSchedulePolicy: '',
    state: '',
    storageAggregatePool: '',
    storageType: '',
    workloadProfile: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attached":false,"autoGrownSizeGib":"","bootVolume":false,"currentSizeGib":"","emergencySizeGib":"","expireTime":"","id":"","instances":[],"labels":{},"maxSizeGib":"","name":"","notes":"","originallyRequestedSizeGib":"","performanceTier":"","pod":"","protocol":"","remainingSpaceGib":"","requestedSizeGib":"","snapshotAutoDeleteBehavior":"","snapshotEnabled":false,"snapshotReservationDetail":{"reservedSpaceGib":"","reservedSpacePercent":0,"reservedSpaceRemainingGib":"","reservedSpaceUsedPercent":0},"snapshotSchedulePolicy":"","state":"","storageAggregatePool":"","storageType":"","workloadProfile":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attached": false,\n  "autoGrownSizeGib": "",\n  "bootVolume": false,\n  "currentSizeGib": "",\n  "emergencySizeGib": "",\n  "expireTime": "",\n  "id": "",\n  "instances": [],\n  "labels": {},\n  "maxSizeGib": "",\n  "name": "",\n  "notes": "",\n  "originallyRequestedSizeGib": "",\n  "performanceTier": "",\n  "pod": "",\n  "protocol": "",\n  "remainingSpaceGib": "",\n  "requestedSizeGib": "",\n  "snapshotAutoDeleteBehavior": "",\n  "snapshotEnabled": false,\n  "snapshotReservationDetail": {\n    "reservedSpaceGib": "",\n    "reservedSpacePercent": 0,\n    "reservedSpaceRemainingGib": "",\n    "reservedSpaceUsedPercent": 0\n  },\n  "snapshotSchedulePolicy": "",\n  "state": "",\n  "storageAggregatePool": "",\n  "storageType": "",\n  "workloadProfile": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  attached: false,
  autoGrownSizeGib: '',
  bootVolume: false,
  currentSizeGib: '',
  emergencySizeGib: '',
  expireTime: '',
  id: '',
  instances: [],
  labels: {},
  maxSizeGib: '',
  name: '',
  notes: '',
  originallyRequestedSizeGib: '',
  performanceTier: '',
  pod: '',
  protocol: '',
  remainingSpaceGib: '',
  requestedSizeGib: '',
  snapshotAutoDeleteBehavior: '',
  snapshotEnabled: false,
  snapshotReservationDetail: {
    reservedSpaceGib: '',
    reservedSpacePercent: 0,
    reservedSpaceRemainingGib: '',
    reservedSpaceUsedPercent: 0
  },
  snapshotSchedulePolicy: '',
  state: '',
  storageAggregatePool: '',
  storageType: '',
  workloadProfile: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/:name',
  headers: {'content-type': 'application/json'},
  body: {
    attached: false,
    autoGrownSizeGib: '',
    bootVolume: false,
    currentSizeGib: '',
    emergencySizeGib: '',
    expireTime: '',
    id: '',
    instances: [],
    labels: {},
    maxSizeGib: '',
    name: '',
    notes: '',
    originallyRequestedSizeGib: '',
    performanceTier: '',
    pod: '',
    protocol: '',
    remainingSpaceGib: '',
    requestedSizeGib: '',
    snapshotAutoDeleteBehavior: '',
    snapshotEnabled: false,
    snapshotReservationDetail: {
      reservedSpaceGib: '',
      reservedSpacePercent: 0,
      reservedSpaceRemainingGib: '',
      reservedSpaceUsedPercent: 0
    },
    snapshotSchedulePolicy: '',
    state: '',
    storageAggregatePool: '',
    storageType: '',
    workloadProfile: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/v2/:name');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attached: false,
  autoGrownSizeGib: '',
  bootVolume: false,
  currentSizeGib: '',
  emergencySizeGib: '',
  expireTime: '',
  id: '',
  instances: [],
  labels: {},
  maxSizeGib: '',
  name: '',
  notes: '',
  originallyRequestedSizeGib: '',
  performanceTier: '',
  pod: '',
  protocol: '',
  remainingSpaceGib: '',
  requestedSizeGib: '',
  snapshotAutoDeleteBehavior: '',
  snapshotEnabled: false,
  snapshotReservationDetail: {
    reservedSpaceGib: '',
    reservedSpacePercent: 0,
    reservedSpaceRemainingGib: '',
    reservedSpaceUsedPercent: 0
  },
  snapshotSchedulePolicy: '',
  state: '',
  storageAggregatePool: '',
  storageType: '',
  workloadProfile: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/:name',
  headers: {'content-type': 'application/json'},
  data: {
    attached: false,
    autoGrownSizeGib: '',
    bootVolume: false,
    currentSizeGib: '',
    emergencySizeGib: '',
    expireTime: '',
    id: '',
    instances: [],
    labels: {},
    maxSizeGib: '',
    name: '',
    notes: '',
    originallyRequestedSizeGib: '',
    performanceTier: '',
    pod: '',
    protocol: '',
    remainingSpaceGib: '',
    requestedSizeGib: '',
    snapshotAutoDeleteBehavior: '',
    snapshotEnabled: false,
    snapshotReservationDetail: {
      reservedSpaceGib: '',
      reservedSpacePercent: 0,
      reservedSpaceRemainingGib: '',
      reservedSpaceUsedPercent: 0
    },
    snapshotSchedulePolicy: '',
    state: '',
    storageAggregatePool: '',
    storageType: '',
    workloadProfile: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"attached":false,"autoGrownSizeGib":"","bootVolume":false,"currentSizeGib":"","emergencySizeGib":"","expireTime":"","id":"","instances":[],"labels":{},"maxSizeGib":"","name":"","notes":"","originallyRequestedSizeGib":"","performanceTier":"","pod":"","protocol":"","remainingSpaceGib":"","requestedSizeGib":"","snapshotAutoDeleteBehavior":"","snapshotEnabled":false,"snapshotReservationDetail":{"reservedSpaceGib":"","reservedSpacePercent":0,"reservedSpaceRemainingGib":"","reservedSpaceUsedPercent":0},"snapshotSchedulePolicy":"","state":"","storageAggregatePool":"","storageType":"","workloadProfile":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"attached": @NO,
                              @"autoGrownSizeGib": @"",
                              @"bootVolume": @NO,
                              @"currentSizeGib": @"",
                              @"emergencySizeGib": @"",
                              @"expireTime": @"",
                              @"id": @"",
                              @"instances": @[  ],
                              @"labels": @{  },
                              @"maxSizeGib": @"",
                              @"name": @"",
                              @"notes": @"",
                              @"originallyRequestedSizeGib": @"",
                              @"performanceTier": @"",
                              @"pod": @"",
                              @"protocol": @"",
                              @"remainingSpaceGib": @"",
                              @"requestedSizeGib": @"",
                              @"snapshotAutoDeleteBehavior": @"",
                              @"snapshotEnabled": @NO,
                              @"snapshotReservationDetail": @{ @"reservedSpaceGib": @"", @"reservedSpacePercent": @0, @"reservedSpaceRemainingGib": @"", @"reservedSpaceUsedPercent": @0 },
                              @"snapshotSchedulePolicy": @"",
                              @"state": @"",
                              @"storageAggregatePool": @"",
                              @"storageType": @"",
                              @"workloadProfile": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'attached' => null,
    'autoGrownSizeGib' => '',
    'bootVolume' => null,
    'currentSizeGib' => '',
    'emergencySizeGib' => '',
    'expireTime' => '',
    'id' => '',
    'instances' => [
        
    ],
    'labels' => [
        
    ],
    'maxSizeGib' => '',
    'name' => '',
    'notes' => '',
    'originallyRequestedSizeGib' => '',
    'performanceTier' => '',
    'pod' => '',
    'protocol' => '',
    'remainingSpaceGib' => '',
    'requestedSizeGib' => '',
    'snapshotAutoDeleteBehavior' => '',
    'snapshotEnabled' => null,
    'snapshotReservationDetail' => [
        'reservedSpaceGib' => '',
        'reservedSpacePercent' => 0,
        'reservedSpaceRemainingGib' => '',
        'reservedSpaceUsedPercent' => 0
    ],
    'snapshotSchedulePolicy' => '',
    'state' => '',
    'storageAggregatePool' => '',
    'storageType' => '',
    'workloadProfile' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/v2/:name', [
  'body' => '{
  "attached": false,
  "autoGrownSizeGib": "",
  "bootVolume": false,
  "currentSizeGib": "",
  "emergencySizeGib": "",
  "expireTime": "",
  "id": "",
  "instances": [],
  "labels": {},
  "maxSizeGib": "",
  "name": "",
  "notes": "",
  "originallyRequestedSizeGib": "",
  "performanceTier": "",
  "pod": "",
  "protocol": "",
  "remainingSpaceGib": "",
  "requestedSizeGib": "",
  "snapshotAutoDeleteBehavior": "",
  "snapshotEnabled": false,
  "snapshotReservationDetail": {
    "reservedSpaceGib": "",
    "reservedSpacePercent": 0,
    "reservedSpaceRemainingGib": "",
    "reservedSpaceUsedPercent": 0
  },
  "snapshotSchedulePolicy": "",
  "state": "",
  "storageAggregatePool": "",
  "storageType": "",
  "workloadProfile": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attached' => null,
  'autoGrownSizeGib' => '',
  'bootVolume' => null,
  'currentSizeGib' => '',
  'emergencySizeGib' => '',
  'expireTime' => '',
  'id' => '',
  'instances' => [
    
  ],
  'labels' => [
    
  ],
  'maxSizeGib' => '',
  'name' => '',
  'notes' => '',
  'originallyRequestedSizeGib' => '',
  'performanceTier' => '',
  'pod' => '',
  'protocol' => '',
  'remainingSpaceGib' => '',
  'requestedSizeGib' => '',
  'snapshotAutoDeleteBehavior' => '',
  'snapshotEnabled' => null,
  'snapshotReservationDetail' => [
    'reservedSpaceGib' => '',
    'reservedSpacePercent' => 0,
    'reservedSpaceRemainingGib' => '',
    'reservedSpaceUsedPercent' => 0
  ],
  'snapshotSchedulePolicy' => '',
  'state' => '',
  'storageAggregatePool' => '',
  'storageType' => '',
  'workloadProfile' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attached' => null,
  'autoGrownSizeGib' => '',
  'bootVolume' => null,
  'currentSizeGib' => '',
  'emergencySizeGib' => '',
  'expireTime' => '',
  'id' => '',
  'instances' => [
    
  ],
  'labels' => [
    
  ],
  'maxSizeGib' => '',
  'name' => '',
  'notes' => '',
  'originallyRequestedSizeGib' => '',
  'performanceTier' => '',
  'pod' => '',
  'protocol' => '',
  'remainingSpaceGib' => '',
  'requestedSizeGib' => '',
  'snapshotAutoDeleteBehavior' => '',
  'snapshotEnabled' => null,
  'snapshotReservationDetail' => [
    'reservedSpaceGib' => '',
    'reservedSpacePercent' => 0,
    'reservedSpaceRemainingGib' => '',
    'reservedSpaceUsedPercent' => 0
  ],
  'snapshotSchedulePolicy' => '',
  'state' => '',
  'storageAggregatePool' => '',
  'storageType' => '',
  'workloadProfile' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/:name');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attached": false,
  "autoGrownSizeGib": "",
  "bootVolume": false,
  "currentSizeGib": "",
  "emergencySizeGib": "",
  "expireTime": "",
  "id": "",
  "instances": [],
  "labels": {},
  "maxSizeGib": "",
  "name": "",
  "notes": "",
  "originallyRequestedSizeGib": "",
  "performanceTier": "",
  "pod": "",
  "protocol": "",
  "remainingSpaceGib": "",
  "requestedSizeGib": "",
  "snapshotAutoDeleteBehavior": "",
  "snapshotEnabled": false,
  "snapshotReservationDetail": {
    "reservedSpaceGib": "",
    "reservedSpacePercent": 0,
    "reservedSpaceRemainingGib": "",
    "reservedSpaceUsedPercent": 0
  },
  "snapshotSchedulePolicy": "",
  "state": "",
  "storageAggregatePool": "",
  "storageType": "",
  "workloadProfile": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "attached": false,
  "autoGrownSizeGib": "",
  "bootVolume": false,
  "currentSizeGib": "",
  "emergencySizeGib": "",
  "expireTime": "",
  "id": "",
  "instances": [],
  "labels": {},
  "maxSizeGib": "",
  "name": "",
  "notes": "",
  "originallyRequestedSizeGib": "",
  "performanceTier": "",
  "pod": "",
  "protocol": "",
  "remainingSpaceGib": "",
  "requestedSizeGib": "",
  "snapshotAutoDeleteBehavior": "",
  "snapshotEnabled": false,
  "snapshotReservationDetail": {
    "reservedSpaceGib": "",
    "reservedSpacePercent": 0,
    "reservedSpaceRemainingGib": "",
    "reservedSpaceUsedPercent": 0
  },
  "snapshotSchedulePolicy": "",
  "state": "",
  "storageAggregatePool": "",
  "storageType": "",
  "workloadProfile": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/:name", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name"

payload = {
    "attached": False,
    "autoGrownSizeGib": "",
    "bootVolume": False,
    "currentSizeGib": "",
    "emergencySizeGib": "",
    "expireTime": "",
    "id": "",
    "instances": [],
    "labels": {},
    "maxSizeGib": "",
    "name": "",
    "notes": "",
    "originallyRequestedSizeGib": "",
    "performanceTier": "",
    "pod": "",
    "protocol": "",
    "remainingSpaceGib": "",
    "requestedSizeGib": "",
    "snapshotAutoDeleteBehavior": "",
    "snapshotEnabled": False,
    "snapshotReservationDetail": {
        "reservedSpaceGib": "",
        "reservedSpacePercent": 0,
        "reservedSpaceRemainingGib": "",
        "reservedSpaceUsedPercent": 0
    },
    "snapshotSchedulePolicy": "",
    "state": "",
    "storageAggregatePool": "",
    "storageType": "",
    "workloadProfile": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name"

payload <- "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.patch('/baseUrl/v2/:name') do |req|
  req.body = "{\n  \"attached\": false,\n  \"autoGrownSizeGib\": \"\",\n  \"bootVolume\": false,\n  \"currentSizeGib\": \"\",\n  \"emergencySizeGib\": \"\",\n  \"expireTime\": \"\",\n  \"id\": \"\",\n  \"instances\": [],\n  \"labels\": {},\n  \"maxSizeGib\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"originallyRequestedSizeGib\": \"\",\n  \"performanceTier\": \"\",\n  \"pod\": \"\",\n  \"protocol\": \"\",\n  \"remainingSpaceGib\": \"\",\n  \"requestedSizeGib\": \"\",\n  \"snapshotAutoDeleteBehavior\": \"\",\n  \"snapshotEnabled\": false,\n  \"snapshotReservationDetail\": {\n    \"reservedSpaceGib\": \"\",\n    \"reservedSpacePercent\": 0,\n    \"reservedSpaceRemainingGib\": \"\",\n    \"reservedSpaceUsedPercent\": 0\n  },\n  \"snapshotSchedulePolicy\": \"\",\n  \"state\": \"\",\n  \"storageAggregatePool\": \"\",\n  \"storageType\": \"\",\n  \"workloadProfile\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name";

    let payload = json!({
        "attached": false,
        "autoGrownSizeGib": "",
        "bootVolume": false,
        "currentSizeGib": "",
        "emergencySizeGib": "",
        "expireTime": "",
        "id": "",
        "instances": (),
        "labels": json!({}),
        "maxSizeGib": "",
        "name": "",
        "notes": "",
        "originallyRequestedSizeGib": "",
        "performanceTier": "",
        "pod": "",
        "protocol": "",
        "remainingSpaceGib": "",
        "requestedSizeGib": "",
        "snapshotAutoDeleteBehavior": "",
        "snapshotEnabled": false,
        "snapshotReservationDetail": json!({
            "reservedSpaceGib": "",
            "reservedSpacePercent": 0,
            "reservedSpaceRemainingGib": "",
            "reservedSpaceUsedPercent": 0
        }),
        "snapshotSchedulePolicy": "",
        "state": "",
        "storageAggregatePool": "",
        "storageType": "",
        "workloadProfile": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/:name \
  --header 'content-type: application/json' \
  --data '{
  "attached": false,
  "autoGrownSizeGib": "",
  "bootVolume": false,
  "currentSizeGib": "",
  "emergencySizeGib": "",
  "expireTime": "",
  "id": "",
  "instances": [],
  "labels": {},
  "maxSizeGib": "",
  "name": "",
  "notes": "",
  "originallyRequestedSizeGib": "",
  "performanceTier": "",
  "pod": "",
  "protocol": "",
  "remainingSpaceGib": "",
  "requestedSizeGib": "",
  "snapshotAutoDeleteBehavior": "",
  "snapshotEnabled": false,
  "snapshotReservationDetail": {
    "reservedSpaceGib": "",
    "reservedSpacePercent": 0,
    "reservedSpaceRemainingGib": "",
    "reservedSpaceUsedPercent": 0
  },
  "snapshotSchedulePolicy": "",
  "state": "",
  "storageAggregatePool": "",
  "storageType": "",
  "workloadProfile": ""
}'
echo '{
  "attached": false,
  "autoGrownSizeGib": "",
  "bootVolume": false,
  "currentSizeGib": "",
  "emergencySizeGib": "",
  "expireTime": "",
  "id": "",
  "instances": [],
  "labels": {},
  "maxSizeGib": "",
  "name": "",
  "notes": "",
  "originallyRequestedSizeGib": "",
  "performanceTier": "",
  "pod": "",
  "protocol": "",
  "remainingSpaceGib": "",
  "requestedSizeGib": "",
  "snapshotAutoDeleteBehavior": "",
  "snapshotEnabled": false,
  "snapshotReservationDetail": {
    "reservedSpaceGib": "",
    "reservedSpacePercent": 0,
    "reservedSpaceRemainingGib": "",
    "reservedSpaceUsedPercent": 0
  },
  "snapshotSchedulePolicy": "",
  "state": "",
  "storageAggregatePool": "",
  "storageType": "",
  "workloadProfile": ""
}' |  \
  http PATCH {{baseUrl}}/v2/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "attached": false,\n  "autoGrownSizeGib": "",\n  "bootVolume": false,\n  "currentSizeGib": "",\n  "emergencySizeGib": "",\n  "expireTime": "",\n  "id": "",\n  "instances": [],\n  "labels": {},\n  "maxSizeGib": "",\n  "name": "",\n  "notes": "",\n  "originallyRequestedSizeGib": "",\n  "performanceTier": "",\n  "pod": "",\n  "protocol": "",\n  "remainingSpaceGib": "",\n  "requestedSizeGib": "",\n  "snapshotAutoDeleteBehavior": "",\n  "snapshotEnabled": false,\n  "snapshotReservationDetail": {\n    "reservedSpaceGib": "",\n    "reservedSpacePercent": 0,\n    "reservedSpaceRemainingGib": "",\n    "reservedSpaceUsedPercent": 0\n  },\n  "snapshotSchedulePolicy": "",\n  "state": "",\n  "storageAggregatePool": "",\n  "storageType": "",\n  "workloadProfile": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attached": false,
  "autoGrownSizeGib": "",
  "bootVolume": false,
  "currentSizeGib": "",
  "emergencySizeGib": "",
  "expireTime": "",
  "id": "",
  "instances": [],
  "labels": [],
  "maxSizeGib": "",
  "name": "",
  "notes": "",
  "originallyRequestedSizeGib": "",
  "performanceTier": "",
  "pod": "",
  "protocol": "",
  "remainingSpaceGib": "",
  "requestedSizeGib": "",
  "snapshotAutoDeleteBehavior": "",
  "snapshotEnabled": false,
  "snapshotReservationDetail": [
    "reservedSpaceGib": "",
    "reservedSpacePercent": 0,
    "reservedSpaceRemainingGib": "",
    "reservedSpaceUsedPercent": 0
  ],
  "snapshotSchedulePolicy": "",
  "state": "",
  "storageAggregatePool": "",
  "storageType": "",
  "workloadProfile": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.volumes.rename
{{baseUrl}}/v2/:name:rename
QUERY PARAMS

name
BODY json

{
  "newVolumeId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name:rename");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"newVolumeId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:name:rename" {:content-type :json
                                                            :form-params {:newVolumeId ""}})
require "http/client"

url = "{{baseUrl}}/v2/:name:rename"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"newVolumeId\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:name:rename"),
    Content = new StringContent("{\n  \"newVolumeId\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name:rename");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"newVolumeId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name:rename"

	payload := strings.NewReader("{\n  \"newVolumeId\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:name:rename HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23

{
  "newVolumeId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:name:rename")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"newVolumeId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name:rename"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"newVolumeId\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"newVolumeId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name:rename")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:name:rename")
  .header("content-type", "application/json")
  .body("{\n  \"newVolumeId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  newVolumeId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:name:rename');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:rename',
  headers: {'content-type': 'application/json'},
  data: {newVolumeId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name:rename';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"newVolumeId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name:rename',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "newVolumeId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"newVolumeId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name:rename")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name:rename',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({newVolumeId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:rename',
  headers: {'content-type': 'application/json'},
  body: {newVolumeId: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:name:rename');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  newVolumeId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:name:rename',
  headers: {'content-type': 'application/json'},
  data: {newVolumeId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name:rename';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"newVolumeId":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"newVolumeId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name:rename"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name:rename" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"newVolumeId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name:rename",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'newVolumeId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:name:rename', [
  'body' => '{
  "newVolumeId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name:rename');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'newVolumeId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'newVolumeId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/:name:rename');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name:rename' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "newVolumeId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name:rename' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "newVolumeId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"newVolumeId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:name:rename", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name:rename"

payload = { "newVolumeId": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name:rename"

payload <- "{\n  \"newVolumeId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name:rename")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"newVolumeId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:name:rename') do |req|
  req.body = "{\n  \"newVolumeId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name:rename";

    let payload = json!({"newVolumeId": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:name:rename \
  --header 'content-type: application/json' \
  --data '{
  "newVolumeId": ""
}'
echo '{
  "newVolumeId": ""
}' |  \
  http POST {{baseUrl}}/v2/:name:rename \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "newVolumeId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/:name:rename
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["newVolumeId": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name:rename")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.volumes.resize
{{baseUrl}}/v2/:volume:resize
QUERY PARAMS

volume
BODY json

{
  "sizeGib": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:volume:resize");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"sizeGib\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:volume:resize" {:content-type :json
                                                              :form-params {:sizeGib ""}})
require "http/client"

url = "{{baseUrl}}/v2/:volume:resize"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"sizeGib\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:volume:resize"),
    Content = new StringContent("{\n  \"sizeGib\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:volume:resize");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"sizeGib\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:volume:resize"

	payload := strings.NewReader("{\n  \"sizeGib\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:volume:resize HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 19

{
  "sizeGib": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:volume:resize")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"sizeGib\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:volume:resize"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"sizeGib\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"sizeGib\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:volume:resize")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:volume:resize")
  .header("content-type", "application/json")
  .body("{\n  \"sizeGib\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  sizeGib: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:volume:resize');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:volume:resize',
  headers: {'content-type': 'application/json'},
  data: {sizeGib: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:volume:resize';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"sizeGib":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:volume:resize',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "sizeGib": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"sizeGib\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:volume:resize")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:volume:resize',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({sizeGib: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:volume:resize',
  headers: {'content-type': 'application/json'},
  body: {sizeGib: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:volume:resize');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  sizeGib: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:volume:resize',
  headers: {'content-type': 'application/json'},
  data: {sizeGib: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:volume:resize';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"sizeGib":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"sizeGib": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:volume:resize"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:volume:resize" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"sizeGib\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:volume:resize",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'sizeGib' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:volume:resize', [
  'body' => '{
  "sizeGib": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:volume:resize');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'sizeGib' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'sizeGib' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/:volume:resize');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:volume:resize' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "sizeGib": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:volume:resize' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "sizeGib": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"sizeGib\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:volume:resize", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:volume:resize"

payload = { "sizeGib": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:volume:resize"

payload <- "{\n  \"sizeGib\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:volume:resize")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"sizeGib\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:volume:resize') do |req|
  req.body = "{\n  \"sizeGib\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:volume:resize";

    let payload = json!({"sizeGib": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:volume:resize \
  --header 'content-type: application/json' \
  --data '{
  "sizeGib": ""
}'
echo '{
  "sizeGib": ""
}' |  \
  http POST {{baseUrl}}/v2/:volume:resize \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "sizeGib": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/:volume:resize
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["sizeGib": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:volume:resize")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.volumes.snapshots.create
{{baseUrl}}/v2/:parent/snapshots
QUERY PARAMS

parent
BODY json

{
  "createTime": "",
  "description": "",
  "id": "",
  "name": "",
  "storageVolume": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/snapshots");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:parent/snapshots" {:content-type :json
                                                                 :form-params {:createTime ""
                                                                               :description ""
                                                                               :id ""
                                                                               :name ""
                                                                               :storageVolume ""
                                                                               :type ""}})
require "http/client"

url = "{{baseUrl}}/v2/:parent/snapshots"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/snapshots"),
    Content = new StringContent("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/snapshots");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/snapshots"

	payload := strings.NewReader("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:parent/snapshots HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 106

{
  "createTime": "",
  "description": "",
  "id": "",
  "name": "",
  "storageVolume": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:parent/snapshots")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/snapshots"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/snapshots")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:parent/snapshots")
  .header("content-type", "application/json")
  .body("{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  createTime: '',
  description: '',
  id: '',
  name: '',
  storageVolume: '',
  type: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:parent/snapshots');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/snapshots',
  headers: {'content-type': 'application/json'},
  data: {createTime: '', description: '', id: '', name: '', storageVolume: '', type: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/snapshots';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","description":"","id":"","name":"","storageVolume":"","type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/snapshots',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createTime": "",\n  "description": "",\n  "id": "",\n  "name": "",\n  "storageVolume": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/snapshots")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/snapshots',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({createTime: '', description: '', id: '', name: '', storageVolume: '', type: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/snapshots',
  headers: {'content-type': 'application/json'},
  body: {createTime: '', description: '', id: '', name: '', storageVolume: '', type: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:parent/snapshots');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  createTime: '',
  description: '',
  id: '',
  name: '',
  storageVolume: '',
  type: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:parent/snapshots',
  headers: {'content-type': 'application/json'},
  data: {createTime: '', description: '', id: '', name: '', storageVolume: '', type: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/snapshots';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createTime":"","description":"","id":"","name":"","storageVolume":"","type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"createTime": @"",
                              @"description": @"",
                              @"id": @"",
                              @"name": @"",
                              @"storageVolume": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/snapshots"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/snapshots" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/snapshots",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'createTime' => '',
    'description' => '',
    'id' => '',
    'name' => '',
    'storageVolume' => '',
    'type' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:parent/snapshots', [
  'body' => '{
  "createTime": "",
  "description": "",
  "id": "",
  "name": "",
  "storageVolume": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/snapshots');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createTime' => '',
  'description' => '',
  'id' => '',
  'name' => '',
  'storageVolume' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createTime' => '',
  'description' => '',
  'id' => '',
  'name' => '',
  'storageVolume' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/:parent/snapshots');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/snapshots' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "description": "",
  "id": "",
  "name": "",
  "storageVolume": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/snapshots' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createTime": "",
  "description": "",
  "id": "",
  "name": "",
  "storageVolume": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:parent/snapshots", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/snapshots"

payload = {
    "createTime": "",
    "description": "",
    "id": "",
    "name": "",
    "storageVolume": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/snapshots"

payload <- "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/snapshots")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:parent/snapshots') do |req|
  req.body = "{\n  \"createTime\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"storageVolume\": \"\",\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/snapshots";

    let payload = json!({
        "createTime": "",
        "description": "",
        "id": "",
        "name": "",
        "storageVolume": "",
        "type": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:parent/snapshots \
  --header 'content-type: application/json' \
  --data '{
  "createTime": "",
  "description": "",
  "id": "",
  "name": "",
  "storageVolume": "",
  "type": ""
}'
echo '{
  "createTime": "",
  "description": "",
  "id": "",
  "name": "",
  "storageVolume": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/v2/:parent/snapshots \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createTime": "",\n  "description": "",\n  "id": "",\n  "name": "",\n  "storageVolume": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/:parent/snapshots
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createTime": "",
  "description": "",
  "id": "",
  "name": "",
  "storageVolume": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/snapshots")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE baremetalsolution.projects.locations.volumes.snapshots.delete
{{baseUrl}}/v2/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/:name")
require "http/client"

url = "{{baseUrl}}/v2/:name"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/v2/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/v2/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/v2/:name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/v2/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/v2/:name'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/v2/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/v2/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/v2/:name') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/v2/:name
http DELETE {{baseUrl}}/v2/:name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.volumes.snapshots.get
{{baseUrl}}/v2/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:name")
require "http/client"

url = "{{baseUrl}}/v2/:name"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:name")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v2/:name'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:name');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v2/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:name
http GET {{baseUrl}}/v2/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET baremetalsolution.projects.locations.volumes.snapshots.list
{{baseUrl}}/v2/:parent/snapshots
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:parent/snapshots");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:parent/snapshots")
require "http/client"

url = "{{baseUrl}}/v2/:parent/snapshots"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v2/:parent/snapshots"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:parent/snapshots");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:parent/snapshots"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v2/:parent/snapshots HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:parent/snapshots")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:parent/snapshots"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:parent/snapshots")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:parent/snapshots")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/v2/:parent/snapshots');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/snapshots'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:parent/snapshots';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:parent/snapshots',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:parent/snapshots")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:parent/snapshots',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/snapshots'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/:parent/snapshots');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/v2/:parent/snapshots'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:parent/snapshots';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:parent/snapshots"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:parent/snapshots" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:parent/snapshots",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/:parent/snapshots');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:parent/snapshots');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:parent/snapshots');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:parent/snapshots' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:parent/snapshots' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:parent/snapshots")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:parent/snapshots"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:parent/snapshots"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:parent/snapshots")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v2/:parent/snapshots') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:parent/snapshots";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v2/:parent/snapshots
http GET {{baseUrl}}/v2/:parent/snapshots
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:parent/snapshots
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:parent/snapshots")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST baremetalsolution.projects.locations.volumes.snapshots.restoreVolumeSnapshot
{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot
QUERY PARAMS

volumeSnapshot
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot"),
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v2/:volumeSnapshot:restoreVolumeSnapshot HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:volumeSnapshot:restoreVolumeSnapshot',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot',
  headers: {'content-type': 'application/json'},
  body: {},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/:volumeSnapshot:restoreVolumeSnapshot", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot"

payload <- "{}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v2/:volumeSnapshot:restoreVolumeSnapshot') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:volumeSnapshot:restoreVolumeSnapshot")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()