az apim api revision

Manage Azure API Management API Revision.

Commands

az apim api revision create

Create API revision.

az apim api revision list

Lists all revisions of an API.

az apim api revision create

Create API revision.

az apim api revision create --api-id
                            --api-revision
                            --resource-group
                            --service-name
                            [--api-revision-description]
                            [--subscription]

Examples

Create a revision for the specfic API.

az apim api revision create --resource-group MyResourceGroup --service-name MyServiceName --api-id MyApiId --api-revision RevisionNumber --api-revision-description RevisionDescription

Required Parameters

--api-id

API 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.

--api-revision

Describes the Revision of the Api.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service-name -n

The name of the API Management service instance.

Optional Parameters

--api-revision-description --rev-description

Description of the Api Revision.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az apim api revision list

Lists all revisions of an API.

az apim api revision list --api-id
                          --resource-group
                          --service-name
                          [--query-examples]
                          [--subscription]

Examples

Lists all revisions of an API.

az apim api revision list --resource-group MyResourceGroup --service-name MyServiceName --api-id MyApiId

Required Parameters

--api-id

API 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.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service-name -n

The name of the API Management service instance.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.