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
@@ -131,7 +131,7 @@ When you add APIs from an API Management instance to your API center using `az a
131
131
132
132
### Add a managed identity in your API center
133
133
134
-
For this scenario, your API center uses a [managed identity](/entra/identity/managed-identities-azure-resources/overview) to access APIs in your API Management instance. You can use either a system-assigned or user-assigned managed identity. If you haven't added a managed identity in your API center, you can add it in the Azure portal or by using the Azure CLI.
134
+
For this scenario, your API center uses a [managed identity](/entra/identity/managed-identities-azure-resources/overview) to access APIs in your API Management instance. Depending on your needs, use either a system-assigned or user-assigned managed identity. If you haven't added a managed identity in your API center, you can add it in the Azure portal or by using the Azure CLI.
Copy file name to clipboardExpand all lines: articles/api-center/manage-apis-azure-cli.md
+13-15Lines changed: 13 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: dlepow
5
5
ms.service: api-center
6
6
ms.custom: devx-track-azurecli
7
7
ms.topic: how-to
8
-
ms.date: 01/12/2024
8
+
ms.date: 04/30/2024
9
9
ms.author: danlep
10
10
# Customer intent: As an API program manager, I want to automate processes to register and update APIs in my Azure API center.
11
11
---
@@ -38,12 +38,10 @@ The following example creates an API named *Petstore API* in the *myResourceGrou
38
38
39
39
```azurecli-interactive
40
40
az apic api create --resource-group myResourceGroup \
41
-
--service myAPICenter --name petstore-api \
42
-
--title "Petstore API" --kind "rest"
41
+
--service myAPICenter --api-id petstore-api \
42
+
--title "Petstore API" --type "rest"
43
43
```
44
44
45
-
By default, the command sets the API's **Lifecycle stage** to *design*.
46
-
47
45
> [!NOTE]
48
46
> 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.
49
47
@@ -52,12 +50,12 @@ By default, the command sets the API's **Lifecycle stage** to *design*.
52
50
53
51
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.
54
52
55
-
The following example creates an API version named *v1-0-0* for the *petstore-api* API that you created in the previous section.
53
+
The following example creates an API version named *v1-0-0* for the *petstore-api* API that you created in the previous section. The version is set to the *testing* lifecycle stage.
56
54
57
55
```azurecli-interactive
58
56
az apic api version create --resource-group myResourceGroup \
To delete individual API versions and definitions, use [az apic api version delete](/cli/azure/apic/api/version#az-apic-api-version-delete) and [az apic api definition delete](/cli/azure/apic/api/definition#az-apic-api-definition-delete), respectively.
0 commit comments