Een resourceprovider-exemplaar verwijderen
Van toepassing op: Windows Azure Pack
Hiermee verwijdert u een exemplaar van een resourceprovider.
Aanvraag
Vervang <ServiceMgmt> door het eindpuntadres van uw Service Management-API. Vervang <naam> door de naam van de resourceprovider. Vervang <InstanceId> door de exemplaar-id van het resourceprovider-exemplaar dat moet worden verwijderd.
Methode |
Aanvraag-URI |
HTTP-versie |
---|---|---|
DELETE |
<https:// ServiceMgmt>:30004/resourceproviders/<Name>/<InstanceId> |
HTTP/1.1 |
URI-parameters
Geen.
Aanvraagheaders
In de volgende tabel worden de vereiste en optionele aanvraagheaders beschreven.
Aanvraagheader |
Beschrijving |
---|---|
Autorisatie: Bearer |
Vereist. Het bearer-token voor autorisatie. |
x-ms-principal-id |
Vereist. De principal-id. |
x-ms-client-request-id |
Optioneel. De clientaanvraag-id. |
x-ms-client-session-id |
Optioneel. De clientsessie-id. |
x-ms-principal-liveid |
Optioneel. De principal Live-id. |
Aanvraagbody
Geen.
Antwoord
Het antwoord bevat een HTTP-statuscode, een set antwoordheaders en een antwoordtekst.
Statuscode
Een geslaagde bewerking retourneert statuscode 200 (OK).
Zie Status- en Foutcodes (Windows Azure Pack Service Management) voor informatie over statuscodes.
Antwoordheaders
Het antwoord voor deze bewerking bevat standaard HTTP-headers. Alle standaardheaders voldoen aan de http/1.1-protocolspecificatie.
Hoofdtekst van antwoord
Geen.
Voorbeeld
In het volgende codevoorbeeld ziet u een aanvraag resourceproviderexemplaren verwijderen .
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
In het volgende codevoorbeeld ziet u het antwoord resourceproviderexemplaren verwijderen .
{
"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
}