POST SubscriptionFactory_CreateCspSubscription
{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription
QUERY PARAMS

api-version
billingAccountName
customerName
BODY json

{
  "displayName": "",
  "resellerId": "",
  "serviceProviderId": "",
  "skuId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=");

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  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}");

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

(client/post "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription" {:query-params {:api-version ""}
                                                                                                                                                                                        :content-type :json
                                                                                                                                                                                        :form-params {:displayName ""
                                                                                                                                                                                                      :resellerId ""
                                                                                                                                                                                                      :serviceProviderId ""
                                                                                                                                                                                                      :skuId ""}})
require "http/client"

url = "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version="),
    Content = new StringContent("{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version="

	payload := strings.NewReader("{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\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/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 85

{
  "displayName": "",
  "resellerId": "",
  "serviceProviderId": "",
  "skuId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\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  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=")
  .header("content-type", "application/json")
  .body("{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  displayName: '',
  resellerId: '',
  serviceProviderId: '',
  skuId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {displayName: '', resellerId: '', serviceProviderId: '', skuId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"displayName":"","resellerId":"","serviceProviderId":"","skuId":""}'
};

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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "displayName": "",\n  "resellerId": "",\n  "serviceProviderId": "",\n  "skuId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=")
  .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/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=',
  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({displayName: '', resellerId: '', serviceProviderId: '', skuId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription',
  qs: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  body: {displayName: '', resellerId: '', serviceProviderId: '', skuId: ''},
  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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription');

req.query({
  'api-version': ''
});

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

req.type('json');
req.send({
  displayName: '',
  resellerId: '',
  serviceProviderId: '',
  skuId: ''
});

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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {displayName: '', resellerId: '', serviceProviderId: '', skuId: ''}
};

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

const url = '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"displayName":"","resellerId":"","serviceProviderId":"","skuId":""}'
};

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 = @{ @"displayName": @"",
                              @"resellerId": @"",
                              @"serviceProviderId": @"",
                              @"skuId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version="]
                                                       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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=",
  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([
    'displayName' => '',
    'resellerId' => '',
    'serviceProviderId' => '',
    'skuId' => ''
  ]),
  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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=', [
  'body' => '{
  "displayName": "",
  "resellerId": "",
  "serviceProviderId": "",
  "skuId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'api-version' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'displayName' => '',
  'resellerId' => '',
  'serviceProviderId' => '',
  'skuId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'displayName' => '',
  'resellerId' => '',
  'serviceProviderId' => '',
  'skuId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "displayName": "",
  "resellerId": "",
  "serviceProviderId": "",
  "skuId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "displayName": "",
  "resellerId": "",
  "serviceProviderId": "",
  "skuId": ""
}'
import http.client

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

payload = "{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=", payload, headers)

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

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

url = "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription"

querystring = {"api-version":""}

payload = {
    "displayName": "",
    "resellerId": "",
    "serviceProviderId": "",
    "skuId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription"

queryString <- list(api-version = "")

payload <- "{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=")

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  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\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/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription') do |req|
  req.params['api-version'] = ''
  req.body = "{\n  \"displayName\": \"\",\n  \"resellerId\": \"\",\n  \"serviceProviderId\": \"\",\n  \"skuId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription";

    let querystring = [
        ("api-version", ""),
    ];

    let payload = json!({
        "displayName": "",
        "resellerId": "",
        "serviceProviderId": "",
        "skuId": ""
    });

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=' \
  --header 'content-type: application/json' \
  --data '{
  "displayName": "",
  "resellerId": "",
  "serviceProviderId": "",
  "skuId": ""
}'
echo '{
  "displayName": "",
  "resellerId": "",
  "serviceProviderId": "",
  "skuId": ""
}' |  \
  http POST '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "displayName": "",\n  "resellerId": "",\n  "serviceProviderId": "",\n  "skuId": ""\n}' \
  --output-document \
  - '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "displayName": "",
  "resellerId": "",
  "serviceProviderId": "",
  "skuId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/customers/:customerName/providers/Microsoft.Subscription/createSubscription?api-version=")! 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 SubscriptionFactory_CreateSubscription
{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription
QUERY PARAMS

api-version
billingAccountName
billingProfileName
invoiceSectionName
BODY json

{
  "additionalParameters": {},
  "billingProfileId": "",
  "costCenter": "",
  "displayName": "",
  "managementGroupId": "",
  "owner": {
    "objectId": ""
  },
  "skuId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=");

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  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}");

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

(client/post "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription" {:query-params {:api-version ""}
                                                                                                                                                                                                                                        :content-type :json
                                                                                                                                                                                                                                        :form-params {:additionalParameters {}
                                                                                                                                                                                                                                                      :billingProfileId ""
                                                                                                                                                                                                                                                      :costCenter ""
                                                                                                                                                                                                                                                      :displayName ""
                                                                                                                                                                                                                                                      :managementGroupId ""
                                                                                                                                                                                                                                                      :owner {:objectId ""}
                                                                                                                                                                                                                                                      :skuId ""}})
require "http/client"

url = "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version="),
    Content = new StringContent("{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version="

	payload := strings.NewReader("{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\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/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 178

{
  "additionalParameters": {},
  "billingProfileId": "",
  "costCenter": "",
  "displayName": "",
  "managementGroupId": "",
  "owner": {
    "objectId": ""
  },
  "skuId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\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  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=")
  .header("content-type", "application/json")
  .body("{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  additionalParameters: {},
  billingProfileId: '',
  costCenter: '',
  displayName: '',
  managementGroupId: '',
  owner: {
    objectId: ''
  },
  skuId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {
    additionalParameters: {},
    billingProfileId: '',
    costCenter: '',
    displayName: '',
    managementGroupId: '',
    owner: {objectId: ''},
    skuId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalParameters":{},"billingProfileId":"","costCenter":"","displayName":"","managementGroupId":"","owner":{"objectId":""},"skuId":""}'
};

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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalParameters": {},\n  "billingProfileId": "",\n  "costCenter": "",\n  "displayName": "",\n  "managementGroupId": "",\n  "owner": {\n    "objectId": ""\n  },\n  "skuId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=")
  .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/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=',
  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({
  additionalParameters: {},
  billingProfileId: '',
  costCenter: '',
  displayName: '',
  managementGroupId: '',
  owner: {objectId: ''},
  skuId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription',
  qs: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  body: {
    additionalParameters: {},
    billingProfileId: '',
    costCenter: '',
    displayName: '',
    managementGroupId: '',
    owner: {objectId: ''},
    skuId: ''
  },
  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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription');

req.query({
  'api-version': ''
});

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

req.type('json');
req.send({
  additionalParameters: {},
  billingProfileId: '',
  costCenter: '',
  displayName: '',
  managementGroupId: '',
  owner: {
    objectId: ''
  },
  skuId: ''
});

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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {
    additionalParameters: {},
    billingProfileId: '',
    costCenter: '',
    displayName: '',
    managementGroupId: '',
    owner: {objectId: ''},
    skuId: ''
  }
};

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

const url = '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalParameters":{},"billingProfileId":"","costCenter":"","displayName":"","managementGroupId":"","owner":{"objectId":""},"skuId":""}'
};

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 = @{ @"additionalParameters": @{  },
                              @"billingProfileId": @"",
                              @"costCenter": @"",
                              @"displayName": @"",
                              @"managementGroupId": @"",
                              @"owner": @{ @"objectId": @"" },
                              @"skuId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version="]
                                                       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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=",
  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([
    'additionalParameters' => [
        
    ],
    'billingProfileId' => '',
    'costCenter' => '',
    'displayName' => '',
    'managementGroupId' => '',
    'owner' => [
        'objectId' => ''
    ],
    'skuId' => ''
  ]),
  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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=', [
  'body' => '{
  "additionalParameters": {},
  "billingProfileId": "",
  "costCenter": "",
  "displayName": "",
  "managementGroupId": "",
  "owner": {
    "objectId": ""
  },
  "skuId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'api-version' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalParameters' => [
    
  ],
  'billingProfileId' => '',
  'costCenter' => '',
  'displayName' => '',
  'managementGroupId' => '',
  'owner' => [
    'objectId' => ''
  ],
  'skuId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalParameters' => [
    
  ],
  'billingProfileId' => '',
  'costCenter' => '',
  'displayName' => '',
  'managementGroupId' => '',
  'owner' => [
    'objectId' => ''
  ],
  'skuId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$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}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalParameters": {},
  "billingProfileId": "",
  "costCenter": "",
  "displayName": "",
  "managementGroupId": "",
  "owner": {
    "objectId": ""
  },
  "skuId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalParameters": {},
  "billingProfileId": "",
  "costCenter": "",
  "displayName": "",
  "managementGroupId": "",
  "owner": {
    "objectId": ""
  },
  "skuId": ""
}'
import http.client

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

payload = "{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=", payload, headers)

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

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

url = "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription"

querystring = {"api-version":""}

payload = {
    "additionalParameters": {},
    "billingProfileId": "",
    "costCenter": "",
    "displayName": "",
    "managementGroupId": "",
    "owner": { "objectId": "" },
    "skuId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription"

queryString <- list(api-version = "")

payload <- "{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=")

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  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\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/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription') do |req|
  req.params['api-version'] = ''
  req.body = "{\n  \"additionalParameters\": {},\n  \"billingProfileId\": \"\",\n  \"costCenter\": \"\",\n  \"displayName\": \"\",\n  \"managementGroupId\": \"\",\n  \"owner\": {\n    \"objectId\": \"\"\n  },\n  \"skuId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription";

    let querystring = [
        ("api-version", ""),
    ];

    let payload = json!({
        "additionalParameters": json!({}),
        "billingProfileId": "",
        "costCenter": "",
        "displayName": "",
        "managementGroupId": "",
        "owner": json!({"objectId": ""}),
        "skuId": ""
    });

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=' \
  --header 'content-type: application/json' \
  --data '{
  "additionalParameters": {},
  "billingProfileId": "",
  "costCenter": "",
  "displayName": "",
  "managementGroupId": "",
  "owner": {
    "objectId": ""
  },
  "skuId": ""
}'
echo '{
  "additionalParameters": {},
  "billingProfileId": "",
  "costCenter": "",
  "displayName": "",
  "managementGroupId": "",
  "owner": {
    "objectId": ""
  },
  "skuId": ""
}' |  \
  http POST '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalParameters": {},\n  "billingProfileId": "",\n  "costCenter": "",\n  "displayName": "",\n  "managementGroupId": "",\n  "owner": {\n    "objectId": ""\n  },\n  "skuId": ""\n}' \
  --output-document \
  - '{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalParameters": [],
  "billingProfileId": "",
  "costCenter": "",
  "displayName": "",
  "managementGroupId": "",
  "owner": ["objectId": ""],
  "skuId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/invoiceSections/:invoiceSectionName/providers/Microsoft.Subscription/createSubscription?api-version=")! 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 SubscriptionOperation_Get
{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId
QUERY PARAMS

api-version
operationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=");

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

(client/get "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version="

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}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version="

	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/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version="))
    .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}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=")
  .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}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=';
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}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=',
  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}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId',
  qs: {'api-version': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId');

req.query({
  'api-version': ''
});

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}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId',
  params: {'api-version': ''}
};

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

const url = '{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=';
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}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version="]
                                                       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}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=",
  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}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'api-version' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=")

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

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

url = "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId"

querystring = {"api-version":""}

response = requests.get(url, params=querystring)

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

url <- "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId"

queryString <- list(api-version = "")

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

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

url = URI("{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=")

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/providers/Microsoft.Subscription/subscriptionOperations/:operationId') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId";

    let querystring = [
        ("api-version", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version='
http GET '{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=")! 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()