az apim product
Manage Azure API Management Product's.
Commands
Name | Description | Type | Status |
---|---|---|---|
az apim product api |
Manage Azure API Management Product's APIs. |
Core | GA |
az apim product api add |
Add an API to the specified product. |
Core | GA |
az apim product api check |
Checks that API entity specified by identifier is associated with the Product entity. |
Core | GA |
az apim product api delete |
Deletes the specified API from the specified product. |
Core | GA |
az apim product api list |
Lists a collection of the APIs associated with a product. |
Core | GA |
az apim product create |
Creates a product. |
Core | GA |
az apim product delete |
Delete product. |
Core | GA |
az apim product list |
Lists a collection of products in the specified service instance. |
Core | GA |
az apim product show |
Gets the details of the product specified by its identifier. |
Core | GA |
az apim product update |
Update existing product details. |
Core | GA |
az apim product wait |
Place the CLI in a waiting state until a condition of an apim product is met. |
Core | GA |
az apim product create
Creates a product.
az apim product create --product-name
--resource-group
--service-name
[--approval-required {false, true}]
[--description]
[--legal-terms]
[--no-wait]
[--product-id]
[--state {notPublished, published}]
[--subscription-required {false, true}]
[--subscriptions-limit]
Examples
Creates a product.
az apim product create --resource-group MyResourceGroup --service-name MyServiceName --product-id MyProductID --product-name MyProductName --description MyDescription --legal-terms MyTerms --subscription-required true --approval-required true --subscriptions-limit 8 --state "published"
Required Parameters
Product name.
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
Whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can use any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false.
Product description. May include HTML formatting tags.
Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process.
Do not wait for the long-running operation to finish.
Product identifier. Must be unique in the current API Management service instance.
Whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. Possible values include: 'notPublished', 'published'.
Whether a product subscription is required for accessing APIs included in this product.
Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false.
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 product delete
Delete product.
az apim product delete --product-id
--resource-group
--service-name
[--delete-subscriptions]
[--if-match]
[--no-wait]
[--yes]
Examples
Delete product with all subscriptions to this product.
az apim product delete --resource-group MyResourceGroup --service-name MyServiceName --product-id MyProductID --delete-subscriptions true
Required Parameters
Product identifier. Must be unique in the current API Management service instance.
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
Delete existing subscriptions associated with the product or not.
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 product list
Lists a collection of products in the specified service instance.
az apim product list --resource-group
--service-name
Examples
List all products for this APIM instance.
az apim product list --resource-group MyResourceGroup --service-name MyServiceName
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.
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 product show
Gets the details of the product specified by its identifier.
az apim product show --product-id
--resource-group
--service-name
Examples
Gets the details of the product specified by its identifier.
az apim product show --resource-group MyResourceGroup --service-name MyServiceName --product-id MyProductID
Required Parameters
Product identifier. Must be unique in the current API Management service instance.
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.
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 product update
Update existing product details.
az apim product update --product-id
--resource-group
--service-name
[--add]
[--approval-required {false, true}]
[--description]
[--force-string]
[--if-match]
[--legal-terms]
[--no-wait]
[--product-name]
[--remove]
[--set]
[--state {notPublished, published}]
[--subscription-required {false, true}]
[--subscriptions-limit]
Examples
Update existing product details.
az apim product update --resource-group MyResourceGroup --service-name MyServiceName --product-id MyProductID --product-name MyNewProductName --description MyNewDescription --legal-terms MyNewTerms --subscription-required false --state "notPublished"
Required Parameters
Product identifier. Must be unique in the current API Management service instance.
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
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>
.
Whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can use any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false.
Product description. May include HTML formatting tags.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
ETag of the Entity.
Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process.
Do not wait for the long-running operation to finish.
Product name.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. Possible values include: 'notPublished', 'published'.
Whether a product subscription is required for accessing APIs included in this product.
Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false.
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 product wait
Place the CLI in a waiting state until a condition of an apim product is met.
az apim product wait --product-id
--resource-group
--service-name
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Place the CLI in a waiting state until a condition of a apim is met. (autogenerated)
az apim product wait --created --resource-group MyResourceGroup --service-name MyServiceName --product-id MyProductID
Required Parameters
Product identifier. Must be unique in the current API Management service instance.
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
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