Skip to content
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

API Management Service Deleted Services Resource #10607

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ deleteconsumergroup
deletedcertificates
deletedkeys
deletedsecrets
deletedservices
deletedstorage
deletefailed
deleteissuers
Expand Down
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}": {
promoisha marked this conversation as resolved.
Show resolved Hide resolved
"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": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@
},
"ApiManagementUpdateServicePublisherDetails": {
"$ref": "./examples/ApiManagementUpdateServicePublisherDetails.json"
},
"ApiManagementUndelete": {
"$ref": "./examples/ApiManagementUndelete.json"
}
},
"parameters": [
Expand Down Expand Up @@ -1053,6 +1056,11 @@
"type": "string",
"description": "Publisher name.",
"maxLength": 100
},
"restore": {
"type": "boolean",
"description": "Undelete Api Management Service if it was previously soft-deleted. If this flag is specified and set to True all other properties will be ignored.",
"default": false
}
},
"allOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5679,6 +5679,62 @@
"ContentItemContractProperties": {
"properties": {},
"additionalProperties": true
},
"DeletedServicesCollection": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/DeletedServiceContract"
},
"description": "Page values.",
"readOnly": true
},
"nextLink": {
"type": "string",
"description": "Next page link if any.",
"readOnly": true
}
},
"description": "Paged deleted Api Management Services List Representation."
},
"DeletedServiceContract": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/DeletedServiceContractProperties",
"description": "Deleted Api Management Service details."
},
"location": {
"readOnly": true,
"type": "string",
"description": "Api Management Service Master Location."
}
},
"allOf": [
{
"$ref": "./apimanagement.json#/definitions/Resource"
}
],
"description": "Deleted Api Management Service information."
},
"DeletedServiceContractProperties": {
"properties": {
"serviceId": {
"type": "string",
"description": "Fully-qualified API Management Service Resource ID"
},
"scheduledPurgeDate": {
"type": "string",
"format": "date-time",
"description": "UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."
},
"deletionDate": {
"type": "string",
"format": "date-time",
"description": "UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."
}
}
}
},
"parameters": {}
Expand Down
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"
}
}
]
}
}
}
}
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": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"parameters": {
promoisha marked this conversation as resolved.
Show resolved Hide 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
}
}
}
}
}
1 change: 1 addition & 0 deletions specification/apimanagement/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ input-file:
- Microsoft.ApiManagement/preview/2020-06-01-preview/apimcaches.json
- Microsoft.ApiManagement/preview/2020-06-01-preview/apimcertificates.json
- Microsoft.ApiManagement/preview/2020-06-01-preview/apimcontenttypes.json
- Microsoft.ApiManagement/preview/2020-06-01-preview/apimdeletedservices.json
- Microsoft.ApiManagement/preview/2020-06-01-preview/apimdeployment.json
- Microsoft.ApiManagement/preview/2020-06-01-preview/apimdiagnostics.json
- Microsoft.ApiManagement/preview/2020-06-01-preview/apimemailtemplates.json
Expand Down