Skip to content

Commit

Permalink
add cli.md for storage (Azure#8577)
Browse files Browse the repository at this point in the history
* add cli.md for storage

* update testcase
  • Loading branch information
00Kai0 authored and tasharm-0412 committed Mar 4, 2020
1 parent 30e5a1f commit 774b8ca
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "Standard_GRS"
},
"kind": "Storage",
"location": "eastus2euap",
"location": "eastus",
"properties": {
"isHnsEnabled": true,
"routingPreference": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.Storage/storageAccounts/sto4445",
"kind": "Storage",
"location": "eastus2euap",
"location": "eastus",
"name": "sto4445",
"properties": {
"isHnsEnabled": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res2627/providers/Microsoft.Storage/storageAccounts/sto1125",
"kind": "Storage",
"location": "eastus2euap",
"location": "eastus",
"name": "sto1125",
"properties": {
"isHnsEnabled": true,
Expand All @@ -38,7 +38,7 @@
"file": "https://sto1125-internetrouting.file.core.windows.net/"
}
},
"primaryLocation": "eastus2euap",
"primaryLocation": "eastus",
"provisioningState": "Succeeded",
"routingPreference": {
"routingChoice": "MicrosoftRouting",
Expand Down Expand Up @@ -83,7 +83,7 @@
"type": "SystemAssigned"
},
"kind": "Storage",
"location": "eastus2euap",
"location": "eastus",
"name": "sto3699",
"properties": {
"creationTime": "2017-05-24T10:06:30.6093014Z",
Expand All @@ -93,7 +93,7 @@
"queue": "https://sto3699.queue.core.windows.net/",
"table": "https://sto3699.table.core.windows.net/"
},
"primaryLocation": "eastus2euap",
"primaryLocation": "eastus",
"provisioningState": "Succeeded",
"secondaryLocation": "centraluseuap",
"statusOfPrimary": "available",
Expand All @@ -118,7 +118,7 @@
"type": "SystemAssigned"
},
"kind": "Storage",
"location": "eastus2euap",
"location": "eastus",
"name": "sto6637",
"properties": {
"creationTime": "2017-05-24T10:09:39.5625175Z",
Expand All @@ -128,7 +128,7 @@
"queue": "https://sto6637.queue.core.windows.net/",
"table": "https://sto6637.table.core.windows.net/"
},
"primaryLocation": "eastus2euap",
"primaryLocation": "eastus",
"provisioningState": "Succeeded",
"secondaryLocation": "centraluseuap",
"statusOfPrimary": "available",
Expand All @@ -148,7 +148,7 @@
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res8186/providers/Microsoft.Storage/storageAccounts/sto834",
"kind": "Storage",
"location": "eastus2euap",
"location": "eastus",
"name": "sto834",
"properties": {
"creationTime": "2017-05-24T13:28:20.8686541Z",
Expand All @@ -158,7 +158,7 @@
"queue": "https://sto834.queue.core.windows.net/",
"table": "https://sto834.table.core.windows.net/"
},
"primaryLocation": "eastus2euap",
"primaryLocation": "eastus",
"provisioningState": "Succeeded",
"secondaryLocation": "centraluseuap",
"statusOfPrimary": "available",
Expand All @@ -183,7 +183,7 @@
"type": "SystemAssigned"
},
"kind": "Storage",
"location": "eastus2euap",
"location": "eastus",
"name": "sto9174",
"properties": {
"creationTime": "2017-05-24T09:46:19.6556989Z",
Expand All @@ -193,7 +193,7 @@
"queue": "https://sto9174.queue.core.windows.net/",
"table": "https://sto9174.table.core.windows.net/"
},
"primaryLocation": "eastus2euap",
"primaryLocation": "eastus",
"provisioningState": "Succeeded",
"secondaryLocation": "centraluseuap",
"statusOfPrimary": "available",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res6117/providers/Microsoft.Storage/storageAccounts/sto4036",
"kind": "Storage",
"location": "eastus2euap",
"location": "eastus",
"name": "sto4036",
"properties": {
"isHnsEnabled": true,
Expand All @@ -24,7 +24,7 @@
"queue": "https://sto4036.queue.core.windows.net/",
"table": "https://sto4036.table.core.windows.net/"
},
"primaryLocation": "eastus2euap",
"primaryLocation": "eastus",
"provisioningState": "Succeeded",
"secondaryLocation": "centraluseuap",
"statusOfPrimary": "available",
Expand All @@ -44,7 +44,7 @@
{
"id": "/subscriptions/{subscription-id}/resourceGroups/res6117/providers/Microsoft.Storage/storageAccounts/sto4452",
"kind": "Storage",
"location": "eastus2euap",
"location": "eastus",
"name": "sto4452",
"properties": {
"creationTime": "2017-05-24T13:24:15.7068366Z",
Expand All @@ -54,7 +54,7 @@
"queue": "https://sto4452.queue.core.windows.net/",
"table": "https://sto4452.table.core.windows.net/"
},
"primaryLocation": "eastus2euap",
"primaryLocation": "eastus",
"provisioningState": "Succeeded",
"secondaryLocation": "centraluseuap",
"statusOfPrimary": "available",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@
"operationId": "StorageAccounts_Failover",
"description": "Failover request can be triggered for a storage account in case of availability issues. The failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover.",
"x-ms-examples": {
"StorageAccountCreate": {
"StorageAccountFailover": {
"$ref": "./examples/StorageAccountFailover.json"
}
},
Expand Down
66 changes: 66 additions & 0 deletions specification/storage/resource-manager/readme.cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
## CLI

These settings don't need to apply `--cli` on the command line.

``` yaml
cli:
cli-name: storage
package-name: azure-mgmt-storage
namespace: azure.mgmt.storage
test-scenario:
- name: StorageAccountCreate
- name: PutFileServices
- name: PutBlobServices
- name: StorageAccountPutEncryptionScope
- name: StorageAccountSetManagementPolicies
- name: PutShares
- name: StorageAccountPutPrivateEndpointConnection
- name: PutContainers
- name: CreateOrUpdateImmutabilityPolicy
- name: GetImmutabilityPolicy
- name: GetContainers
- name: StorageAccountGetPrivateEndpointConnection
- name: GetShares
- name: StorageAccountGetManagementPolicies
- name: ListContainers
- name: StorageAccountGetEncryptionScope
- name: ListShares
- name: GetBlobServices
- name: GetFileServices
- name: StorageAccountListPrivateLinkResources
- name: StorageAccountEncryptionScopeList
- name: ListBlobServices
- name: ListFileServices
- name: StorageAccountGetProperties
- name: StorageAccountListByResourceGroup
- name: UsageList
- name: StorageAccountList
- name: SkuList
- name: OperationsList
- name: ExtendImmutabilityPolicy
- name: LockImmutabilityPolicy
- name: ClearLegalHoldContainers
- name: SetLegalHoldContainers
- name: Break a lease on a container
- name: Acquire a lease on a container
- name: UpdateContainers
- name: UpdateShares
- name: StorageAccountPatchEncryptionScope
- name: StorageAccountRevokeUserDelegationKeys
- name: BlobRangesRestore
- name: StorageAccountListServiceSAS
- name: StorageAccountListAccountSAS
- name: StorageAccountRegenerateKey
- name: StorageAccountRegenerateKerbKey
- name: StorageAccountListKeys
- name: StorageAccountFailover
- name: StorageAccountEnableAD
- name: StorageAccountUpdate
- name: StorageAccountCheckNameAvailability
- name: DeleteImmutabilityPolicy
- name: DeleteContainers
- name: StorageAccountDeletePrivateEndpointConnection
- name: DeleteShares
- name: StorageAccountDeleteManagementPolicies
- name: StorageAccountDelete
```

0 comments on commit 774b8ca

Please sign in to comment.