az apim api
Manage Azure API Management API's.
Commands
Name | Description | Type | Status |
---|---|---|---|
az apim api create |
Create an API Management API. |
Core | GA |
az apim api delete |
Delete an API Management API. |
Core | GA |
az apim api export |
Export an API Management API. |
Core | GA |
az apim api import |
Import an API Management API. |
Core | GA |
az apim api list |
List API Management API's. |
Core | GA |
az apim api operation |
Manage Azure API Management API Operations. |
Core | GA |
az apim api operation create |
Creates a new operation in the API. |
Core | GA |
az apim api operation delete |
Deletes the specified operation in the API. |
Core | GA |
az apim api operation list |
List a collection of the operations for the specified API. |
Core | GA |
az apim api operation show |
Gets the details of the API Operation specified by its identifier. |
Core | GA |
az apim api operation update |
Updates the details of the operation in the API specified by its identifier. |
Core | GA |
az apim api release |
Manage Azure API Management API Release. |
Core | GA |
az apim api release create |
Creates a new Release for the API. |
Core | GA |
az apim api release delete |
Deletes the specified release in the API. |
Core | GA |
az apim api release list |
Lists all releases of an API. |
Core | GA |
az apim api release show |
Returns the details of an API release. |
Core | GA |
az apim api release update |
Updates the details of the release of the API specified by its identifier. |
Core | GA |
az apim api revision |
Manage Azure API Management API Revision. |
Core | GA |
az apim api revision create |
Create API revision. |
Core | GA |
az apim api revision list |
Lists all revisions of an API. |
Core | GA |
az apim api schema |
Manage Azure API Management API Schema's. |
Core | GA |
az apim api schema create |
Create an API Management API Schema. |
Core | GA |
az apim api schema delete |
Delete an API Management API Schema. |
Core | GA |
az apim api schema get-etag |
Get etag of an API Management API schema. |
Core | GA |
az apim api schema list |
List API Management API schema's. |
Core | GA |
az apim api schema show |
Show details of an API Management API Schema. |
Core | GA |
az apim api schema wait |
Place the CLI in a waiting state until a condition of an apim api schema is met. |
Core | GA |
az apim api show |
Show details of an API Management API. |
Core | GA |
az apim api update |
Update an API Management API. |
Core | GA |
az apim api versionset |
Manage Azure API Management API Version Set. |
Core | GA |
az apim api versionset create |
Creates a Api Version Set. |
Core | GA |
az apim api versionset delete |
Deletes specific Api Version Set. |
Core | GA |
az apim api versionset list |
Lists a collection of API Version Sets in the specified service instance. |
Core | GA |
az apim api versionset show |
Gets the details of the Api Version Set specified by its identifier. |
Core | GA |
az apim api versionset update |
Updates the details of the Api VersionSet specified by its identifier. |
Core | GA |
az apim api wait |
Place the CLI in a waiting state until a condition of an apim api is met. |
Core | GA |
az apim api create
Create an API Management API.
az apim api create --api-id
--display-name
--path
--resource-group
--service-name
[--api-type {graphql, http, soap, websocket}]
[--authorization-scope]
[--authorization-server-id]
[--bearer-token-sending-methods]
[--description]
[--no-wait]
[--open-id-provider-id]
[--protocols {http, https, ws, wss}]
[--service-url]
[--subscription-key-header-name]
[--subscription-key-query-param-name]
[--subscription-key-required]
[--subscription-required {false, true}]
Examples
Create a basic API.
az apim api create --service-name MyApim -g MyResourceGroup --api-id MyApi --path '/myapi' --display-name 'My API'
Required Parameters
Unique name of the api to be created.
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.
Property | Value |
---|---|
Parameter group: | API Arguments |
Display name of the API to be created.
Property | Value |
---|---|
Parameter group: | API Arguments |
Path to the API.
Property | Value |
---|---|
Parameter group: | API Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the API Management service instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The type of the API.
Property | Value |
---|---|
Parameter group: | API Arguments |
Accepted values: | graphql, http, soap, websocket |
Specifies the OAuth operations scope.
Specifies the OAuth authorization server ID.
Specifies the sending methods for bearer token.
Description of the API. May include HTML formatting tags.
Property | Value |
---|---|
Parameter group: | API Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Specifies the openid in the authentication setting.
Describes on which protocols the operations in this API can be invoked.
Property | Value |
---|---|
Parameter group: | API Arguments |
Accepted values: | http, https, ws, wss |
Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
Property | Value |
---|---|
Parameter group: | API Arguments |
Specifies the subscription key header name.
Property | Value |
---|---|
Parameter group: | API Arguments |
Specifies the subscription key query string parameter name.
Property | Value |
---|---|
Parameter group: | API Arguments |
Specifies whether subscription key is required during call to this API, true - API is included into closed products only, false - API is included into open products alone, null - there is a mix of products.
If true, the API requires a subscription key on requests.
Property | Value |
---|---|
Parameter group: | API Arguments |
Default value: | False |
Accepted values: | false, true |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az apim api delete
Delete an API Management API.
az apim api delete --api-id
--resource-group
--service-name
[--delete-revisions]
[--if-match]
[--no-wait]
[--yes]
Required Parameters
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.
Property | Value |
---|---|
Parameter group: | API Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the API Management service instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Delete all revisions of the Api.
ETag of the Entity.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az apim api export
Export an API Management API.
az apim api export --api-id
--ef --export-format {OpenApiJsonFile, OpenApiJsonUrl, OpenApiYamlFile, OpenApiYamlUrl, SwaggerFile, SwaggerUrl, WadlFile, WadlUrl, WsdlFile, WsdlUrl}
--resource-group
--service-name
[--file-path]
Examples
Export an API Management API to a file or returns a response containing a link of the export.
az apim api export -g MyResourceGroup --service-name MyApim --api-id MyApi --export-format OpenApiJson --file-path path
Required Parameters
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. Regex pattern: ^[^*#&+:<>?]+$.
Property | Value |
---|---|
Parameter group: | API Arguments |
Specify the format of the exporting API.
Property | Value |
---|---|
Accepted values: | OpenApiJsonFile, OpenApiJsonUrl, OpenApiYamlFile, OpenApiYamlUrl, SwaggerFile, SwaggerUrl, WadlFile, WadlUrl, WsdlFile, WsdlUrl |
The name of the resource group. The name is case insensitive.
The name of the api management service instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
File path specified to export the API.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az apim api import
Import an API Management API.
az apim api import --path
--resource-group
--service-name
--specification-format {GraphQL, OpenApi, OpenApiJson, Swagger, Wadl, Wsdl}
[--api-id]
[--api-revision]
[--api-type {graphql, http, soap, websocket}]
[--api-version]
[--api-version-set-id]
[--description]
[--display-name]
[--no-wait]
[--protocols {http, https, ws, wss}]
[--service-url]
[--soap-api-type]
[--specification-path]
[--specification-url]
[--subscription-key-header-name]
[--subscription-key-query-param-name]
[--subscription-required {false, true}]
[--wsdl-endpoint-name]
[--wsdl-service-name]
Examples
Import an API Management API From a file or a url
az apim api import -g MyResourceGroup --service-name MyApim --path MyApi --specification-url https://MySpecificationURL --specification-format OpenApiJson
Required Parameters
Required. Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance.
Property | Value |
---|---|
Parameter group: | API Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the api management service instance.
Specify the format of the imported API.
Property | Value |
---|---|
Accepted values: | GraphQL, OpenApi, OpenApiJson, Swagger, Wadl, Wsdl |
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | API Arguments |
Describes the Revision of the Api. If no value is provided, default revision 1 is created.
Property | Value |
---|---|
Parameter group: | API Arguments |
The type of the API.
Property | Value |
---|---|
Parameter group: | API Arguments |
Accepted values: | graphql, http, soap, websocket |
Describes the Version of the Api. If you add a version to a non-versioned API, an Original version will be automatically created and will respond on the default URL.
Property | Value |
---|---|
Parameter group: | API Arguments |
Describes the Version Set to be used with the API.
Property | Value |
---|---|
Parameter group: | API Arguments |
Description of the API. May include HTML formatting tags.
Property | Value |
---|---|
Parameter group: | API Arguments |
Display name of this API.
Property | Value |
---|---|
Parameter group: | API Arguments |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Describes on which protocols(one or more) the operations in this API can be invoked.
Property | Value |
---|---|
Parameter group: | API Arguments |
Accepted values: | http, https, ws, wss |
Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
Property | Value |
---|---|
Parameter group: | API Arguments |
The type of API when file format is WSDL.
File path specified to import the API.
Url specified to import the API.
Specifies the subscription key header name.
Property | Value |
---|---|
Parameter group: | API Arguments |
Specifies the subscription key query string parameter name.
Property | Value |
---|---|
Parameter group: | API Arguments |
If true, the API requires a subscription key on requests.
Property | Value |
---|---|
Parameter group: | API Arguments |
Accepted values: | false, true |
Local name of WSDL Endpoint (port) to be imported.
Local name of WSDL Service to be imported.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az apim api list
List API Management API's.
az apim api list --resource-group
--service-name
[--filter-display-name]
[--skip]
[--top]
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the API Management service instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Filter of APIs by displayName.
Property | Value |
---|---|
Parameter group: | API Arguments |
Number of records to skip.
Number of records to return.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az apim api show
Show details of an API Management API.
az apim api show --api-id
--resource-group
--service-name
Required Parameters
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.
Property | Value |
---|---|
Parameter group: | API Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the API Management service instance.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az apim api update
Update an API Management API.
az apim api update --api-id
--resource-group
--service-name
[--add]
[--api-type {graphql, http, soap, websocket}]
[--description]
[--display-name]
[--force-string]
[--if-match]
[--no-wait]
[--path]
[--protocols {http, https, ws, wss}]
[--remove]
[--service-url]
[--set]
[--subscription-key-header-name]
[--subscription-key-query-param-name]
[--subscription-required {false, true}]
[--tags]
Examples
Create a basic API.
az apim api update --service-name MyApim -g MyResourceGroup --api-id MyApi --description foo
Required Parameters
Unique name of the api to be created.
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.
Property | Value |
---|---|
Parameter group: | API Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the API Management service instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Default value: | [] |
The type of the API.
Property | Value |
---|---|
Parameter group: | API Arguments |
Accepted values: | graphql, http, soap, websocket |
Description of the API. May include HTML formatting tags.
Property | Value |
---|---|
Parameter group: | API Arguments |
API name. Must be 1 to 300 characters long.
Property | Value |
---|---|
Parameter group: | API Arguments |
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Default value: | False |
ETag of the Entity. Not required when creating an entity, but required when updating an entity. Default value is None.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Required. Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance.
Property | Value |
---|---|
Parameter group: | API Arguments |
Describes on which protocols the operations in this API can be invoked.
Property | Value |
---|---|
Parameter group: | API Arguments |
Accepted values: | http, https, ws, wss |
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Default value: | [] |
Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
Property | Value |
---|---|
Parameter group: | API Arguments |
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Default value: | [] |
Specifies the subscription key header name.
Property | Value |
---|---|
Parameter group: | API Arguments |
Specifies the subscription key query string parameter name.
Property | Value |
---|---|
Parameter group: | API Arguments |
If true, the API requires a subscription key on requests.
Property | Value |
---|---|
Parameter group: | API Arguments |
Accepted values: | false, true |
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az apim api wait
Place the CLI in a waiting state until a condition of an apim api is met.
az apim api wait --api-id
--name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Place the CLI in a waiting state until a condition of a apim api is met. (autogenerated)
az apim api wait --created --api-id MyApi --name MyApim --resource-group MyResourceGroup
Required Parameters
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. Required.
The name of the api management service instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Wait until created with 'provisioningState' at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Wait until deleted.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the resource exists.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Polling interval in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 30 |
Maximum wait in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |