Virtual Machine Scale Sets - Set Orchestration Service State

Wijzigt de eigenschap ServiceState voor een bepaalde service

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState?api-version=2024-03-01

URI-parameters

Name In Vereist Type Description
resourceGroupName
path True

string

De naam van de resourcegroep.

subscriptionId
path True

string

Abonnementsreferenties waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke service-aanroep.

vmScaleSetName
path True

string

De naam van de virtuele-machineschaalset die moet worden gemaakt of bijgewerkt.

api-version
query True

string

Client-API-versie.

Aanvraagbody

Name Vereist Type Description
action True

OrchestrationServiceStateAction

De actie die moet worden uitgevoerd.

serviceName True

OrchestrationServiceNames

De naam van de service.

Antwoorden

Name Type Description
200 OK

OK

202 Accepted

Geaccepteerd

Other Status Codes

CloudError

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen
VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen

VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen

Sample Request

POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachineScaleSets/aaaaaaaaaaaaaaaa/setOrchestrationServiceState?api-version=2024-03-01

{
  "serviceName": "AutomaticRepairs",
  "action": "Resume"
}

Sample Response

location: https://foo.com/operationstatus

VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen

Sample Request

POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachineScaleSets/aaaaaaaaaaaaaaaaaaaaaaaa/setOrchestrationServiceState?api-version=2024-03-01

{
  "serviceName": "AutomaticRepairs",
  "action": "Resume"
}

Sample Response

location: https://foo.com/operationstatus

Definities

Name Description
ApiError

API-fout.

ApiErrorBase

API-foutbasis.

CloudError

Een foutreactie van de Compute-service.

InnerError

Details van interne fout.

OrchestrationServiceNames

De naam van de service.

OrchestrationServiceStateAction

De actie die moet worden uitgevoerd.

OrchestrationServiceStateInput

De invoer voor OrchestrationServiceState

ApiError

API-fout.

Name Type Description
code

string

De foutcode.

details

ApiErrorBase[]

De API-foutdetails

innererror

InnerError

De interne API-fout

message

string

Het foutbericht.

target

string

Het doel van de specifieke fout.

ApiErrorBase

API-foutbasis.

Name Type Description
code

string

De foutcode.

message

string

Het foutbericht.

target

string

Het doel van de specifieke fout.

CloudError

Een foutreactie van de Compute-service.

Name Type Description
error

ApiError

API-fout.

InnerError

Details van interne fout.

Name Type Description
errordetail

string

Het interne foutbericht of de uitzonderingsdump.

exceptiontype

string

Het uitzonderingstype.

OrchestrationServiceNames

De naam van de service.

Name Type Description
AutomaticRepairs

string

OrchestrationServiceStateAction

De actie die moet worden uitgevoerd.

Name Type Description
Resume

string

Suspend

string

OrchestrationServiceStateInput

De invoer voor OrchestrationServiceState

Name Type Description
action

OrchestrationServiceStateAction

De actie die moet worden uitgevoerd.

serviceName

OrchestrationServiceNames

De naam van de service.