Interface WorkspaceApiPoliciesClient
public interface WorkspaceApiPoliciesClient
An instance of this class provides access to all the operations defined in WorkspaceApiPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, PolicyContractInner parameters) Creates or updates policy configuration for the API.createOrUpdateWithResponse(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, PolicyContractInner parameters, String ifMatch, com.azure.core.util.Context context) Creates or updates policy configuration for the API.voiddelete(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, String ifMatch) Deletes the policy configuration at the Api.com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, String ifMatch, com.azure.core.util.Context context) Deletes the policy configuration at the Api.get(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId) Get the policy configuration at the API level.voidgetEntityTag(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId) Gets the entity state (Etag) version of the API policy specified by its identifier.getEntityTagWithResponse(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, com.azure.core.util.Context context) Gets the entity state (Etag) version of the API policy specified by its identifier.getWithResponse(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, PolicyExportFormat format, com.azure.core.util.Context context) Get the policy configuration at the API level.com.azure.core.http.rest.PagedIterable<PolicyContractInner> Get the policy configuration at the API level.com.azure.core.http.rest.PagedIterable<PolicyContractInner> listByApi(String resourceGroupName, String serviceName, String workspaceId, String apiId, com.azure.core.util.Context context) Get the policy configuration at the API level.
-
Method Details
-
listByApi
com.azure.core.http.rest.PagedIterable<PolicyContractInner> listByApi(String resourceGroupName, String serviceName, String workspaceId, String apiId) Get the policy configuration at the API level.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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 policy configuration at the API level as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByApi
com.azure.core.http.rest.PagedIterable<PolicyContractInner> listByApi(String resourceGroupName, String serviceName, String workspaceId, String apiId, com.azure.core.util.Context context) Get the policy configuration at the API level.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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.context- The context to associate with this operation.- Returns:
- the policy configuration at the API level as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getEntityTagWithResponse
WorkspaceApiPoliciesGetEntityTagResponse getEntityTagWithResponse(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, com.azure.core.util.Context context) Gets the entity state (Etag) version of the API policy specified by its identifier.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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.policyId- The identifier of the Policy.context- The context to associate with this operation.- Returns:
- the entity state (Etag) version of the API policy specified by its identifier.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getEntityTag
void getEntityTag(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId) Gets the entity state (Etag) version of the API policy specified by its identifier.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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.policyId- The identifier of the Policy.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
WorkspaceApiPoliciesGetResponse getWithResponse(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, PolicyExportFormat format, com.azure.core.util.Context context) Get the policy configuration at the API level.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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.policyId- The identifier of the Policy.format- Policy Export Format.context- The context to associate with this operation.- Returns:
- the policy configuration at the API level.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
PolicyContractInner get(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId) Get the policy configuration at the API level.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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.policyId- The identifier of the Policy.- Returns:
- the policy configuration at the API level.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
WorkspaceApiPoliciesCreateOrUpdateResponse createOrUpdateWithResponse(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, PolicyContractInner parameters, String ifMatch, com.azure.core.util.Context context) Creates or updates policy configuration for the API.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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.policyId- The identifier of the Policy.parameters- The policy contents to apply.ifMatch- ETag of the Entity. Not required when creating an entity, but required when updating an entity.context- The context to associate with this operation.- Returns:
- policy Contract details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
PolicyContractInner createOrUpdate(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, PolicyContractInner parameters) Creates or updates policy configuration for the API.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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.policyId- The identifier of the Policy.parameters- The policy contents to apply.- Returns:
- policy Contract details.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, String ifMatch, com.azure.core.util.Context context) Deletes the policy configuration at the Api.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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.policyId- The identifier of the Policy.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.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String serviceName, String workspaceId, String apiId, PolicyIdName policyId, String ifMatch) Deletes the policy configuration at the Api.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serviceName- The name of the API Management service.workspaceId- Workspace identifier. Must be unique in the current API Management service instance.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.policyId- The identifier of the Policy.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.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-