Skip to content

Commit 6a5997f

Browse files
authored
Merge pull request #118631 from jddarby/jddarby/cli-changes
Update docs to account for changes to the AOSM CLI
2 parents b4cde77 + 225a4db commit 6a5997f

File tree

1 file changed

+21
-111
lines changed

1 file changed

+21
-111
lines changed

articles/operator-service-manager/publisher-resource-preview-management.md

Lines changed: 21 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -64,37 +64,15 @@ Immutable artifacts are tested artifacts that can't be modified or overwritten.
6464

6565

6666
### Update Artifact Manifest state
67+
Use the following Azure CLI command to change the state of a artifact manifest resource.
6768

68-
### HTTP Method: POST URL
69-
70-
```http
71-
https://management.azure.com/{artifactManifestResourceId}/updateState?api-version=2023-09-01
72-
```
73-
74-
Where artifactManifestResourceId is the full resource ID of the Artifact Manifest resource
75-
76-
### Request body
77-
78-
```json
79-
{
80-
"artifactManifestState": "Uploaded"
81-
}
82-
```
83-
84-
### Submit POST
85-
86-
Submit the POST using `az rest` in the Azure CLI.
87-
8869
```azurecli
89-
az rest --method post --uri {artifactManifestResourceId}/updateState?api-version=2023-09-01 --body "{\"artifactManifestState\": \"Uploaded\"}"
90-
```
91-
92-
Where *{artifactManifestResourceId}* is the full resource ID of the Artifact Manifest resource
93-
94-
Then issue the get command to check that the artifactManifestState change is complete.
95-
96-
```azurecli
97-
az rest --method get --uri {artifactManifestResourceId}?api-version=2023-09-01
70+
az aosm publisher artifact-manifest update-state \
71+
--resource-group <myResourceGroupName> \
72+
--publisher-name <myPublisherName> \
73+
--artifact-store-name <myArtifactStoreName> \
74+
--name <myArtifactManifestName> \
75+
--state Uploaded
9876
```
9977

10078
## Network Function Definition and Network Service Design state machine
@@ -103,93 +81,25 @@ az rest --method post --uri {artifactManifestResourceId}/updateState?api-version
10381
- Deprecated state is a terminal state but can be reversed.
10482

10583
## Update Network Function definition version state
106-
107-
Use the following API to update the state of a Network Function Definition Version (NFDV).
108-
109-
### HTTP Method: POST URL
110-
111-
```http
112-
https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/publishers/{publisherName}/networkfunctiondefinitiongroups/{networkfunctiondefinitiongroups}/networkfunctiondefinitionversions/{networkfunctiondefinitionversions}/updateState?api-version=2023-09-01
113-
```
114-
115-
### URI parameters
116-
117-
The following table describes the parameters used with the preceding URL.
118-
119-
|Name |Description |
120-
|---------|---------|
121-
|subscriptionId | The subscription ID.
122-
|resourceGroupName | The name of the resource group. |
123-
|publisherName | The name of the publisher. |
124-
|networkfunctiondefinitiongroups | The name of the network function definition groups.
125-
|networkfunctiondefinitionversions | The network function definition version. |
126-
|api-version | The API version to use for this operation. |
127-
128-
129-
### Request body
130-
131-
```json
132-
{
133-
"versionState": "Active | Deprecated"
134-
}
135-
```
136-
### Submit post
137-
138-
Submit the POST using `az rest` in the Azure CLI.
139-
140-
```azurecli
141-
az rest --method post --uri {nfdvresourceId}/updateState?api-version=2023-09-01 --body "{\"versionState\": \"Active\"}"
142-
```
143-
Where *{nfdvresourceId}* is the full resource ID of the Network Function Definition Version
144-
145-
Then issue the get command to check that the versionState change is complete.
84+
Use the following Azure CLI command to change the state of a Network Function Definition Version resource.
14685

14786
```azurecli
148-
az rest --method get --uri {nfdvresourceId}?api-version=2023-09-01
87+
az aosm publisher network-function-definition version update-state \
88+
--resource-group <myResourceGroup> \
89+
--publisher-name <myPublisherName> \
90+
--group-name <myNetworkFunctionDefinitionGroupName> \
91+
--version-name <myNetworkFunctionDefinitionVersionName> \
92+
--version-state Active | Deprecated
14993
```
15094

15195
## Update Network Service Design Version (NSDV) version state
152-
153-
Use the following API to update the state of a Network Service Design Version (NSDV).
154-
155-
### HTTP Method: POST URL
156-
157-
```http
158-
https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/publishers/{publisherName}/networkservicedesigngroups/{nsdName}/networkservicedesignversions/{nsdVersion}/updateState?api-version=2023-09-01
159-
```
160-
161-
### URI parameters
162-
163-
The following table describes the parameters used with the preceding URL.
164-
165-
|Name |Description |
166-
|---------|---------|
167-
|subscriptionId | The subscription ID.
168-
|resourceGroupName | The name of the resource group. |
169-
|publisherName | The name of the publisher. |
170-
|nsdName | The name of the network service design.
171-
|nsdVersion | The network service design version. |
172-
|api-version | The API version to use for this operation. |
173-
174-
175-
### Request body
176-
177-
```json
178-
{
179-
"versionState": "Active | Deprecated"
180-
}
181-
```
182-
### Submit post
183-
184-
Submit the POST using `az rest` in the Azure CLI.
185-
186-
```azurecli
187-
az rest --method post --uri {nsdvresourceId}/updateState?api-version=2023-09-01 --body "{\"versionState\": \"Active\"}"
188-
```
189-
Where *{nsdvresourceId}* is the full resource ID of the Network Service Design
190-
191-
Then issue the get command to check that the versionState change is complete.
96+
Use the following Azure CLI command to change the state of a Network Service Design Version resource.
19297

19398
```azurecli
194-
az rest --method get --uri {nsdvresourceId}?api-version=2023-09-01
99+
az aosm publisher network-service-design version update-state \
100+
--resource-group <myResourceGroup> \
101+
--publisher-name <myPublisherName> \
102+
--group-name <myNetworkServiceDesignGroupName> \
103+
--version-name <myNetworkServiceDesignVersionName> \
104+
--version-state Active | Deprecated
195105
```

0 commit comments

Comments
 (0)