Share via


Deployments - Delete

Tar bort den angivna distributionen som är associerad med Cognitive Services-kontot.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}?api-version=2023-05-01

URI-parametrar

Name I Obligatorisk Typ Description
accountName
path True

string

Namnet på Cognitive Services-kontot.

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$

deploymentName
path True

string

Namnet på distributionen som är associerad med Cognitive Services-kontot

resourceGroupName
path True

string

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

subscriptionId
path True

string

ID för målprenumerationen.

api-version
query True

string

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

Svar

Name Typ Description
200 OK

OK – Ta bort distributionen.

202 Accepted

Accepterad – åtgärden startades och slutförs asynkront.

204 No Content

Inget innehåll – distributionen finns inte.

Other Status Codes

ErrorResponse

Felsvar som beskriver varför åtgärden misslyckades.

Exempel

DeleteDeployment

Sample Request

DELETE https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/deployments/deploymentName?api-version=2023-05-01

Sample Response

azure-asyncoperation: http://azure.async.operation/status

Definitioner

Name Description
ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

ErrorDetail

Felinformationen.

ErrorResponse

Felsvar

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

Name Typ Description
info

object

Den ytterligare informationen.

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.