ProductPolicy interface
Interface die een ProductBeleid vertegenwoordigt.
Methoden
create |
Hiermee wordt de beleidsconfiguratie voor het product gemaakt of bijgewerkt. |
delete(string, string, string, string, string, Product |
Hiermee verwijdert u de beleidsconfiguratie op het product. |
get(string, string, string, string, Product |
Haal de beleidsconfiguratie op productniveau op. |
get |
Haal de ETag van de beleidsconfiguratie op productniveau op. |
list |
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.
De optiesparameters.
Retouren
Promise<ProductPolicyCreateOrUpdateResponse>
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.
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
Promise<ProductPolicyGetResponse>
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.
De optiesparameters.
Retouren
Promise<ProductPolicyGetEntityTagHeaders>
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.
De optiesparameters.
Retouren
Promise<PolicyCollection>