Fleets - List Virtual Machine Scale Sets

Lista VirtualMachineScaleSet-resurser efter flotta

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureFleet/fleets/{name}/virtualMachineScaleSets?api-version=2024-11-01

URI-parametrar

Name I Obligatorisk Typ Description
name
path True

string

pattern: ^[^_\W][\w\-._]{0,79}(?

Namnet på flottan

resourceGroupName
path True

string

minLength: 1
maxLength: 90

Namnet på resursgruppen. Namnet är skiftlägesokänsligt.

subscriptionId
path True

string (uuid)

ID för målprenumerationen. Värdet måste vara ett UUID.

api-version
query True

string

minLength: 1

Den API-version som ska användas för den här åtgärden.

Svar

Name Typ Description
200 OK

VirtualMachineScaleSetListResult

Azure-åtgärden har slutförts.

Other Status Codes

ErrorResponse

Ett oväntat felsvar.

Säkerhet

azure_auth

Azure Active Directory OAuth2-flöde.

Typ: oauth2
Flow: implicit
Auktoriseringswebbadress: https://login.microsoftonline.com/common/oauth2/authorize

Omfattningar

Name Description
user_impersonation personifiera ditt användarkonto

Exempel

Fleets_ListVirtualMachineScaleSets

Exempelbegäran

GET https://management.azure.com/subscriptions/1DC2F28C-A625-4B0E-9748-9885A3C9E9EB/resourceGroups/rgazurefleet/providers/Microsoft.AzureFleet/fleets/myFleet/virtualMachineScaleSets?api-version=2024-11-01

Exempelsvar

{
  "value": [
    {
      "name": "myVmss",
      "id": "/subscriptions/7B0CD4DB-3381-4013-9B31-FB6E6FD0FF1C/resourceGroups/rgazurefleet/providers/Microsoft.AzureFleet/fleets/myFleet/virtualMachineScaleSets/myVmss",
      "type": "Microsoft.AzureFleet/fleets/virtualMachineScaleSets",
      "operationStatus": "Creating",
      "error": {
        "details": [
          {
            "code": "gzhtOverconstrainedAllocationRequestyosk",
            "target": "qfthabhrmndhfizfnrwpgxvnokpy",
            "message": "Allocation Failed"
          }
        ],
        "innererror": {
          "exceptionType": "sfaomfpoaptnbxchrfskm",
          "errorDetail": "ihjwbwykq"
        },
        "code": "OverconstrainedAllocationRequest",
        "target": "nhaj",
        "message": "Allocation Failed"
      }
    }
  ]
}

Definitioner

Name Description
ApiError

ApiError för Fleet

ApiErrorBase

bas för API-fel.

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

ErrorDetail

Felinformationen.

ErrorResponse

Felsvar

InnerError

Information om inre fel.

ProvisioningState

Status för den aktuella åtgärden.

VirtualMachineScaleSet

En AzureFleets virtualMachineScaleSet

VirtualMachineScaleSetListResult

Svaret från en VirtualMachineScaleSet-liståtgärd.

ApiError

ApiError för Fleet

Name Typ Description
code

string

Felkoden.

details

ApiErrorBase[]

Information om API-fel

innererror

InnerError

Det inre API-felet

message

string

Felmeddelandet.

target

string

Målet för det specifika felet.

ApiErrorBase

bas för API-fel.

Name Typ Description
code

string

Felkoden.

message

string

Felmeddelandet.

target

string

Målet för det specifika felet.

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

Name Typ Description
info

object

Ytterligare information.

type

string

Ytterligare informationstyp.

ErrorDetail

Felinformationen.

Name Typ Description
additionalInfo

ErrorAdditionalInfo[]

Ytterligare information om felet.

code

string

Felkoden.

details

ErrorDetail[]

Felinformationen.

message

string

Felmeddelandet.

target

string

Felmålet.

ErrorResponse

Felsvar

Name Typ Description
error

ErrorDetail

Felobjektet.

InnerError

Information om inre fel.

Name Typ Description
errorDetail

string

Det interna felmeddelandet eller undantagsdumpen.

exceptionType

string

Typen av undantag.

ProvisioningState

Status för den aktuella åtgärden.

Värde Description
Succeeded

Resursen har skapats.

Failed

Det gick inte att skapa resurser.

Canceled

Resursskapandet avbröts.

Creating

Inledande skapande pågår.

Updating

Uppdatering pågår.

Deleting

Radering pågår.

Migrating

Resursen migreras från en prenumeration eller resursgrupp till en annan.

VirtualMachineScaleSet

En AzureFleets virtualMachineScaleSet

Name Typ Description
error

ApiError

Felinformation när operationStatus är Failed

id

string (arm-id)

RP-beräkningsresurs-ID:t för virtualMachineScaleSet "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}"

name

string

Namnet på virtualMachineScaleSet

operationStatus

ProvisioningState

Detta representerar operationStatus för VMSS som svar på den senaste åtgärden som utfördes på den av Azure Fleet-resursen.

type

string

Typ av virtualMachineScaleSet

VirtualMachineScaleSetListResult

Svaret från en VirtualMachineScaleSet-liståtgärd.

Name Typ Description
nextLink

string (uri)

Länken till nästa sida med objekt

value

VirtualMachineScaleSet[]

VirtualMachineScaleSet-objekten på den här sidan