Delete a Resource Provider Instance
Applies To: Windows Azure Pack
Deletes an instance of a resource provider.
Request
Replace <ServiceMgmt> with your Service Management API endpoint address. Replace <Name> with the resource provider name. Replace <InstanceId> with the instance identifier of the resource provider instance to be deleted.
Method |
Request URI |
HTTP version |
---|---|---|
DELETE |
https://<ServiceMgmt>:30004/resourceproviders/<Name>/<InstanceId> |
HTTP/1.1 |
URI Parameters
None.
Request Headers
The following table describes required and optional request headers.
Request header |
Description |
---|---|
Authorization: Bearer |
Required. The authorization bearer token. |
x-ms-principal-id |
Required. The principal identifier. |
x-ms-client-request-id |
Optional. The client request identifier. |
x-ms-client-session-id |
Optional. The client session identifier. |
x-ms-principal-liveid |
Optional. The principal Live identifier. |
Request Body
None.
Response
The response includes an HTTP status code, a set of response headers, and a response body.
Status Code
A successful operation returns status code 200 (OK).
For information about status codes, see Status and Error Codes (Windows Azure Pack Service Management).
Response Headers
The response for this operation includes standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.
Response Body
None.
Example
The following code example shows a Delete Resource Provider Instance request.
DELETE https://<computer>:30004/resourceproviders/mysqlservers/7B192028-3EDE-4E23-B0BE-F363CCB6EEC2 HTTP/1.1
Authorization: Bearer
x-ms-client-request-id: c3d655dd-f310-471b-96d7-b08cbd0871ac-2013-07-10 16:25:45Z
x-ms-client-session-id: 923c1e6a-74fe-40d1-b683-e1d909bdaba0
x-ms-principal-id: <computer>\Administrator
Accept-Language: en-US
x-ms-principal-liveid: <computer>\Administrator
Host: <computer>:30004
The following code example shows a Delete Resource Provider Instance response.
{
"Name": "mysqlservers",
"DisplayName": "MySQL Servers",
"Description": null,
"Enabled": true,
"PassThroughEnabled": true,
"AllowAnonymousAccess": false,
"AllowMultipleInstances": false,
"AdminEndpoint": {
"ForwardingAddress": "https:\/\/<computer>:30012\/",
"AuthenticationMode": 1,
"AuthenticationUsername": "MySQLClient",
"AuthenticationPassword": "lsbytkNVjrkor7+s\/hbApx1Q7bAfzc0Z"
},
"TenantEndpoint": {
"ForwardingAddress": "https:\/\/ <computer>:30012\/subscriptions",
"AuthenticationMode": 1,
"AuthenticationUsername": "MySQLClient",
"AuthenticationPassword": "lsbytkNVjrkor7+s\/hbApx1Q7bAfzc0Z",
"SourceUriTemplate": "{subid}\/services\/mysqlservers\/{*path}",
"TargetUriTemplate": "{subid}\/{*path}"
},
"UsageEndpoint": {
"ForwardingAddress": "https:\/\/ <computer>:30012\/",
"AuthenticationMode": 1,
"AuthenticationUsername": "MySQLClient",
"AuthenticationPassword": "lsbytkNVjrkor7+s\/hbApx1Q7bAfzc0Z"
},
"HealthCheckEndpoint": null,
"NotificationEndpoint": {
"ForwardingAddress": "https:\/\/ <computer>:30012\/",
"AuthenticationMode": 1,
"AuthenticationUsername": "MySQLClient",
"AuthenticationPassword": "lsbytkNVjrkor7+s\/hbApx1Q7bAfzc0Z"
},
"InstanceId": "7B192028-3EDE-4E23-B0BE-F363CCB6EEC2",
"InstanceDisplayName": "MySQL Servers",
"MaxQuotaUpdateBatchSize": 5,
"SubscriptionStatusPollingInterval": "00:00:10",
"Type": 0
}