You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-center/manage-apis-azure-cli.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,10 +39,6 @@ az apic api create --resource-group myResourceGroup \
39
39
--title "Petstore API" --type "rest"
40
40
```
41
41
42
-
> [!NOTE]
43
-
> After creating an API, you can update the API's properties by using the [az apic api update](/cli/azure/apic/api#az_apic_api_update) command.
44
-
45
-
46
42
### Create an API version
47
43
48
44
Use the [az apic api version create](/cli/azure/apic/api/version#az_apic_api_version_create) command to create a version for your API.
@@ -117,8 +113,26 @@ az apic api register --resource-group myResourceGroup \
117
113
* By default, the command sets the API's **Lifecycle stage** to *design*.
118
114
* It creates an API version named according to the `version` property in the API definition (or *1-0-0* by default), and an API definition named according to the specification format (for example, *openapi*).
119
115
116
+
## Update API properties
117
+
120
118
After registering an API, you can update the API's properties by using the [az apic api update](/cli/azure/apic/api#az_apic_api_update), [az apic api version update](/cli/azure/apic/api/version#az_apic_api_version_update), and [az apic api definition update](/cli/azure/apic/api/definition#az_apic_api_definition_update) commands.
121
119
120
+
The following example updates the title of the *petstore-api* API to *Petstore API v2*.
121
+
122
+
```azurecli-interactive
123
+
az apic api update --resource-group myResourceGroup \
Use the [az apic api delete](/cli/azure/apic/api#az_apic_api_delete) command to delete an API and all of its version and definition resources. For example:
0 commit comments