Skip to content

Commit 8d1bc8c

Browse files
authored
Merge pull request #113599 from spelluru/labsig0501
get image galleries
2 parents a59aebc + 387ab9d commit 8d1bc8c

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

articles/lab-services/configure-shared-image-gallery.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,21 @@ If you're using an Azure Resource Manager template to attach a shared image gall
8787

8888
For a complete Resource Manager template example, see these Resource Manager template samples in our public GitHub repository: [Configure a shared image gallery while creating a lab](https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/QuickStartTemplates/101-dtl-create-lab-shared-gallery-configured).
8989

90-
## Use API
90+
## Use REST API
9191

92-
### Shared image galleries - create or update
92+
### Get a list of labs
93+
94+
```rest
95+
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs?api-version= 2018-10-15-preview
96+
```
97+
98+
### Get the list of shared image galleries associated with a lab
99+
100+
```rest
101+
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries?api-version= 2018-10-15-preview
102+
```
103+
104+
### Create or update shared image gallery
93105

94106
```rest
95107
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}?api-version= 2018-10-15-preview
@@ -103,14 +115,13 @@ Body:
103115
104116
```
105117

106-
### Shared Image Galleries Images - List
118+
### List images in a shared image gallery
107119

108120
```rest
109121
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}/sharedimages?api-version= 2018-10-15-preview
110122
```
111123

112124

113125

114-
115126
## Next steps
116127
See the following articles on creating a VM using an image from the attached shared image gallery: [Create a VM using a shared image from the gallery](add-vm-use-shared-image.md)

0 commit comments

Comments
 (0)