forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alias Put Subscription API (Azure#10205)
* Alias Put API * Update subscriptions.json * Added List API * Feedback update * Update subscriptions.json * updated * Update subscriptions.json * Update deleteAlias.json * Update subscriptions.json * Update subscriptions.json
- Loading branch information
1 parent
d762861
commit 249e2c8
Showing
5 changed files
with
353 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...ource-manager/Microsoft.Subscription/preview/2019-10-01-preview/examples/createAlias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"aliasName": "aliasForNewSub", | ||
"api-version": "2019-10-01-preview", | ||
"body": { | ||
"properties": { | ||
"displayName": "Contoso MCA subscription", | ||
"billingScope": "/providers/Microsoft.Billing/billingAccounts/e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31/billingProfiles/PE2Q-NOIT-BG7-TGB/invoiceSections/MTT4-OBS7-PJA-TGB", | ||
"workloadType": "Production" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Subscription/aliases/aliasForNewSub", | ||
"name": "aliasForNewSub", | ||
"type": "Microsoft.Subscription/aliases", | ||
"properties": { | ||
"subscriptionId": "subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/providers/Microsoft.Subscription/aliases/aliasForNewSub", | ||
"name": "aliasForNewSub", | ||
"type": "Microsoft.Subscription/aliases", | ||
"properties": { | ||
"subscriptionId": "subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05" | ||
} | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ource-manager/Microsoft.Subscription/preview/2019-10-01-preview/examples/deleteAlias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"aliasName": "aliasForNewSub", | ||
"api-version": "2019-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...resource-manager/Microsoft.Subscription/preview/2019-10-01-preview/examples/getAlias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"aliasName": "aliasForNewSub", | ||
"api-version": "2019-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Subscription/aliases/aliasForNewSub", | ||
"name": "aliasForNewSub", | ||
"type": "Microsoft.Subscription/aliases", | ||
"properties": { | ||
"subscriptionId": "subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05" | ||
} | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...esource-manager/Microsoft.Subscription/preview/2019-10-01-preview/examples/listAlias.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Subscription/aliases/aliasForNewSub", | ||
"name": "aliasForNewSub", | ||
"type": "Microsoft.Subscription/aliases", | ||
"properties": { | ||
"subscriptionId": "subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05" | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters