az apim product api
Manage Azure API Management Product's APIs.
Commands
Name | Description | Type | Status |
---|---|---|---|
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 api add
Add an API to the specified product.
az apim product api add --api-id
--product-id
--resource-group
--service-name
Examples
Add an API to the specified product.
az apim product api add --resource-group MyResourceGroup --service-name MyServiceName --product-id MyProductID --api-id MyAPIID
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 |
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.
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 product api check
Checks that API entity specified by identifier is associated with the Product entity.
az apim product api check --api-id
--product-id
--resource-group
--service-name
Examples
Check if the API is associated with the Product.
az apim product api check --resource-group MyResourceGroup --service-name MyServiceName --product-id MyProductID --api-id MyAPIID
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 |
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.
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 product api delete
Deletes the specified API from the specified product.
az apim product api delete --api-id
--product-id
--resource-group
--service-name
Examples
Deletes the specified API from the specified product.
az apim product api delete --resource-group MyResourceGroup --service-name MyServiceName --product-id MyProductID --api-id MyAPIID
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 |
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.
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 product api list
Lists a collection of the APIs associated with a product.
az apim product api list --product-id
--resource-group
--service-name
Examples
List all APIs associated with a product.
az apim product api list --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.
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 |