Interface WorkspaceApiRevisions


public interface WorkspaceApiRevisions
Resource collection API of WorkspaceApiRevisions.
  • Method Details

    • listByService

      com.azure.core.http.rest.PagedIterable<ApiRevisionContract> listByService(String resourceGroupName, String serviceName, String workspaceId, String apiId)
      Lists all revisions of an 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 identifier. Must be unique in the current API Management service instance.
      Returns:
      paged API Revision list representation 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.
    • listByService

      com.azure.core.http.rest.PagedIterable<ApiRevisionContract> listByService(String resourceGroupName, String serviceName, String workspaceId, String apiId, String filter, Integer top, Integer skip, com.azure.core.util.Context context)
      Lists all revisions of an 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 identifier. Must be unique in the current API Management service instance.
      filter - | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>.
      top - Number of records to return.
      skip - Number of records to skip.
      context - The context to associate with this operation.
      Returns:
      paged API Revision list representation 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.