Get Azure Plan by id

Prerequisites

  • Find a customer tenant for the Azure Plan

  • Find your azure plan id using endpoint

GET https://api.crayon.com/api/v1/azureplans/{customerTenantId}/azureplan/

Request

Request Syntax:

Method

Request URI

GET

https://api.crayon.com/api/v1/azureplans/{id}/

Request Example:

GET $"https://api.crayon.com/api/v1/azureplans/{id}/"
Accept: application/json
Content-Type: application/json
Authorization: Bearer < Token >

Response

If successful, this method returns the azureplan as a AzurePlan resource in the response body.

Response Body:

{
  "Id": 1,
  "Name": "Name of my azure plan",
  "PublisherSubscriptionId": "3a8386da-4a9e-475f-8acc-cc2b2a3ce071",
  "Status": 1,
  "RegisteredForReservedInstance": true,
  "Organization": {
    "Id": 3,
    "Name": "Name of organization"
  },
  "CustomerTenantReference": {
    "Id": 4
  }
}