-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[cplat-2024-03-03] Update spec for ValidationProfile #30658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0df10e5
0436cf4
d5d0b33
011f429
1a2a5aa
57c5d22
c82d906
ff6bb6d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "{subscription-id}", | ||
| "resourceGroupName": "myResourceGroup", | ||
| "api-version": "2024-03-03", | ||
| "galleryName": "myGalleryName", | ||
| "galleryImageName": "myGalleryImageName", | ||
| "galleryImageVersionName": "1.0.0", | ||
| "$expand": "ValidationProfile" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/locations/westus/Galleries/myGalleryName/Images/myGalleryImageName/Versions/1.0.0", | ||
| "properties": { | ||
| "publishingProfile": { | ||
| "targetRegions": [ | ||
| { | ||
| "name": "West US", | ||
| "regionalReplicaCount": 1, | ||
| "storageAccountType": "Standard_LRS", | ||
| "encryption": { | ||
| "osDiskImage": { | ||
| "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" | ||
| }, | ||
| "dataDiskImages": [ | ||
| { | ||
| "lun": 0, | ||
| "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" | ||
| }, | ||
| { | ||
| "lun": 1, | ||
| "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" | ||
| } | ||
| ] | ||
| }, | ||
| "excludeFromLatest": false | ||
| }, | ||
| { | ||
| "name": "East US", | ||
| "regionalReplicaCount": 2, | ||
| "storageAccountType": "Standard_LRS", | ||
| "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" | ||
| } | ||
| ] | ||
| }, | ||
| "safetyProfile": { | ||
| "allowDeletionOfReplicatedLocations": false, | ||
| "reportedForPolicyViolation": true, | ||
| "policyViolations": [ | ||
| { | ||
| "category": "ImageFlaggedUnsafe", | ||
| "details": "This is the policy violation details." | ||
| } | ||
| ] | ||
| }, | ||
| "validationsProfile": { | ||
| "executedValidations": [ | ||
| { | ||
| "type": "LinuxSecurityBaseline", | ||
| "status": "failed", | ||
| "version": "beta", | ||
| "executionTime": "2018-01-01T00:00:00Z" | ||
| }, | ||
| { | ||
| "type": "AzCertify", | ||
| "status": "success", | ||
| "version": "10.0.4", | ||
| "executionTime": "2018-01-01T00:00:00Z" | ||
| } | ||
| ], | ||
| "platformAttributes": [ | ||
| { | ||
| "name": "source_image_publisher", | ||
| "value": "publishValue" | ||
| }, | ||
| { | ||
| "name": "source_image_offer", | ||
| "value": "OfferValue" | ||
| }, | ||
| { | ||
| "name": "source_image_sku", | ||
| "value": "SkuValue" | ||
| }, | ||
| { | ||
| "name": "source_image_version", | ||
| "value": "1.0.0" | ||
| } | ||
| ], | ||
| "validationEtag": "2018-01-01T00:00:00Z" | ||
| }, | ||
| "provisioningState": "Succeeded" | ||
| }, | ||
| "location": "West US", | ||
| "name": "1.0.0" | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,135 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "{subscription-id}", | ||
| "resourceGroupName": "myResourceGroup", | ||
| "api-version": "2024-03-03", | ||
| "galleryName": "myGalleryName", | ||
| "galleryImageName": "myGalleryImageName", | ||
| "galleryImageVersionName": "1.0.0", | ||
| "$expand": "ValidationProfile,ReplicationStatus" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/locations/westus/Galleries/myGalleryName/Images/myGalleryImageName/Versions/1.0.0", | ||
| "properties": { | ||
| "publishingProfile": { | ||
| "targetRegions": [ | ||
| { | ||
| "name": "West US", | ||
| "regionalReplicaCount": 1, | ||
| "storageAccountType": "Standard_LRS", | ||
| "encryption": { | ||
| "osDiskImage": { | ||
| "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" | ||
| }, | ||
| "dataDiskImages": [ | ||
| { | ||
| "lun": 0, | ||
| "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" | ||
| }, | ||
| { | ||
| "lun": 1, | ||
| "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" | ||
| } | ||
| ] | ||
| }, | ||
| "excludeFromLatest": false | ||
| }, | ||
| { | ||
| "name": "East US", | ||
| "regionalReplicaCount": 2, | ||
| "storageAccountType": "Standard_LRS", | ||
| "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" | ||
| } | ||
| ] | ||
| }, | ||
| "safetyProfile": { | ||
| "allowDeletionOfReplicatedLocations": false, | ||
| "reportedForPolicyViolation": true, | ||
| "policyViolations": [ | ||
| { | ||
| "category": "ImageFlaggedUnsafe", | ||
| "details": "This is the policy violation details." | ||
| } | ||
| ] | ||
| }, | ||
| "replicationStatus": { | ||
| "aggregatedState": "Completed", | ||
| "summary": [ | ||
| { | ||
| "region": "West US", | ||
| "state": "Completed", | ||
| "details": "", | ||
| "progress": 100 | ||
| }, | ||
| { | ||
| "region": "East US", | ||
| "state": "Completed", | ||
| "details": "", | ||
| "progress": 100 | ||
| } | ||
| ] | ||
| }, | ||
| "validationsProfile": { | ||
| "executedValidations": [ | ||
| { | ||
| "type": "LinuxSecurityBaseline", | ||
| "status": "failed", | ||
| "version": "beta", | ||
| "executionTime": "2018-01-01T00:00:00Z" | ||
| }, | ||
| { | ||
| "type": "AzCertify", | ||
| "status": "success", | ||
| "version": "10.0.4", | ||
| "executionTime": "2018-01-01T00:00:00Z" | ||
| } | ||
| ], | ||
| "platformAttributes": [ | ||
| { | ||
| "name": "source_image_publisher", | ||
| "value": "publishValue" | ||
| }, | ||
| { | ||
| "name": "source_image_offer", | ||
| "value": "OfferValue" | ||
| }, | ||
| { | ||
| "name": "source_image_sku", | ||
| "value": "SkuValue" | ||
| }, | ||
| { | ||
| "name": "source_image_version", | ||
| "value": "1.0.0" | ||
| } | ||
| ], | ||
| "validationEtag": "2018-01-01T00:00:00Z" | ||
| }, | ||
| "provisioningState": "Succeeded" | ||
| }, | ||
| "location": "West US", | ||
| "name": "1.0.0" | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -798,6 +798,12 @@ | |||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "Get a gallery image version with vhd as a source.": { | ||||||||||||||||||||||||||||
| "$ref": "./examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json" | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "Get a gallery image version with validation profile.": { | ||||||||||||||||||||||||||||
| "$ref": "./examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfile.json" | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "Get a gallery image version with validation profile and replication status.": { | ||||||||||||||||||||||||||||
| "$ref": "./examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfileAndReplicationStatus.json" | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
|
|
@@ -3832,6 +3838,13 @@ | |||||||||||||||||||||||||||
| "nextLink": { | ||||||||||||||||||||||||||||
| "type": "string", | ||||||||||||||||||||||||||||
| "description": "The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries." | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "securityProfile": { | ||||||||||||||||||||||||||||
| "$ref": "#/definitions/ImageVersionSecurityProfile" | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "validationsProfile": { | ||||||||||||||||||||||||||||
| "readOnly": true, | ||||||||||||||||||||||||||||
| "$ref": "#/definitions/ValidationsProfile" | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "required": [ | ||||||||||||||||||||||||||||
|
|
@@ -4091,6 +4104,29 @@ | |||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "ValidationsProfile": { | ||||||||||||||||||||||||||||
| "type": "object", | ||||||||||||||||||||||||||||
| "properties": { | ||||||||||||||||||||||||||||
| "validationEtag": { | ||||||||||||||||||||||||||||
| "type": "string", | ||||||||||||||||||||||||||||
| "description": "The published time of the image version" | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "executedValidations": { | ||||||||||||||||||||||||||||
| "type": "array", | ||||||||||||||||||||||||||||
| "items": { | ||||||||||||||||||||||||||||
| "$ref": "#/definitions/ExecutedValidation" | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "platformAttributes": { | ||||||||||||||||||||||||||||
| "type": "array", | ||||||||||||||||||||||||||||
| "items": { | ||||||||||||||||||||||||||||
| "$ref": "#/definitions/PlatformAttribute" | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "description": "This specifies the pub, offer, sku and version of the image version metadata" | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "description": "This is the validations profile of a Gallery Image Version." | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "UefiKey": { | ||||||||||||||||||||||||||||
| "type": "object", | ||||||||||||||||||||||||||||
| "description": "A UEFI key signature.", | ||||||||||||||||||||||||||||
|
|
@@ -4131,6 +4167,43 @@ | |||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||
| "description": "Specifies information about the gallery inVMAccessControlProfile that you want to create or update." | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "ExecutedValidation": { | ||||||||||||||||||||||||||||
| "type": "object", | ||||||||||||||||||||||||||||
| "properties": { | ||||||||||||||||||||||||||||
| "type": { | ||||||||||||||||||||||||||||
| "type": "string", | ||||||||||||||||||||||||||||
| "description": "This property specifies the type of image version validation." | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "status": { | ||||||||||||||||||||||||||||
| "type": "string", | ||||||||||||||||||||||||||||
| "description": "This property specifies the status of the validationProfile of the image version." | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "version": { | ||||||||||||||||||||||||||||
| "type": "string", | ||||||||||||||||||||||||||||
| "description": "This property specifies the valid version of the validation." | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "executionTime": { | ||||||||||||||||||||||||||||
| "type": "string", | ||||||||||||||||||||||||||||
| "format": "date-time", | ||||||||||||||||||||||||||||
| "description": "This property specifies the starting timestamp." | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "description": "This is the executed Validation." | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "PlatformAttribute": { | ||||||||||||||||||||||||||||
| "type": "object", | ||||||||||||||||||||||||||||
| "properties": { | ||||||||||||||||||||||||||||
| "name": { | ||||||||||||||||||||||||||||
| "type": "string", | ||||||||||||||||||||||||||||
| "description": "This property specifies the name of the platformAttributes. It could be either source_image_publisher or source_image_offer or source_image_sku or source_image_version" | ||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we want this to be enum? model-as-string?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. service has this as string, so would like to keep as is
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. its possible to keep as string but have enum values. See: Lines 190 to 202 in 57c5d22
|
||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "value": { | ||||||||||||||||||||||||||||
| "type": "string", | ||||||||||||||||||||||||||||
| "description": "This property specifies the value of the corresponding name property." | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "description": "This is the platform attribute of the image version." | ||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| "GalleryInVMAccessControlProfileUpdate": { | ||||||||||||||||||||||||||||
| "type": "object", | ||||||||||||||||||||||||||||
| "properties": { | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.