-
Notifications
You must be signed in to change notification settings - Fork 5.9k
API Management Service Deleted Services Resource #10607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
raych1
merged 10 commits into
Azure:apimanagement-2020-06-01-preview
from
promoisha:undeletefeature
Sep 4, 2020
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2958016
API Management Service Deleted Services Resource
3334e5f
Path fix
de71b31
Lint + custom-words fixes
ef91a51
Location URI parameter for deletedservices Resource
d7aa017
GET for deletedservices by service name
45a7e89
Remove resourceGroupName from resource path
4ec7b71
fixes
6c28786
schema for purge operation
188e6f5
perttier applied
2f7aa1d
204 response code added
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
121 changes: 121 additions & 0 deletions
121
...ource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimdeletedservices.json
This file contains hidden or 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,121 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "ApiManagementClient", | ||
| "description": "Use these REST APIs for performing operations in Azure API Management deployment.", | ||
| "version": "2020-06-01-preview" | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ], | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow.", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| }, | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices": { | ||
| "get": { | ||
| "tags": [ | ||
| "DeletedService" | ||
| ], | ||
| "operationId": "DeletedServices_ListBySubscription", | ||
| "description": "Lists all soft-deleted services available for undelete for the given subscription.", | ||
| "x-ms-examples": { | ||
| "ApiManagementListRegions": { | ||
| "$ref": "./examples/ApiManagementDeletedServicesListBySubscription.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "List of all soft-deleted services available for undelete for the given subscription.", | ||
| "schema": { | ||
| "$ref": "./definitions.json#/definitions/DeletedServicesCollection" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/deletedservices/{serviceName}": { | ||
| "delete": { | ||
| "tags": [ | ||
| "DeletedService" | ||
| ], | ||
| "operationId": "DeletedServices_Purge", | ||
| "description": "Purges Api Management Service (deletes it with no option to undelete).", | ||
| "x-ms-examples": { | ||
| "ApiManagementListRegions": { | ||
| "$ref": "./examples/ApiManagementDeletedServicesPurge.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Api Service was successfully purged." | ||
| }, | ||
| "202": { | ||
| "description": "Api Service purge started." | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": {}, | ||
| "parameters": {} | ||
| } | ||
This file contains hidden or 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
This file contains hidden or 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
36 changes: 36 additions & 0 deletions
36
...t/preview/2020-06-01-preview/examples/ApiManagementDeletedServicesListBySubscription.json
This file contains hidden or 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,36 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2020-06-01-preview", | ||
| "subscriptionId": "subid" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/deletedservices/apimService3", | ||
| "name": "apimService3", | ||
| "type": "Microsoft.ApiManagement/deletedservices", | ||
| "location": "West US", | ||
| "properties": { | ||
| "serviceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService3", | ||
| "scheduledPurgeDate": "2017-05-27T15:33:55.5426123Z", | ||
| "deletionDate": "2017-05-27T15:33:55.5426123Z" | ||
| } | ||
| }, | ||
| { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/deletedservices/apimService", | ||
| "name": "apimService", | ||
| "type": "Microsoft.ApiManagement/deletedservices", | ||
| "location": "West US 2", | ||
| "properties": { | ||
| "serviceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService", | ||
| "scheduledPurgeDate": "2017-05-27T15:33:55.5426123Z", | ||
| "deletionDate": "2017-05-27T15:33:55.5426123Z" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
12 changes: 12 additions & 0 deletions
12
....ApiManagement/preview/2020-06-01-preview/examples/ApiManagementDeletedServicesPurge.json
This file contains hidden or 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,12 @@ | ||
| { | ||
| "parameters": { | ||
| "serviceName": "apimService1", | ||
| "resourceGroupName": "rg1", | ||
| "api-version": "2020-06-01-preview", | ||
| "subscriptionId": "subid" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "202": {} | ||
| } | ||
| } |
90 changes: 90 additions & 0 deletions
90
...er/Microsoft.ApiManagement/preview/2020-06-01-preview/examples/ApiManagementUndelete.json
This file contains hidden or 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,90 @@ | ||
| { | ||
| "parameters": { | ||
|
promoisha marked this conversation as resolved.
|
||
| "serviceName": "apimService1", | ||
| "resourceGroupName": "rg1", | ||
| "api-version": "2020-06-01-preview", | ||
| "subscriptionId": "subid", | ||
| "parameters": { | ||
| "properties": { | ||
| "restore": true | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "202": { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", | ||
| "name": "apimService1", | ||
| "type": "Microsoft.ApiManagement/service", | ||
| "tags": { | ||
| "TestExpiration": "Thu, 29 Jun 2017 18:50:40 GMT" | ||
| }, | ||
| "location": "West US", | ||
| "etag": "AAAAAAAYRPs=", | ||
| "properties": { | ||
| "publisherEmail": "admin@live.com", | ||
| "publisherName": "Contoso", | ||
| "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", | ||
| "provisioningState": "Succeeded", | ||
| "targetProvisioningState": "", | ||
| "createdAtUtc": "2017-06-29T17:50:42.3191122Z", | ||
| "gatewayUrl": "https://apimService1.azure-api.net", | ||
| "portalUrl": "https://apimService1.portal.azure-api.net", | ||
| "managementApiUrl": "https://apimService1.management.azure-api.net", | ||
| "scmUrl": "https://apimService1.scm.azure-api.net", | ||
| "hostnameConfigurations": [], | ||
| "publicIPAddresses": [ | ||
| "40.86.176.232" | ||
| ], | ||
| "customProperties": { | ||
| "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False" | ||
| }, | ||
| "virtualNetworkType": "None" | ||
| }, | ||
| "sku": { | ||
| "name": "Standard", | ||
| "capacity": 1 | ||
| } | ||
| }, | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", | ||
| "name": "apimService1", | ||
| "type": "Microsoft.ApiManagement/service", | ||
| "tags": { | ||
| "Owner": "sasolank", | ||
| "UID": "4f5025fe-0669-4e2e-8320-5199466e5eb3", | ||
| "Reserved": "", | ||
| "TestExpiration": "Thu, 29 Jun 2017 18:50:40 GMT", | ||
| "Pool": "Manual", | ||
| "TestSuiteExpiration": "Thu, 29 Jun 2017 18:51:46 GMT" | ||
| }, | ||
| "location": "West US", | ||
| "etag": "AAAAAAAYRPs=", | ||
| "properties": { | ||
| "publisherEmail": "foobar@live.com", | ||
| "publisherName": "Contoso Vnext", | ||
| "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", | ||
| "provisioningState": "Succeeded", | ||
| "targetProvisioningState": "", | ||
| "createdAtUtc": "2017-06-29T17:50:42.3191122Z", | ||
| "gatewayUrl": "https://apimService1.azure-api.net", | ||
| "portalUrl": "https://apimService1.portal.azure-api.net", | ||
| "managementApiUrl": "https://apimService1.management.azure-api.net", | ||
| "scmUrl": "https://apimService1.scm.azure-api.net", | ||
| "hostnameConfigurations": [], | ||
| "publicIPAddresses": [ | ||
| "40.86.176.232" | ||
| ], | ||
| "customProperties": { | ||
| "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False" | ||
| }, | ||
| "virtualNetworkType": "None" | ||
| }, | ||
| "sku": { | ||
| "name": "Standard", | ||
| "capacity": 1 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.