az apim api operation
Manage Azure API Management API Operations.
Commands
Name | Description | Type | Status |
---|---|---|---|
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 operation create
Creates a new operation in the API.
az apim api operation create --api-id
--display-name
--method
--resource-group
--service-name
--url-template
[--description]
[--if-match]
[--operation-id]
[--params]
Examples
Creates a new operation in the API with several parameters
az apim api operation create --resource-group MyResourceGroup --service-name MyServiceName --api-id MyApiId --url-template "/session/{param1}/{param2}" --method "GET" --display-name MyOperationName --description MyDescription --template-parameters name=param1 description=descriptionContent type=paramType required="true" --template-parameters name=param2 required="false" type="string"
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.
Required. Operation Name.
Required. A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the API Management service instance.
Relative URL template identifying the target resource for this operation. May include parameters.
Optional Parameters
Description of the operation. May include HTML formatting tags.
ETag of the Entity.
Operation identifier within an API. Must be unique in the current API Management service instance.
Collection of URL template parameters.
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 operation delete
Deletes the specified operation in the API.
az apim api operation delete --api-id
--operation-id
--resource-group
--service-name
[--if-match]
Examples
Deletes the specified operation in the API.
az apim api operation delete --resource-group MyResourceGroup --service-name MyServiceName --api-id MyApiId --operation-id MyOperationId
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.
Operation identifier within an API. 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
ETag of the Entity.
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 operation list
List a collection of the operations for the specified API.
az apim api operation list --api-id
--resource-group
--service-name
Examples
List a collection of the operations for the specified API.
az apim api operation list --resource-group MyResourceGroup --service-name MyServiceName --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.
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 api operation show
Gets the details of the API Operation specified by its identifier.
az apim api operation show --api-id
--operation-id
--resource-group
--service-name
Examples
Gets the details of the API Operation specified by its identifier.
az apim api operation show --resource-group MyResourceGroup --service-name MyServiceName --api-id MyApiId --operation-id MyOperationId
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.
Operation identifier within an API. 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 api operation update
Updates the details of the operation in the API specified by its identifier.
az apim api operation update --api-id
--operation-id
--resource-group
--service-name
[--add]
[--description]
[--display-name]
[--force-string]
[--if-match]
[--method]
[--remove]
[--set]
[--url-template]
Examples
Updates method, displayname, description of the operation in the API specified by its identifier.
az apim api operation update --resource-group MyResourceGroup --service-name MyServiceName --api-id MyApiId --operation-id MyOperationId --method "PUT" --display-name NewDisplayName --description NewDescription
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.
Operation identifier within an API. 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>
.
Description of the operation. May include HTML formatting tags.
Required. Operation Name.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
ETag of the Entity.
Required. A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
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>
.
Relative URL template identifying the target resource for this operation. May include parameters.
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.