Microsoft Azure

Azure Subscription

Subscription client provides an interface to create and manage Azure subscriptions programmatically.

Developer tools#openapi#cloud

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Subscription client provides an interface to create and manage Azure subscriptions programmatically.

Endpoints 15

  • POSTSubscription_Cancel/subscriptions/:subscriptionId/providers/Microsoft.Subscription/cancel?api-version=stringThe operation to cancel a subscription
  • POSTSubscription_Rename/subscriptions/:subscriptionId/providers/Microsoft.Subscription/rename?api-version=stringThe operation to rename a subscription
  • POSTSubscription_Enable/subscriptions/:subscriptionId/providers/Microsoft.Subscription/enable?api-version=stringThe operation to enable a subscription
  • GETSubscriptionOperation_Get/providers/Microsoft.Subscription/subscriptionOperations/:operationId?api-version=stringGet the status of the pending Microsoft.Subscription API operations.
  • GETOperations_List/providers/Microsoft.Subscription/operations?api-version=stringLists all of the available Microsoft.Subscription API operations.
  • GETAlias_Get/providers/Microsoft.Subscription/aliases/:aliasName?api-version=stringGet Alias Subscription.
  • PUTAlias_Create/providers/Microsoft.Subscription/aliases/:aliasName?api-version=stringCreate Alias Subscription.
  • DELETEAlias_Delete/providers/Microsoft.Subscription/aliases/:aliasName?api-version=stringDelete Alias.
  • GETAlias_List/providers/Microsoft.Subscription/aliases?api-version=stringList Alias Subscription.
  • POSTSubscription_AcceptOwnership/providers/Microsoft.Subscription/subscriptions/:subscriptionId/acceptOwnership?api-version=stringAccept subscription ownership.
  • GETSubscription_AcceptOwnershipStatus/providers/Microsoft.Subscription/subscriptions/:subscriptionId/acceptOwnershipStatus?api-version=stringAccept subscription ownership status.
  • GETSubscriptionPolicy_GetPolicyForTenant/providers/Microsoft.Subscription/policies/default?api-version=stringGet the subscription tenant policy for the user's tenant.
  • PUTSubscriptionPolicy_AddUpdatePolicyForTenant/providers/Microsoft.Subscription/policies/default?api-version=stringCreate or Update Subscription tenant policy for user's tenant.
  • GETSubscriptionPolicy_ListPolicyForTenant/providers/Microsoft.Subscription/policies?api-version=stringGet the subscription tenant policy for the user's tenant.
  • GETBillingAccount_GetPolicy/providers/Microsoft.Billing/billingAccounts/:billingAccountId/providers/Microsoft.Subscription/policies/default?api-version=stringGet Billing Account Policy.

API details

Base URL
https://management.azure.com
Authentication
OAuth 2.0 (implicit flow) with 1 scope
Operations
15 operations on 12 pathsGET 8POST 4PUT 2DELETE 1
Response formats
application/json
Description format
Swagger 2.0, API version 2021-10-01

How to test the Azure Subscription in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Subscription collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Subscription_Cancel” (POST /subscriptions/:subscriptionId/providers/Microsoft.Subscription/cancel?api-version=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Azure Subscription?

Subscription client provides an interface to create and manage Azure subscriptions programmatically. It is listed under Developer tools and has 15 endpoints.

Who publishes the Azure Subscription?

It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Azure Subscription?

Requests go to https://management.azure.com. Endpoint paths are added to this base URL.

How do I authenticate with the Azure Subscription?

With OAuth 2.0 (implicit flow) with 1 scope.

How many endpoints does the Azure Subscription have?

15 operations on 12 paths (8 GET, 4 POST, 2 PUT, 1 DELETE).

Is forking the Azure Subscription free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.