-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add private preview API for Azure Image Builder (#5055)
* Add private preview API for Azure Image Builder * Review comments - Added list-by-resource-group and list-by-subscription - Added default error response - Removed explicit operation url (implied by async contract) - Adjusted 'delete' response codes to match expectations - Allow patch for tags - Added provider operations API * Review comment: use "nextLink" for paging * Adding readme files for SDK generation * PR: rename 'tags' -> 'artifactTags' for distributor * Add examples, fix minor issues in swagger
- Loading branch information
Showing
14 changed files
with
1,667 additions
and
0 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
...crosoft.VirtualMachineImages/preview/2018-02-01-preview/examples/CreateImageTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2018-02-01-preview", | ||
"imageTemplateName": "myImageTemplate", | ||
"parameters": { | ||
"location": "westus", | ||
"tags": { | ||
"imagetemplate_tag1": "IT_T1", | ||
"imagetemplate_tag2": "IT_T2" | ||
}, | ||
"properties": { | ||
"source": { | ||
"type": "ISO", | ||
"sourceURI": "http://redhat.com/path/to/installation.iso", | ||
"sha256Checksum": "120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "shell", | ||
"name": "Shell Customizer Example", | ||
"script": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "managedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate", | ||
"name": "myImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "ISO", | ||
"sourceURI": "http://redhat.com/path/to/installation.iso", | ||
"sha256Checksum": "120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "shell", | ||
"name": "Shell Customizer Example", | ||
"script": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "managedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...crosoft.VirtualMachineImages/preview/2018-02-01-preview/examples/DeleteImageTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"imageTemplateName":"myImageTemplate", | ||
"api-version": "2018-02-01-preview" | ||
}, | ||
"responses":{ | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.VirtualMachineImages/locations/westus/operations/85506efc-36f7-11e9-a0c2-000d3afd16e3?api-version=2018-02-01-preview" | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
.../Microsoft.VirtualMachineImages/preview/2018-02-01-preview/examples/GetImageTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2018-02-01-preview", | ||
"imageTemplateName": "myImageTemplate" | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate", | ||
"name": "myImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "ISO", | ||
"sourceURI": "http://redhat.com/path/to/installation.iso", | ||
"sha256Checksum": "120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "shell", | ||
"name": "Shell Customizer Example", | ||
"script": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "managedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ager/Microsoft.VirtualMachineImages/preview/2018-02-01-preview/examples/GetRunOutput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"imageTemplateName":"myImageTemplate", | ||
"runOutputName": "myManagedImageOutput", | ||
"api-version": "2018-02-01-preview" | ||
}, | ||
"responses":{ | ||
"200": { | ||
"body":{ | ||
"id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate/runOutputs/myManagedImageOutput", | ||
"name": "myManagedImageOutput", | ||
"properties": { | ||
"artifactId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/output_managed_image", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"type": "Microsoft.VirtualMachineImages/imageTemplates/runOutputs" | ||
} | ||
} | ||
} | ||
} |
79 changes: 79 additions & 0 deletions
79
...icrosoft.VirtualMachineImages/preview/2018-02-01-preview/examples/ListImageTemplates.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"api-version": "2018-02-01-preview" | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate", | ||
"name": "myImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "ISO", | ||
"sourceURI": "http://redhat.com/path/to/installation.iso", | ||
"sha256Checksum": "120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "shell", | ||
"name": "Shell customization example", | ||
"script": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "managedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myOtherResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/mySecondImageTemplate", | ||
"name": "mySecondImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "PlatformImage", | ||
"publisher": "Canonical", | ||
"offer": "UbuntuServer", | ||
"sku": "18.04-LTS", | ||
"version": "18.04.201902121" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "shell", | ||
"name": "Shell customization example", | ||
"script": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "managedImage", | ||
"location": "eastus", | ||
"runOutputName": "eus", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/mySecondImage-eus", | ||
"tags": { | ||
"stage": "development" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"nextLink": "/subscriptions/{subscription-id}/providers/Microsoft.VirtualMachineImages/imageTemplates?api-version=2018-02-01-preview&skip-token=2" | ||
} | ||
} | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
...soft.VirtualMachineImages/preview/2018-02-01-preview/examples/ListImageTemplatesByRg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"parameters": { | ||
"subscritionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2018-02-01-preview" | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate", | ||
"name": "myImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "ISO", | ||
"sourceURI": "http://redhat.com/path/to/installation.iso", | ||
"sha256Checksum": "120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "shell", | ||
"name": "Shell customization example", | ||
"script": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "managedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myOtherImageTemplate", | ||
"name": "myOtherImageTemplate", | ||
"location": "eastus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "PlatformImage", | ||
"publisher": "Canonical", | ||
"offer": "UbuntuServer", | ||
"sku": "18.04-LTS", | ||
"version": "18.04.201902121" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "shell", | ||
"name": "Shell customization example", | ||
"script": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "managedImage", | ||
"location": "centralus", | ||
"runOutputName": "singleImage", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/baseimage-cus" | ||
}, | ||
{ | ||
"type": "sharedImage", | ||
"galleryImageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/gallery/baseimages/images/baseimage", | ||
"replicationRegions":[ "eastus", "westus"], | ||
"runOutputName": "gallery", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/baseimage-eus" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"nextLink": "/subscriptions/{subscription-id}/resourceGroup/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates?api-version=2018-02-01-preview&skip-token=2" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...er/Microsoft.VirtualMachineImages/preview/2018-02-01-preview/examples/ListRunOutputs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"imageTemplateName":"myImageTemplate", | ||
"api-version": "2018-02-01-preview" | ||
}, | ||
"responses":{ | ||
"200": { | ||
"body":{ | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate/runOutputs/myManagedImageOutput", | ||
"name": "myManagedImageOutput", | ||
"properties": { | ||
"artifactId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/output_managed_image", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"type": "Microsoft.VirtualMachineImages/imageTemplates/runOutputs" | ||
}, | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate/runOutputs/mySharedImageOutput", | ||
"name": "mySharedImageOutput", | ||
"properties": { | ||
"artifactId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/galleries/Gallery1/images/SharedImageOutput/imageversions/1.2.3", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"type": "Microsoft.VirtualMachineImages/imageTemplates/runOutputs" | ||
} | ||
], | ||
"nextLink": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate/runOutputs?api-version=2018-02-01-preview&$skipToken=3" | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
.../Microsoft.VirtualMachineImages/preview/2018-02-01-preview/examples/RunImageTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"imageTemplateName":"myImageTemplate", | ||
"api-version": "2018-02-01-preview" | ||
}, | ||
"responses":{ | ||
"202":{ | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.VirtualMachineImages/locations/westus/operations/777b2050-36f8-11e9-b8fa-000d3afd16e3?api-version=2018-02-01-preview" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.