Share via


Template Specs - Delete

Hiermee verwijdert u een sjabloonspecificatie op naam. Wanneer de bewerking is voltooid, wordt statuscode 200 geretourneerd zonder inhoud.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}?api-version=2021-05-01

URI-parameters

Name In Vereist Type Description
resourceGroupName
path True

string

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

Regex pattern: ^[-\w\._\(\)]+$

subscriptionId
path True

string

Abonnements-id die deel uitmaakt van de URI voor elke service-aanroep.

templateSpecName
path True

string

Naam van de sjabloonspecificatie.

Regex pattern: ^[-\w\._\(\)]+$

api-version
query True

string

Client-API-versie.

Antwoorden

Name Type Description
200 OK

OK - Sjabloonspecificatie verwijderd.

204 No Content

Sjabloonspecificatie bestaat niet.

Other Status Codes

TemplateSpecsError

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

TemplateSpecsDelete

Sample Request

DELETE https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec?api-version=2021-05-01

Sample Response

Definities

Name Description
ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorResponse

Foutreactie

TemplateSpecsError

Foutreactie sjabloonspecificaties.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorResponse

Foutreactie

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout aanvullende informatie.

code

string

De foutcode.

details

ErrorResponse[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

TemplateSpecsError

Foutreactie sjabloonspecificaties.

Name Type Description
error

ErrorResponse

Foutreactie
Algemene foutreactie voor alle Azure Resource Manager-API's om foutdetails voor mislukte bewerkingen te retourneren. (Dit volgt ook de indeling van de OData-foutreactie.)