Share via


Endpoints - Purge Content

Hiermee verwijdert u inhoud uit CDN.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/purge?api-version=2024-02-01

URI-parameters

Name In Vereist Type Description
endpointName
path True

string

Naam van het eindpunt onder het profiel dat wereldwijd uniek is.

profileName
path True

string

Naam van het CDN-profiel dat uniek is binnen de resourcegroep.

resourceGroupName
path True

string

Naam van de resourcegroep binnen het Azure-abonnement.

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

subscriptionId
path True

string

Azure-abonnements-id.

api-version
query True

string

Versie van de API die moet worden gebruikt met de clientaanvraag. Huidige versie is 2024-02-01.

Aanvraagbody

Name Vereist Type Description
contentPaths True

string[]

Het pad naar de inhoud die moet worden opgeschoond. Kan een bestandspad of een map met jokertekens beschrijven.

Antwoorden

Name Type Description
200 OK

OK. De aanvraag is geslaagd.

202 Accepted

Geaccepteerd en de bewerking wordt asynchroon voltooid.

Headers

location: string

Other Status Codes

ErrorResponse

CDN-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

Endpoints_PurgeContent

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/purge?api-version=2024-02-01

{
  "contentPaths": [
    "/folder1"
  ]
}

Sample Response

azure-asyncoperation: https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2024-02-01

Definities

Name Description
ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

PurgeParameters

Parameters die vereist zijn voor het opschonen van inhoud.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

PurgeParameters

Parameters die vereist zijn voor het opschonen van inhoud.

Name Type Description
contentPaths

string[]

Het pad naar de inhoud die moet worden opgeschoond. Kan een bestandspad of een map met jokertekens beschrijven.