De medebeheerders bijwerken voor een abonnement (tenantabonnement)
Van toepassing op: Windows Azure Pack
Updates de medebeheerders voor een abonnement.
Aanvraag
Vervang <ServiceMgmt> door het eindpuntadres van uw Service Management-API. Vervang <SubscriptionId> door de id van het abonnement.
Methode |
Aanvraag-URI |
HTTP-versie |
---|---|---|
PATCH |
<https:// ServiceMgmt>:30005/subscriptions/<SubscriptionId> |
HTTP/1.1 |
URI-parameters
Geen.
Aanvraagheaders
In de volgende tabel worden de vereiste en optionele aanvraagheaders beschreven.
H\header aanvragen |
Description |
---|---|
Autorisatie: Bearer |
Vereist. Autorisatie bearer-token. |
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
In de volgende tabel worden de elementen van de aanvraagbody beschreven.
Elementnaam |
Beschrijving |
---|---|
AccountAdminLiveId |
De Microsoft-account-id van de accountbeheerder. |
AccountAdminLivePuid |
De passport-account-id van de accountbeheerder. |
AccountId |
De account-id. |
FriendlyName |
De beschrijvende naam. |
OfferCategory |
De aanbiedingscategorie. |
OfferInfo |
De aanbiedingsgegevens |
OfferType |
Het aanbiedingstype. |
ReasonCode |
De redencode. |
ServiceAdminLiveEmailId |
De Microsoft-account-id van de servicebeheerder. |
ServiceAdminLivePuid |
De passport-account-id van de servicebeheerder. |
SubscriptionId |
De abonnements-id. |
Status |
De abonnementsstatus. |
PlanId |
De plan-id. |
CoAdminNames |
De bijgewerkte lijst met medebeheerders. |
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 voor co-beheerders bijwerken van abonnementen.
PATCH https://<Computer>:30004/subscriptions/512d113d-44e0-4fb4-81d1-2770be611d14 HTTP/1.1
Authorization: Bearer <Token>
x-ms-client-request-id: babfb1c5-7e86-437f-b77d-508c4ced7146-2013-06-28 19:39:03Z
x-ms-client-session-id: 36d65d7b-42b5-4fc0-8334-93c10e7a90f2
x-ms-principal-id: <COMPUTER>\Administrator
Accept-Language: en-US
x-ms-principal-liveid: <COMPUTER>\Administrator
Content-Type: application/json; charset=utf-8
Host: <Computer>:30004
Content-Length: 375
Expect: 100-continue
{
"AccountAdminLiveEmailId": null,
"AccountAdminLivePuid": null,
"AccountId": "00000000-0000-0000-0000-000000000000",
"FriendlyName": null,
"OfferCategory": null,
"OfferInfo": null,
"OfferType": 0,
"ReasonCode": null,
"ServiceAdminLiveEmailId": null,
"ServiceAdminLivePuid": null,
"SubscriptionId": "512d113d-44e0-4fb4-81d1-2770be611d14",
"Status": null,
"PlanId": null,
"CoAdminNames": [
"aaa@bbb.com"
]
}
In het volgende codevoorbeeld ziet u een antwoord van co-beheerders bijwerken van abonnementen .
{
"SubscriptionID": "512d113d-44e0-4fb4-81d1-2770be611d14",
"SubscriptionName": "WebWeb",
"AccountAdminLiveEmailId": "aaa@ccc.com",
"ServiceAdminLiveEmailId": null,
"CoAdminNames": [
"aaa@bbb.com"
],
"AddOnReferences": [
],
"AddOns": [
],
"State": 1,
"QuotaSyncState": 0,
"ActivationSyncState": 2,
"PlanId": "WebWehig9z4ua",
"Services": [
{
"Type": "webspaces",
"State": "registered",
"QuotaSyncState": 0,
"ActivationSyncState": 0,
"BaseQuotaSettings": [
{
"Key": "BytesReceived_Shared_WebSpace_Limited",
"Value": "{\"ComputeMode\":0,\"CustomActionName\":null,\"EnforcementScope\":0,\"ExceededAction\":0,\"Limit\":-1,\"Period\":1440,\"QuotaName\":\"BytesReceived\",\"ResourceName\":\"BytesReceived\",\"SiteMode\":\"Limited\",\"Unit\":1,\"WebPlan\":null}"
},
{
"Key": "NumberOfVirtualWorkers_Dedicated_WebSpace_NULL",
"Value": "{\"ComputeMode\":1,\"CustomActionName\":null,\"EnforcementScope\":0,\"ExceededAction\":0,\"Limit\":-1,\"Period\":1440,\"QuotaName\":\"NumberOfVirtualWorkers\",\"ResourceName\":\"NumberOfVirtualWorkers\",\"SiteMode\":null,\"Unit\":1,\"WebPlan\":null}"
}
]
},
{
"Type": "sqlservers",
"State": "registered",
"QuotaSyncState": 0,
"ActivationSyncState": 0,
"BaseQuotaSettings": [
{
"Key": "Editions",
"Value": "[{\"displayName\":\"Default\",\"groupName\":\"Default\",\"resourceCount\":\"10\",\"resourceSize\":\"1024\",\"resourceSizeLimit\":\"1024\",\"offerEditionId\":\"062713061814\",\"groupType\":null}]"
}
]
},
{
"Type": "mysqlservers",
"State": "registered",
"QuotaSyncState": 0,
"ActivationSyncState": 2,
"BaseQuotaSettings": [
{
"Key": "Editions",
"Value": "[{\"displayName\":\"Default\",\"groupName\":\"Default\",\"resourceCount\":\"10\",\"resourceSize\":\"1024\",\"offerEditionId\":\"062713061814\",\"groupType\":null}]"
}
]
}
],
"LastErrorMessage": null,
"Features": null,
"OfferFriendlyName": "WebWeb",
"OfferCategory": null,
"Created": "2013-06-28T19:26:03.373"
}