Partager via


PolicyRestriction interface

Interface représentant une PolicyRestriction.

Méthodes

createOrUpdate(string, string, string, PolicyRestrictionContract, PolicyRestrictionCreateOrUpdateOptionalParams)

Crée ou met à jour la configuration de restriction de stratégie du service Gestion des API.

delete(string, string, string, PolicyRestrictionDeleteOptionalParams)

Supprime la configuration de restriction de stratégie du service Gestion des API.

get(string, string, string, PolicyRestrictionGetOptionalParams)

Obtenez la restriction de stratégie du service Gestion des API.

getEntityTag(string, string, string, PolicyRestrictionGetEntityTagOptionalParams)

Obtient la version d’état d’entité (Etag) de la restriction de stratégie dans le service Gestion des API.

listByService(string, string, PolicyRestrictionListByServiceOptionalParams)

Obtient toutes les restrictions de stratégie des services Gestion des API.

update(string, string, string, string, PolicyRestrictionUpdateContract, PolicyRestrictionUpdateOptionalParams)

Met à jour la configuration de restriction de stratégie du service Gestion des API.

Détails de la méthode

createOrUpdate(string, string, string, PolicyRestrictionContract, PolicyRestrictionCreateOrUpdateOptionalParams)

Crée ou met à jour la configuration de restriction de stratégie du service Gestion des API.

function createOrUpdate(resourceGroupName: string, serviceName: string, policyRestrictionId: string, parameters: PolicyRestrictionContract, options?: PolicyRestrictionCreateOrUpdateOptionalParams): Promise<PolicyRestrictionCreateOrUpdateResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

serviceName

string

Nom du service Gestion des API.

policyRestrictionId

string

Restrictions de stratégie après un niveau d’entité

parameters
PolicyRestrictionContract

La restriction de la politique à appliquer.

options
PolicyRestrictionCreateOrUpdateOptionalParams

Paramètres d’options.

Retours

delete(string, string, string, PolicyRestrictionDeleteOptionalParams)

Supprime la configuration de restriction de stratégie du service Gestion des API.

function delete(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionDeleteOptionalParams): Promise<void>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

serviceName

string

Nom du service Gestion des API.

policyRestrictionId

string

Restrictions de stratégie après un niveau d’entité

options
PolicyRestrictionDeleteOptionalParams

Paramètres d’options.

Retours

Promise<void>

get(string, string, string, PolicyRestrictionGetOptionalParams)

Obtenez la restriction de stratégie du service Gestion des API.

function get(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionGetOptionalParams): Promise<PolicyRestrictionGetResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

serviceName

string

Nom du service Gestion des API.

policyRestrictionId

string

Restrictions de stratégie après un niveau d’entité

options
PolicyRestrictionGetOptionalParams

Paramètres d’options.

Retours

getEntityTag(string, string, string, PolicyRestrictionGetEntityTagOptionalParams)

Obtient la version d’état d’entité (Etag) de la restriction de stratégie dans le service Gestion des API.

function getEntityTag(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionGetEntityTagOptionalParams): Promise<PolicyRestrictionGetEntityTagHeaders>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

serviceName

string

Nom du service Gestion des API.

policyRestrictionId

string

Restrictions de stratégie après un niveau d’entité

options
PolicyRestrictionGetEntityTagOptionalParams

Paramètres d’options.

Retours

listByService(string, string, PolicyRestrictionListByServiceOptionalParams)

Obtient toutes les restrictions de stratégie des services Gestion des API.

function listByService(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionListByServiceOptionalParams): PagedAsyncIterableIterator<PolicyRestrictionContract, PolicyRestrictionContract[], PageSettings>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

serviceName

string

Nom du service Gestion des API.

options
PolicyRestrictionListByServiceOptionalParams

Paramètres d’options.

Retours

update(string, string, string, string, PolicyRestrictionUpdateContract, PolicyRestrictionUpdateOptionalParams)

Met à jour la configuration de restriction de stratégie du service Gestion des API.

function update(resourceGroupName: string, serviceName: string, policyRestrictionId: string, ifMatch: string, parameters: PolicyRestrictionUpdateContract, options?: PolicyRestrictionUpdateOptionalParams): Promise<PolicyRestrictionUpdateResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

serviceName

string

Nom du service Gestion des API.

policyRestrictionId

string

Restrictions de stratégie après un niveau d’entité

ifMatch

string

ETag de l’entité. ETag doit correspondre à l’état actuel de l’entité à partir de la réponse d’en-tête de la requête GET ou il doit être * pour la mise à jour inconditionnelle.

parameters
PolicyRestrictionUpdateContract

La restriction de la politique à appliquer.

options
PolicyRestrictionUpdateOptionalParams

Paramètres d’options.

Retours