你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ApiPolicys Interface

Implements

com.microsoft.azure.arm.collection.SupportsCreating<Blank> com.microsoft.azure.arm.model.HasInner<com.microsoft.azure.management.apimanagement.v2019_01_01.implementation.ApiPolicysInner>

public interface ApiPolicys
extends com.microsoft.azure.arm.collection.SupportsCreating<Blank>, com.microsoft.azure.arm.model.HasInner<com.microsoft.azure.management.apimanagement.v2019_01_01.implementation.ApiPolicysInner>

Type representing ApiPolicys.

Method Summary

Modifier and Type Method and Description
abstract rx.Completable deleteAsync(String resourceGroupName, String serviceName, String apiId, String ifMatch)

Deletes the policy configuration at the Api.

abstract rx.Observable<ApiPolicyContract> getAsync(String resourceGroupName, String serviceName, String apiId)

Get the policy configuration at the API level.

abstract rx.Completable getEntityTagAsync(String resourceGroupName, String serviceName, String apiId)

Gets the entity state (Etag) version of the API policy specified by its identifier.

abstract rx.Observable<PolicyCollection> listByApiAsync(String resourceGroupName, String serviceName, String apiId)

Get the policy configuration at the API level.

Method Details

deleteAsync

public abstract Completable deleteAsync(String resourceGroupName, String serviceName, String apiId, String ifMatch)

Deletes the policy configuration at the Api.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.
apiId - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
ifMatch - ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

Returns:

the observable for the request

getAsync

public abstract Observable<ApiPolicyContract> getAsync(String resourceGroupName, String serviceName, String apiId)

Get the policy configuration at the API level.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.
apiId - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

Returns:

the observable for the request

getEntityTagAsync

public abstract Completable getEntityTagAsync(String resourceGroupName, String serviceName, String apiId)

Gets the entity state (Etag) version of the API policy specified by its identifier.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.
apiId - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

Returns:

the observable for the request

listByApiAsync

public abstract Observable<PolicyCollection> listByApiAsync(String resourceGroupName, String serviceName, String apiId)

Get the policy configuration at the API level.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.
apiId - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

Returns:

the observable for the request

Applies to