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.
Property | Value |
---|---|
Parameter group: | API Arguments |
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.
Property | Value |
---|---|
Parameter group: | Schema Arguments |
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.
Property | Value |
---|---|
Parameter group: | Schema Arguments |
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.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
Property | Value |
---|---|
Parameter group: | Schema Arguments |
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.
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 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.
Property | Value |
---|---|
Parameter group: | API Arguments |
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.
Property | Value |
---|---|
Parameter group: | Schema Arguments |
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.
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 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.
Property | Value |
---|---|
Parameter group: | API Arguments |
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.
Property | Value |
---|---|
Parameter group: | Schema Arguments |
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 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.
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.
Filter of APIs by displayName.
Property | Value |
---|---|
Parameter group: | Schema 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 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.
Property | Value |
---|---|
Parameter group: | API Arguments |
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.
Property | Value |
---|---|
Parameter group: | Schema Arguments |
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 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
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 |