Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2024-03-03",
"galleryName": "myGalleryName",
"galleryImageName": "myGalleryImageName",
"galleryImageVersionName": "1.0.0",
"galleryImageVersion": {
"properties": {
"restore": true,
"storageProfile": {}
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"publishingProfile": {
"targetRegions": [
{
"name": "West US",
"regionalReplicaCount": 1,
"storageAccountType": "Standard_LRS",
"excludeFromLatest": false
},
{
"name": "East US",
"regionalReplicaCount": 2,
"storageAccountType": "Standard_ZRS",
"excludeFromLatest": false
}
],
"replicaCount": 1,
"publishedDate": "2018-01-01T00:00:00Z",
"storageAccountType": "Standard_LRS"
},
"storageProfile": {
"source": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}"
},
"osDiskImage": {
"sizeInGB": 10,
"hostCaching": "ReadOnly"
},
"dataDiskImages": [
{
"lun": 1,
"sizeInGB": 10,
"hostCaching": "None"
}
]
},
"provisioningState": "Updating"
},
"location": "West US",
"name": "1.0.0"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,9 @@
},
"Update a simple Gallery Image Version without source id.": {
"$ref": "./examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json"
},
"Restore a Soft Deleted Gallery Image Version": {
"$ref": "./examples/galleryExamples/GalleryImageVersion_Update_RestoreSoftDeleted.json"
}
}
},
Expand Down Expand Up @@ -2435,6 +2438,10 @@
},
"securityProfile": {
"$ref": "#/definitions/ImageVersionSecurityProfile"
},
"restore": {
"type": "boolean",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we update at least 1 example to utilize this new property

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

"description": "Indicates if this is a soft-delete resource restoration request."
}
},
"required": [
Expand Down