REST API reference

Platform API

Creates a new api key for the authenticated principal.

post
Header parameters
idempotencyKeyanyRequired
Responses
post
/api/apiKeys
POST /api/apiKeys HTTP/1.1
Host: 
Accept: */*
{
  "type": {
    "value": {
      "value": {
        "length": 1,
        "isEmpty": true,
        "span": {
          "length": 1,
          "isEmpty": true
        }
      },
      "isDefault": true
    },
    "isDefault": true
  },
  "key": {
    "value": {
      "length": 1,
      "isEmpty": true,
      "span": {
        "length": 1,
        "isEmpty": true
      }
    },
    "isDefault": true
  }
}

Creates a new subscription.

post
Header parameters
idempotencyKeyanyRequired
Body
offerstring · min: 1Required
namestring · min: 1Required
hostnamestring · min: 1Required
Responses
post
/api/subscriptions
POST /api/subscriptions HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 48

{
  "offer": "text",
  "name": "text",
  "hostname": "text"
}
{
  "type": {
    "value": {
      "value": {
        "length": 1,
        "isEmpty": true,
        "span": {
          "length": 1,
          "isEmpty": true
        }
      },
      "isDefault": true
    },
    "isDefault": true
  },
  "key": {
    "value": {
      "length": 1,
      "isEmpty": true,
      "span": {
        "length": 1,
        "isEmpty": true
      }
    },
    "isDefault": true
  }
}

Subscription API

Lists subscription's resource groups.

get
Responses
200

Success

application/json
get
/api/subscriptions/{subscriptionId}/resourceGroups
GET /api/subscriptions/{subscriptionId}/resourceGroups HTTP/1.1
Host: 
Accept: */*
[
  {
    "description": "text",
    "id": "/api/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupId}",
    "name": "text",
    "resourceGroupId": "rg_1234",
    "tags": {
      "CustomerNumber": 1234,
      "Department": "Service"
    }
  }
]

Last updated

Was this helpful?