Delen via


ProductPolicy interface

Interface die een ProductBeleid vertegenwoordigt.

Methoden

createOrUpdate(string, string, string, string, PolicyContract, ProductPolicyCreateOrUpdateOptionalParams)

Hiermee wordt de beleidsconfiguratie voor het product gemaakt of bijgewerkt.

delete(string, string, string, string, string, ProductPolicyDeleteOptionalParams)

Hiermee verwijdert u de beleidsconfiguratie op het product.

get(string, string, string, string, ProductPolicyGetOptionalParams)

Haal de beleidsconfiguratie op productniveau op.

getEntityTag(string, string, string, string, ProductPolicyGetEntityTagOptionalParams)

Haal de ETag van de beleidsconfiguratie op productniveau op.

listByProduct(string, string, string, ProductPolicyListByProductOptionalParams)

Haal de beleidsconfiguratie op productniveau op.

Methodedetails

createOrUpdate(string, string, string, string, PolicyContract, ProductPolicyCreateOrUpdateOptionalParams)

Hiermee wordt de beleidsconfiguratie voor het product gemaakt of bijgewerkt.

function createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, policyId: string, parameters: PolicyContract, options?: ProductPolicyCreateOrUpdateOptionalParams): Promise<ProductPolicyCreateOrUpdateResponse>

Parameters

resourceGroupName

string

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

serviceName

string

De naam van de API Management service.

productId

string

Product-id. Moet uniek zijn in het huidige API Management service-exemplaar.

policyId

string

De id van het beleid.

parameters
PolicyContract

De beleidsinhoud die moet worden toegepast.

options
ProductPolicyCreateOrUpdateOptionalParams

De optiesparameters.

Retouren

delete(string, string, string, string, string, ProductPolicyDeleteOptionalParams)

Hiermee verwijdert u de beleidsconfiguratie op het product.

function delete(resourceGroupName: string, serviceName: string, productId: string, policyId: string, ifMatch: string, options?: ProductPolicyDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

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

serviceName

string

De naam van de API Management service.

productId

string

Product-id. Moet uniek zijn in het huidige API Management service-exemplaar.

policyId

string

De id van het beleid.

ifMatch

string

ETag van de entiteit. ETag moet overeenkomen met de huidige entiteitsstatus uit de headerreactie van de GET-aanvraag of moet * zijn voor onvoorwaardelijke update.

options
ProductPolicyDeleteOptionalParams

De optiesparameters.

Retouren

Promise<void>

get(string, string, string, string, ProductPolicyGetOptionalParams)

Haal de beleidsconfiguratie op productniveau op.

function get(resourceGroupName: string, serviceName: string, productId: string, policyId: string, options?: ProductPolicyGetOptionalParams): Promise<ProductPolicyGetResponse>

Parameters

resourceGroupName

string

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

serviceName

string

De naam van de API Management service.

productId

string

Product-id. Moet uniek zijn in het huidige API Management service-exemplaar.

policyId

string

De id van het beleid.

options
ProductPolicyGetOptionalParams

De optiesparameters.

Retouren

getEntityTag(string, string, string, string, ProductPolicyGetEntityTagOptionalParams)

Haal de ETag van de beleidsconfiguratie op productniveau op.

function getEntityTag(resourceGroupName: string, serviceName: string, productId: string, policyId: string, options?: ProductPolicyGetEntityTagOptionalParams): Promise<ProductPolicyGetEntityTagHeaders>

Parameters

resourceGroupName

string

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

serviceName

string

De naam van de API Management service.

productId

string

Product-id. Moet uniek zijn in het huidige API Management service-exemplaar.

policyId

string

De id van het beleid.

options
ProductPolicyGetEntityTagOptionalParams

De optiesparameters.

Retouren

listByProduct(string, string, string, ProductPolicyListByProductOptionalParams)

Haal de beleidsconfiguratie op productniveau op.

function listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams): Promise<PolicyCollection>

Parameters

resourceGroupName

string

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

serviceName

string

De naam van de API Management service.

productId

string

Product-id. Moet uniek zijn in het huidige API Management service-exemplaar.

options
ProductPolicyListByProductOptionalParams

De optiesparameters.

Retouren

Promise<PolicyCollection>