az apim api schema
Manage Azure API Management API Schema's.
Commands
Name | Description | Type | Status |
---|---|---|---|
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 schema create
Create an API Management API Schema.
az apim api schema create --api-id
--resource-group
--schema-id
--schema-type
--service-name
[--no-wait]
[--resource-type]
[--schema-content]
[--schema-name]
[--schema-path]
Examples
Create a API Schema.
az apim api schema create --service-name MyApim -g MyResourceGroup --api-id MyApi --schema-id schemaId --schema-type schemaType --schema-path schemaFilePath
Required Parameters
Unique name of the api for which schema needs 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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Unique name of the api schema to be created.
Schema identifier. Must be unique in the current API Management service instance.
Schema type (e.g. application/json, application/vnd.ms-azure-apim.graphql.schema).
Must be a valid media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document.
The name of the API Management service instance.
Optional Parameters
Do not wait for the long-running operation to finish.
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
Json escaped string defining the document representing the Schema.
Specify either --schema-path or --schema-content not both.
The name of the schema resource.
File path specified to import schema of the API.
Specify either --schema-path or --schema-content not both.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az apim api schema delete
Delete an API Management API Schema.
az apim api schema delete --api-id
--resource-group
--schema-id
--service-name
[--if-match]
[--no-wait]
[--yes]
Examples
delete a API Schema.
az apim api schema delete --service-name MyApim -g MyResourceGroup --api-id MyApi --schema-id schemaId
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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Schema 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.
The name of the API Management service instance.
Optional Parameters
ETag of the Entity.
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az apim api schema get-etag
Get etag of an API Management API schema.
az apim api schema get-etag --api-id
--resource-group
--schema-id
--service-name
Examples
get a schema entity tag.
az apim api schema get-etag --service-name MyApim -g MyResourceGroup --api-id MyApi --schema-id schemaId
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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Schema 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.
The name of the API Management service instance.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az apim api schema list
List API Management API schema's.
az apim api schema list --api-id
--resource-group
--service-name
[--filter-display-name]
[--skip]
[--top]
Examples
Get list of schema's associated with an api id.
az apim api schema list --service-name MyApim -g MyResourceGroup --api-id MyApi
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.
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
Filter of APIs by displayName.
Number of records to skip.
Number of records to return.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az apim api schema show
Show details of an API Management API Schema.
az apim api schema show --api-id
--resource-group
--schema-id
--service-name
Examples
Get a API Schema.
az apim api schema show --service-name MyApim -g MyResourceGroup --api-id MyApi --schema-id schemaId
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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Schema 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.
The name of the API Management service instance.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az apim api schema wait
Place the CLI in a waiting state until a condition of an apim api schema is met.
az apim api schema wait --api-id
--name
--resource-group
--schema-id
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Place the CLI in a waiting state until a condition of a apim api schema is met.
az apim api schema wait --created --api-id MyApi --name MyApim --schema-id schemaId -g 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>
.
Schema id identifier. Must be unique in the current API Management service instance. Required.
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
Azure CLI