Skip to content

Commit

Permalink
Merge pull request Azure#30 from calvinhzy/elastic-san2
Browse files Browse the repository at this point in the history
Add command model for `az elastic-san`
  • Loading branch information
necusjz authored Sep 30, 2022
2 parents 958bd85 + 0e82907 commit c28daab
Show file tree
Hide file tree
Showing 36 changed files with 10,946 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Commands/elastic-san/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san create_

Create an Elastic SAN.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{} 2021-11-20-preview -->

#### examples

- Create an Elastic SAN.
```bash
elastic-san create -n {san_name} -g {rg} --tags "{key1810:aaaa}" -l southcentralusstg --base-size-tib 23 --extended-capacity-size-tib 14 --sku "{name:Premium_LRS,tier:Premium}"
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san delete_

Delete an Elastic SAN.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{} 2021-11-20-preview -->

#### examples

- Delete an Elastic SAN.
```bash
elastic-san delete -g {rg} -n {san_name}
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/_list-sku.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san list-sku_

Get a list of Elastic SAN skus.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL3NrdXM=/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.elasticsan/skus 2021-11-20-preview -->

#### examples

- Get a list of Elastic SAN skus.
```bash
elastic-san list-sku
```
17 changes: 17 additions & 0 deletions Commands/elastic-san/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Command] _elastic-san list_

Get a list of Elastic SANs in a subscription.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5z/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.elasticsan/elasticsans 2021-11-20-preview -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans 2021-11-20-preview -->

#### examples

- Get a list of Elastic SANs in a subscription.
```bash
elastic-san list -g {rg}
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san show_

Get an Elastic SAN.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{} 2021-11-20-preview -->

#### examples

- Get an Elastic SAN.
```bash
elastic-san show -g {rg} -n {san_name}
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san update_

Update an Elastic SAN.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{} 2021-11-20-preview -->

#### examples

- Update an Elastic SAN.
```bash
elastic-san update -n {san_name} -g {rg} --tags "{key1710:bbbb}" --base-size-tib 25 --extended-capacity-size-tib 15
```
31 changes: 31 additions & 0 deletions Commands/elastic-san/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# [Group] _elastic-san_

Manage Elastic SAN.

## Subgroups

- [volume](/Commands/elastic-san/volume/readme.md)
: Manage Elastic SAN Volume.

- [volume-group](/Commands/elastic-san/volume-group/readme.md)
: Manage Elastic SAN Volume Group.

## Commands

- [create](/Commands/elastic-san/_create.md)
: Create an Elastic SAN.

- [delete](/Commands/elastic-san/_delete.md)
: Delete an Elastic SAN.

- [list](/Commands/elastic-san/_list.md)
: Get a list of Elastic SANs in a subscription.

- [list-sku](/Commands/elastic-san/_list-sku.md)
: Get a list of Elastic SAN skus.

- [show](/Commands/elastic-san/_show.md)
: Get an Elastic SAN.

- [update](/Commands/elastic-san/_update.md)
: Update an Elastic SAN.
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume-group/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume-group create_

Create a Volume Group.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcy97fQ==/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{} 2021-11-20-preview -->

#### examples

- Create a Volume Group.
```bash
elastic-san volume-group create -e {san_name} -n {vg_name} -g {rg} --tags "{key1910:bbbb}" --encryption EncryptionAtRestWithPlatformKey --protocol-type Iscsi --network-acls "{virtual-network-rules:["{id:{subnet_id},action:Allow}"]}"
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume-group/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume-group delete_

Delete a Volume Group.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcy97fQ==/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{} 2021-11-20-preview -->

#### examples

- Delete a Volume Group.
```bash
elastic-san volume-group delete -g {rg} -e {san_name} -n {vg_name}
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume-group/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume-group list_

List Volume Groups.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcw==/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups 2021-11-20-preview -->

#### examples

- List Volume Groups.
```bash
elastic-san volume-group list -g {rg} -e {san_name}
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume-group/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume-group show_

Get a Volume Group.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcy97fQ==/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{} 2021-11-20-preview -->

#### examples

- Get a Volume Group.
```bash
elastic-san volume-group show -g {rg} -e {san_name} -n {vg_name}
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume-group/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume-group update_

Update a Volume Group.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcy97fQ==/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{} 2021-11-20-preview -->

#### examples

- Update a Volume Group.
```bash
elastic-san volume-group update -e {san_name} -n {vg_name} -g {rg} --tags "{key2011:cccc}" --protocol-type None --network-acls "{virtual-network-rules:["{id:{subnet_id_2},action:Allow}"]}"
```
20 changes: 20 additions & 0 deletions Commands/elastic-san/volume-group/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [Group] _elastic-san volume-group_

Manage Elastic SAN Volume Group.

## Commands

- [create](/Commands/elastic-san/volume-group/_create.md)
: Create a Volume Group.

- [delete](/Commands/elastic-san/volume-group/_delete.md)
: Delete a Volume Group.

- [list](/Commands/elastic-san/volume-group/_list.md)
: List Volume Groups.

- [show](/Commands/elastic-san/volume-group/_show.md)
: Get a Volume Group.

- [update](/Commands/elastic-san/volume-group/_update.md)
: Update a Volume Group.
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume create_

Create a Volume.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcy97fS92b2x1bWVzL3t9/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{} 2021-11-20-preview -->

#### examples

- Create a Volume.
```bash
elastic-san volume create -g {rg} -e {san_name} -v {vg_name} -n {volume_name} --size-gib 2
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume delete_

Delete a Volume.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcy97fS92b2x1bWVzL3t9/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{} 2021-11-20-preview -->

#### examples

- Delete a Volume.
```bash
elastic-san volume delete -g {rg} -e {san_name} -v {vg_name} -n {volume_name}
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume list_

List Volumes in a Volume Group.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcy97fS92b2x1bWVz/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes 2021-11-20-preview -->

#### examples

- List Volumes in a Volume Group.
```bash
elastic-san volume list -g {rg} -e {san_name} -v {vg_name}
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume show_

Get a Volume.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcy97fS92b2x1bWVzL3t9/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{} 2021-11-20-preview -->

#### examples

- Get a Volume.
```bash
elastic-san volume show -g {rg} -e {san_name} -v {vg_name} -n {volume_name}
```
16 changes: 16 additions & 0 deletions Commands/elastic-san/volume/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _elastic-san volume update_

Update a Volume.

## Versions

### [2021-11-20-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5lbGFzdGljc2FuL2VsYXN0aWNzYW5zL3t9L3ZvbHVtZWdyb3Vwcy97fS92b2x1bWVzL3t9/2021-11-20-preview.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{} 2021-11-20-preview -->

#### examples

- Update a Volume.
```bash
elastic-san volume update -g {rg} -e {san_name} -v {vg_name} -n {volume_name} --size-gib 3
```
20 changes: 20 additions & 0 deletions Commands/elastic-san/volume/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [Group] _elastic-san volume_

Manage Elastic SAN Volume.

## Commands

- [create](/Commands/elastic-san/volume/_create.md)
: Create a Volume.

- [delete](/Commands/elastic-san/volume/_delete.md)
: Delete a Volume.

- [list](/Commands/elastic-san/volume/_list.md)
: List Volumes in a Volume Group.

- [show](/Commands/elastic-san/volume/_show.md)
: Get a Volume.

- [update](/Commands/elastic-san/volume/_update.md)
: Update a Volume.
3 changes: 3 additions & 0 deletions Commands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
- [dns-resolver](/Commands/dns-resolver/readme.md)
: Manage Dns Resolver

- [elastic-san](/Commands/elastic-san/readme.md)
: Manage Elastic SAN.

- [fluid-relay](/Commands/fluid-relay/readme.md)
: Manage Fluid Relay

Expand Down
Loading

0 comments on commit c28daab

Please sign in to comment.