Läs på engelska

Dela via


Web Apps - Get Slot Site Deployment Status Slot

Hämtar distributionsstatus för en app (eller distributionsfack, om det anges).

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deploymentStatus/{deploymentStatusId}?api-version=2024-04-01

URI-parametrar

Name I Obligatorisk Typ Description
deploymentStatusId
path True

string

GUID för distributionsåtgärden.

name
path True

string

Namnet på appen.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+[^\.]$

Namnet på resursgruppen som resursen tillhör.

slot
path True

string

Namnet på distributionsfacket. Om inget fack har angetts får API:et distributionsstatus för produktionsplatsen.

subscriptionId
path True

string

Ditt Azure-prenumerations-ID. Det här är en GUID-formaterad sträng (t.ex. 00000000-0000-0000-0000-000000000000).

api-version
query True

string

API-version

Svar

Name Typ Description
200 OK

CsmDeploymentStatus

OKEJ

202 Accepted

CsmDeploymentStatus

Åtgärden pågår.

Other Status Codes

DefaultErrorResponse

App Service-felsvar.

Säkerhet

azure_auth

Azure Active Directory OAuth2 Flow

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

Omfattningar

Name Description
user_impersonation personifiera ditt användarkonto

Exempel

Get Deployment Status Slot

Exempelbegäran

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5?api-version=2024-04-01

Exempelsvar

{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
  "name": "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
  "type": "Microsoft.Web/sites/slots/deploymentStatus",
  "properties": {
    "deploymentId": "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
    "status": "RuntimeSuccessful",
    "numberOfInstancesInProgress": 0,
    "numberOfInstancesSuccessful": 1,
    "numberOfInstancesFailed": 0,
    "failedInstancesLogs": [],
    "errors": null
  }
}
{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
  "name": "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
  "type": "Microsoft.Web/sites/slots/deploymentStatus",
  "properties": {
    "deploymentId": "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5",
    "status": "RuntimeStarting",
    "numberOfInstancesInProgress": 1,
    "numberOfInstancesSuccessful": 0,
    "numberOfInstancesFailed": 0,
    "failedInstancesLogs": [],
    "errors": null
  }
}

Definitioner

Name Description
CsmDeploymentStatus

Nyttolast för distributionsstatussvar.

DefaultErrorResponse

App Service-felsvar.

DeploymentBuildStatus

Distributionsversionsstatus.

Details
Error

Felmodell.

ErrorEntity

Brödtexten i felsvaret som returneras från API:et.

CsmDeploymentStatus

Nyttolast för distributionsstatussvar.

Name Typ Description
id

string

Resurs-ID.

kind

string

Typ av resurs.

name

string

Resursnamn.

properties.deploymentId

string

Distributionsåtgärds-ID.

properties.errors

ErrorEntity[]

Lista över fel.

properties.failedInstancesLogs

string[]

Lista över URL:er som pekar på loggar för instanser som inte kunde etableras.

properties.numberOfInstancesFailed

integer (int32)

Det gick inte att etablera antalet platsinstanser.

properties.numberOfInstancesInProgress

integer (int32)

Antal platsinstanser som för närvarande etableras.

properties.numberOfInstancesSuccessful

integer (int32)

Antal platsinstanser som har etablerats.

properties.status

DeploymentBuildStatus

Distributionsversionsstatus.

type

string

Resurstyp.

DefaultErrorResponse

App Service-felsvar.

Name Typ Description
error

Error

Felmodell.

DeploymentBuildStatus

Distributionsversionsstatus.

Värde Description
BuildAborted
BuildFailed
BuildInProgress
BuildPending
BuildRequestReceived
BuildSuccessful
PostBuildRestartRequired
RuntimeFailed
RuntimeStarting
RuntimeSuccessful
StartPolling
StartPollingWithRestart
TimedOut

Details

Name Typ Description
code

string

Standardiserad sträng för att programmatiskt identifiera felet.

message

string

Detaljerad felbeskrivning och felsökningsinformation.

target

string

Detaljerad felbeskrivning och felsökningsinformation.

Error

Felmodell.

Name Typ Description
code

string

Standardiserad sträng för att programmatiskt identifiera felet.

details

Details[]

Detaljerade fel.

innererror

string

Mer information om felsökningsfel.

message

string

Detaljerad felbeskrivning och felsökningsinformation.

target

string

Detaljerad felbeskrivning och felsökningsinformation.

ErrorEntity

Brödtexten i felsvaret som returneras från API:et.

Name Typ Description
code

string

Grundläggande felkod.

details

ErrorEntity[]

Felinformation.

extendedCode

string

Typ av fel.

innerErrors

ErrorEntity[]

Inre fel.

message

string

Information om felet.

messageTemplate

string

Meddelandemall.

parameters

string[]

Parametrar för mallen.

target

string

Felmålet.