diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GenerateAccessToken.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GenerateAccessToken.json new file mode 100644 index 000000000000..04cbbd3e6ca6 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GenerateAccessToken.json @@ -0,0 +1,33 @@ +{ + "title": "Offers_GenerateAccessToken", + "operationId": "Offers_GenerateAccessToken", + "parameters": { + "api-version": "2025-10-01-preview", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "body": { + "deviceVersion": "1.0.18062.1", + "deviceSku": "edge", + "egeMarketPlaceResourceId": "testid", + "edgeMarketPlaceRegion": "EastUS2Euap", + "hypervGeneration": "V2", + "marketPlaceSku": "2022-datacenter-azure-edition-core", + "marketPlaceSkuVersion": "20348.1129.221007", + "publisherName": "ubuntu" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + }, + "200": { + "body": { + "diskId": "abcd", + "status": "created", + "accessToken": "hidden" + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GetAccessToken.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GetAccessToken.json new file mode 100644 index 000000000000..ad15ebc8d13e --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GetAccessToken.json @@ -0,0 +1,21 @@ +{ + "title": "Offers_GetAccessToken", + "operationId": "Offers_GetAccessToken", + "parameters": { + "api-version": "2025-10-01-preview", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "body": { + "requestId": "1.0.18062.1" + } + }, + "responses": { + "200": { + "body": { + "diskId": "abcd", + "status": "created", + "accessToken": "hidden" + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GetOffer.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GetOffer.json new file mode 100644 index 000000000000..67f0a35c6c68 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GetOffer.json @@ -0,0 +1,73 @@ +{ + "title": "Offers_Get", + "operationId": "Offers_Get", + "parameters": { + "api-version": "2025-10-01-preview", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo" + }, + "responses": { + "200": { + "body": { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage", + "launchType": "Trusted" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GetPublisher.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GetPublisher.json new file mode 100644 index 000000000000..f7bfb12f3882 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/GetPublisher.json @@ -0,0 +1,21 @@ +{ + "title": "Publishers_Get", + "operationId": "Publishers_Get", + "parameters": { + "api-version": "2025-10-01-preview", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "publisherName": "canonical" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListOffers.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListOffers.json new file mode 100644 index 000000000000..6687d219ef41 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListOffers.json @@ -0,0 +1,76 @@ +{ + "title": "Offers_List", + "operationId": "Offers_List", + "parameters": { + "api-version": "2025-10-01-preview", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage", + "launchType": "Trusted" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListOffersBySubscription.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListOffersBySubscription.json new file mode 100644 index 000000000000..2991562d1886 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListOffersBySubscription.json @@ -0,0 +1,75 @@ +{ + "title": "Offers_ListBySubscription", + "operationId": "Offers_ListBySubscription", + "parameters": { + "api-version": "2025-10-01-preview", + "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListOperations.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListOperations.json new file mode 100644 index 000000000000..d2c77c022f91 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListOperations.json @@ -0,0 +1,25 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2025-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.EdgeMarketplace/Publishers", + "isDataAction": false, + "display": { + "provider": "Microsoft.EdgeMarketplace", + "resource": "Publishers", + "operation": "List the publishers", + "description": "Gets the list of the publishers." + } + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListPublishers.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListPublishers.json new file mode 100644 index 000000000000..a9a8573599b9 --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListPublishers.json @@ -0,0 +1,30 @@ +{ + "title": "Publishers_List", + "operationId": "Publishers_List", + "parameters": { + "api-version": "2025-10-01-preview", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "filter": "deviceSku eq 'edgepro1'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942", + "name": "ntegralinc1586961136942", + "type": "Microsoft.EdgeMarketplace/publishers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListPublishersBySubscription.json b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListPublishersBySubscription.json new file mode 100644 index 000000000000..019465e1175d --- /dev/null +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/examples/2025-10-01-preview/ListPublishersBySubscription.json @@ -0,0 +1,30 @@ +{ + "title": "Publishers_ListBySubscription", + "operationId": "Publishers_ListBySubscription", + "parameters": { + "api-version": "2025-10-01-preview", + "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5", + "filter": "deviceSku eq 'edgepro1'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942", + "name": "ntegralinc1586961136942", + "type": "Microsoft.EdgeMarketplace/publishers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/main.tsp b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/main.tsp index 9dbb6160ebc9..a95164fdce20 100644 --- a/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/main.tsp +++ b/specification/edgemarketplace/Microsoft.EdgeMarketPlace.Management/main.tsp @@ -24,4 +24,7 @@ namespace Microsoft.EdgeMarketplace; enum Versions { @doc("Version 2024-10-01") v2024_10_01: "2024-10-01", + + @doc("Version 2025-10-01-preview") + v2025_10_01_preview: "2025-10-01-preview", } diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/edgemarketplace.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/edgemarketplace.json new file mode 100644 index 000000000000..1022e1983f3d --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/edgemarketplace.json @@ -0,0 +1,1179 @@ +{ + "swagger": "2.0", + "info": { + "title": "EdgeMarketplaceClient", + "version": "2025-10-01-preview", + "description": "Edge marketplace extensions", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Offers" + }, + { + "name": "Publishers" + } + ], + "paths": { + "/{resourceUri}/providers/Microsoft.EdgeMarketplace/offers": { + "get": { + "operationId": "Offers_List", + "tags": [ + "Offers" + ], + "description": "List Offer resources by parent", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "$top", + "in": "query", + "description": "The number of result items to return.", + "required": false, + "type": "integer", + "format": "int32", + "x-ms-client-name": "top" + }, + { + "name": "skip", + "in": "query", + "description": "The number of result items to skip.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "maxpagesize", + "in": "query", + "description": "The maximum number of result items per page.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$filter", + "in": "query", + "description": "Filter the result list using the given expression.", + "required": false, + "type": "string", + "x-ms-client-name": "filter" + }, + { + "name": "$skipToken", + "in": "query", + "description": "Skip over when retrieving results.", + "required": false, + "type": "string", + "x-ms-client-name": "skipToken" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OfferListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Offers_List": { + "$ref": "./examples/ListOffers.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.EdgeMarketplace/offers/{offerId}": { + "get": { + "operationId": "Offers_Get", + "tags": [ + "Offers" + ], + "description": "Get a Offer", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "offerId", + "in": "path", + "description": "Id of the offer", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Offer" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Offers_Get": { + "$ref": "./examples/GetOffer.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.EdgeMarketplace/offers/{offerId}/generateAccessToken": { + "post": { + "operationId": "Offers_GenerateAccessToken", + "tags": [ + "Offers" + ], + "description": "A long-running resource action.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "offerId", + "in": "path", + "description": "Id of the offer", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/AccessTokenRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DiskAccessToken" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Offers_GenerateAccessToken": { + "$ref": "./examples/GenerateAccessToken.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.EdgeMarketplace/offers/{offerId}/getAccessToken": { + "post": { + "operationId": "Offers_GetAccessToken", + "tags": [ + "Offers" + ], + "description": "get access token.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "offerId", + "in": "path", + "description": "Id of the offer", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/AccessTokenReadRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DiskAccessToken" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Offers_GetAccessToken": { + "$ref": "./examples/GetAccessToken.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.EdgeMarketplace/publishers": { + "get": { + "operationId": "Publishers_List", + "tags": [ + "Publishers" + ], + "description": "List Publisher resources by parent", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "$top", + "in": "query", + "description": "The number of result items to return.", + "required": false, + "type": "integer", + "format": "int32", + "x-ms-client-name": "top" + }, + { + "name": "skip", + "in": "query", + "description": "The number of result items to skip.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "maxpagesize", + "in": "query", + "description": "The maximum number of result items per page.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$filter", + "in": "query", + "description": "Filter the result list using the given expression.", + "required": false, + "type": "string", + "x-ms-client-name": "filter" + }, + { + "name": "$skipToken", + "in": "query", + "description": "Skip over when retrieving results.", + "required": false, + "type": "string", + "x-ms-client-name": "skipToken" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PublisherListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Publishers_List": { + "$ref": "./examples/ListPublishers.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.EdgeMarketplace/publishers/{publisherName}": { + "get": { + "operationId": "Publishers_Get", + "tags": [ + "Publishers" + ], + "description": "Get a Publisher", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "publisherName", + "in": "path", + "description": "Name of the publisher", + "required": true, + "type": "string", + "pattern": "^.*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Publisher" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Publishers_Get": { + "$ref": "./examples/GetPublisher.json" + } + } + } + }, + "/providers/Microsoft.EdgeMarketplace/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/ListOperations.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeMarketplace/offers": { + "get": { + "operationId": "Offers_ListBySubscription", + "tags": [ + "Offers" + ], + "description": "List Offer resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OfferListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Offers_ListBySubscription": { + "$ref": "./examples/ListOffersBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeMarketplace/publishers": { + "get": { + "operationId": "Publishers_ListBySubscription", + "tags": [ + "Publishers" + ], + "description": "List Publisher resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PublisherListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Publishers_ListBySubscription": { + "$ref": "./examples/ListPublishersBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "AccessTokenReadRequest": { + "type": "object", + "description": "Access token request object", + "properties": { + "requestId": { + "type": "string", + "description": "The name of the publisher." + } + }, + "required": [ + "requestId" + ] + }, + "AccessTokenRequest": { + "type": "object", + "description": "Access token request object", + "properties": { + "publisherName": { + "type": "string", + "description": "The name of the publisher." + }, + "edgeMarketPlaceRegion": { + "type": "string", + "description": "The region where the disk will be created." + }, + "egeMarketPlaceResourceId": { + "type": "string", + "description": "The region where the disk will be created." + }, + "hypervGeneration": { + "type": "string", + "description": "The hyperv version." + }, + "marketPlaceSku": { + "type": "string", + "description": "The marketplace sku." + }, + "marketPlaceSkuVersion": { + "type": "string", + "description": "The marketplace sku version." + }, + "deviceSku": { + "type": "string", + "description": "The device sku." + }, + "deviceVersion": { + "type": "string", + "description": "The device sku version." + } + }, + "required": [ + "edgeMarketPlaceRegion" + ] + }, + "ActionType": { + "type": "string", + "description": "ActionType Enum", + "enum": [ + "Internal" + ], + "x-ms-enum": { + "name": "ActionType", + "modelAsString": true, + "values": [ + { + "name": "Internal", + "value": "Internal", + "description": "ActionType is internal" + } + ] + } + }, + "Azure.ResourceManager.ResourceProvisioningState": { + "type": "string", + "description": "The provisioning state of a resource type.", + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ResourceProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + } + ] + }, + "readOnly": true + }, + "CreatedByType": { + "type": "string", + "description": "Enum for CreatedBy", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "CreatedByType", + "modelAsString": true, + "values": [ + { + "name": "User", + "value": "User", + "description": "The resource is created by user" + }, + { + "name": "Application", + "value": "Application", + "description": "The resource is created by application" + }, + { + "name": "ManagedIdentity", + "value": "ManagedIdentity", + "description": "The resource is created by managed identity" + }, + { + "name": "Key", + "value": "Key", + "description": "The resource is created by key" + } + ] + } + }, + "DiskAccessToken": { + "type": "object", + "description": "The disk access token", + "properties": { + "diskId": { + "type": "string", + "description": "The disk id." + }, + "status": { + "type": "string", + "description": "The access token creation status." + }, + "accessToken": { + "type": "string", + "description": "The access token." + } + }, + "required": [ + "accessToken" + ] + }, + "IconFileUris": { + "type": "object", + "description": "Icon files", + "properties": { + "small": { + "type": "string", + "description": "uri of small icon" + }, + "medium": { + "type": "string", + "description": "uri of medium icon" + }, + "wide": { + "type": "string", + "description": "uri of wide icon" + }, + "large": { + "type": "string", + "description": "uri of large icon" + } + } + }, + "MarketplaceSku": { + "type": "object", + "description": "The marketplace sku", + "properties": { + "catalogPlanId": { + "type": "string", + "description": "The catalog plan id" + }, + "marketplaceSkuId": { + "type": "string", + "description": "The marketplace sku id" + }, + "type": { + "type": "string", + "description": "The type of marketplace sku" + }, + "displayName": { + "type": "string", + "description": "The display name of marketplace sku" + }, + "summary": { + "type": "string", + "description": "The summary" + }, + "longSummary": { + "type": "string", + "description": "The long summary" + }, + "description": { + "type": "string", + "description": "The description" + }, + "generation": { + "type": "string", + "description": "The generation" + }, + "displayRank": { + "type": "integer", + "format": "int32", + "description": "The display rank of the sku" + }, + "operatingSystem": { + "$ref": "#/definitions/SkuOperatingSystem", + "description": "The operating system supported" + }, + "marketplaceSkuVersions": { + "type": "array", + "description": "The marketplace sku version", + "items": { + "$ref": "#/definitions/MarketplaceSkuVersion" + }, + "x-ms-identifiers": [ + "name" + ] + } + }, + "required": [ + "catalogPlanId", + "marketplaceSkuId" + ] + }, + "MarketplaceSkuVersion": { + "type": "object", + "description": "The marketplace sku version", + "properties": { + "name": { + "type": "string", + "description": "The name of sku version" + }, + "sizeOnDiskInMb": { + "type": "integer", + "format": "int32", + "description": "The size of the image" + }, + "minimumDownloadSizeInMb": { + "type": "integer", + "format": "int32", + "description": "The size of the download" + }, + "stageName": { + "type": "string", + "description": "The stage name" + }, + "launchType": { + "$ref": "#/definitions/OfferLaunchType", + "description": "The launch type" + } + }, + "required": [ + "name" + ] + }, + "Offer": { + "type": "object", + "description": "An offer.", + "properties": { + "properties": { + "$ref": "#/definitions/OfferProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "OfferAvailability": { + "type": "string", + "description": "OfferAvailability Enum", + "enum": [ + "Private", + "Public" + ], + "x-ms-enum": { + "name": "OfferAvailability", + "modelAsString": true, + "values": [ + { + "name": "Private", + "value": "Private", + "description": "The offer availability is private" + }, + { + "name": "Public", + "value": "Public", + "description": "The offer availability is public" + } + ] + } + }, + "OfferContent": { + "type": "object", + "description": "The offer content", + "properties": { + "displayName": { + "type": "string", + "description": "The display name of the offer" + }, + "summary": { + "type": "string", + "description": "The summary" + }, + "longSummary": { + "type": "string", + "description": "The long summary" + }, + "description": { + "type": "string", + "description": "The description" + }, + "offerId": { + "type": "string", + "description": "The offer id" + }, + "offerType": { + "type": "string", + "description": "The offer type" + }, + "supportUri": { + "type": "string", + "description": "The support uri" + }, + "popularity": { + "type": "integer", + "format": "int32", + "description": "The popularity of the offer" + }, + "offerPublisher": { + "$ref": "#/definitions/OfferPublisher", + "description": "The publisher of the offer" + }, + "availability": { + "$ref": "#/definitions/OfferAvailability", + "description": "The availability of the offer" + }, + "releaseType": { + "$ref": "#/definitions/OfferReleaseType", + "description": "The release type of the offer" + }, + "iconFileUris": { + "$ref": "#/definitions/IconFileUris", + "description": "The icon files" + }, + "termsAndConditions": { + "$ref": "#/definitions/TermsAndConditions", + "description": "The terms and conditions" + }, + "categoryIds": { + "type": "array", + "description": "The category ids ", + "items": { + "type": "string" + } + }, + "operatingSystems": { + "type": "array", + "description": "The operating systems", + "items": { + "type": "string" + } + } + }, + "required": [ + "displayName", + "offerId" + ] + }, + "OfferLaunchType": { + "type": "string", + "description": "Offer launch type Enum", + "enum": [ + "Trusted", + "Unknown" + ], + "x-ms-enum": { + "name": "OfferLaunchType", + "modelAsString": true, + "values": [ + { + "name": "Trusted", + "value": "Trusted", + "description": "The offer has been certified" + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "The offer has not been certified" + } + ] + } + }, + "OfferListResult": { + "type": "object", + "description": "The response of a Offer list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Offer items on this page", + "items": { + "$ref": "#/definitions/Offer" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "OfferProperties": { + "type": "object", + "description": "The offer properties", + "properties": { + "contentVersion": { + "type": "string", + "description": "The content version" + }, + "contentUrl": { + "type": "string", + "description": "The content url" + }, + "offerContent": { + "$ref": "#/definitions/OfferContent", + "description": "The offer content" + }, + "provisioningState": { + "$ref": "#/definitions/Azure.ResourceManager.ResourceProvisioningState", + "description": "The resource provisioning state", + "readOnly": true + }, + "marketplaceSkus": { + "type": "array", + "description": "The marketplace skus", + "items": { + "$ref": "#/definitions/MarketplaceSku" + }, + "x-ms-identifiers": [ + "marketplaceSkuId" + ] + } + }, + "required": [ + "offerContent" + ] + }, + "OfferPublisher": { + "type": "object", + "description": "The offer publisher", + "properties": { + "publisherId": { + "type": "string", + "description": "The publisher Id" + }, + "publisherDisplayName": { + "type": "string", + "description": "The publisher name" + } + }, + "required": [ + "publisherId", + "publisherDisplayName" + ] + }, + "OfferReleaseType": { + "type": "string", + "description": "Offer release type Enum", + "enum": [ + "Preview", + "GA" + ], + "x-ms-enum": { + "name": "OfferReleaseType", + "modelAsString": true, + "values": [ + { + "name": "Preview", + "value": "Preview", + "description": "The offer in preview" + }, + { + "name": "GA", + "value": "GA", + "description": "The offer in GA" + } + ] + } + }, + "Origin": { + "type": "string", + "description": "Origin Enum", + "enum": [ + "user", + "system", + "user,system" + ], + "x-ms-enum": { + "name": "Origin", + "modelAsString": true, + "values": [ + { + "name": "user", + "value": "user", + "description": "Origin is user" + }, + { + "name": "system", + "value": "system", + "description": "Origin is system" + }, + { + "name": "userAndSystem", + "value": "user,system", + "description": "Origin is user and system" + } + ] + } + }, + "Publisher": { + "type": "object", + "description": "A publisher who provides offers.", + "properties": { + "properties": { + "$ref": "#/definitions/PublisherProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "PublisherListResult": { + "type": "object", + "description": "The response of a Publisher list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Publisher items on this page", + "items": { + "$ref": "#/definitions/Publisher" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PublisherProperties": { + "type": "object", + "description": "Publisher properties", + "properties": { + "provisioningState": { + "$ref": "#/definitions/Azure.ResourceManager.ResourceProvisioningState", + "description": "The resource provisioning state", + "readOnly": true + } + } + }, + "SkuOperatingSystem": { + "type": "object", + "description": "The sku operating system", + "properties": { + "family": { + "type": "string", + "description": "The family of the operating system" + }, + "type": { + "type": "string", + "description": "The type of the operating system" + }, + "name": { + "type": "string", + "description": "The name of the operating system" + } + }, + "required": [ + "name" + ] + }, + "TermsAndConditions": { + "type": "object", + "description": "Terms and conditions", + "properties": { + "legalTermsUri": { + "type": "string", + "description": "The legal terms and conditions uri" + }, + "legalTermsType": { + "type": "string", + "description": "The type of legal terms" + }, + "privacyPolicyUri": { + "type": "string", + "description": "The privacy policy uri" + } + } + } + }, + "parameters": { + "Azure.ResourceManager.ResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + } + } +} diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GenerateAccessToken.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GenerateAccessToken.json new file mode 100644 index 000000000000..04cbbd3e6ca6 --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GenerateAccessToken.json @@ -0,0 +1,33 @@ +{ + "title": "Offers_GenerateAccessToken", + "operationId": "Offers_GenerateAccessToken", + "parameters": { + "api-version": "2025-10-01-preview", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "body": { + "deviceVersion": "1.0.18062.1", + "deviceSku": "edge", + "egeMarketPlaceResourceId": "testid", + "edgeMarketPlaceRegion": "EastUS2Euap", + "hypervGeneration": "V2", + "marketPlaceSku": "2022-datacenter-azure-edition-core", + "marketPlaceSkuVersion": "20348.1129.221007", + "publisherName": "ubuntu" + } + }, + "responses": { + "202": { + "headers": { + "location": "https://foo.com/operationStatuses" + } + }, + "200": { + "body": { + "diskId": "abcd", + "status": "created", + "accessToken": "hidden" + } + } + } +} diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GetAccessToken.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GetAccessToken.json new file mode 100644 index 000000000000..ad15ebc8d13e --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GetAccessToken.json @@ -0,0 +1,21 @@ +{ + "title": "Offers_GetAccessToken", + "operationId": "Offers_GetAccessToken", + "parameters": { + "api-version": "2025-10-01-preview", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "body": { + "requestId": "1.0.18062.1" + } + }, + "responses": { + "200": { + "body": { + "diskId": "abcd", + "status": "created", + "accessToken": "hidden" + } + } + } +} diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GetOffer.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GetOffer.json new file mode 100644 index 000000000000..67f0a35c6c68 --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GetOffer.json @@ -0,0 +1,73 @@ +{ + "title": "Offers_Get", + "operationId": "Offers_Get", + "parameters": { + "api-version": "2025-10-01-preview", + "offerId": "0001-com-ubuntu-pro-jammy", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo" + }, + "responses": { + "200": { + "body": { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage", + "launchType": "Trusted" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + } + } +} diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GetPublisher.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GetPublisher.json new file mode 100644 index 000000000000..f7bfb12f3882 --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/GetPublisher.json @@ -0,0 +1,21 @@ +{ + "title": "Publishers_Get", + "operationId": "Publishers_Get", + "parameters": { + "api-version": "2025-10-01-preview", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "publisherName": "canonical" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListOffers.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListOffers.json new file mode 100644 index 000000000000..6687d219ef41 --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListOffers.json @@ -0,0 +1,76 @@ +{ + "title": "Offers_List", + "operationId": "Offers_List", + "parameters": { + "api-version": "2025-10-01-preview", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage", + "launchType": "Trusted" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListOffersBySubscription.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListOffersBySubscription.json new file mode 100644 index 000000000000..2991562d1886 --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListOffersBySubscription.json @@ -0,0 +1,75 @@ +{ + "title": "Offers_ListBySubscription", + "operationId": "Offers_ListBySubscription", + "parameters": { + "api-version": "2025-10-01-preview", + "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "contentVersion": "1.0", + "contentUrl": "test", + "provisioningState": "Succeeded", + "offerContent": { + "displayName": "Ubuntu Pro 22.04 LTS", + "summary": "Ubuntu Pro is providing additional coverage for production environments running in the cloud.", + "longSummary": "The official Ubuntu Linux, optimized for Azure with ten years of maintenance and additional security, compliance (e.g. FIPS, CIS, DISA) and management tools.", + "description": "
Ubuntu Pro is a cross-cloud OS optimized for Azure", + "offerId": "0001-com-ubuntu-pro-jammy", + "popularity": 8, + "offerPublisher": { + "publisherId": "canonical", + "publisherDisplayName": "Canonical" + }, + "offerType": "VirtualMachine", + "availability": "Preview", + "releaseType": "Preview", + "termsAndConditions": { + "legalTermsUri": "https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW14H4N", + "legalTermsType": "None", + "privacyPolicyUri": "http://www.ubuntu.com/aboutus/privacypolicy" + }, + "supportUri": "https://ubuntu.com/azure/support", + "categoryIds": [], + "iconFileUris": { + "small": "https://store-images.s-microsoft.com/image/apps.32072.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.42bcf340-fd72-405a-844d-7b0331419ec1", + "medium": "https://store-images.s-microsoft.com/image/apps.58881.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.31dd70ea-0671-4ad3-992b-6ce1a3f7a49e", + "wide": "https://store-images.s-microsoft.com/image/apps.17366.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.a2ff8d5b-de36-4d9c-be47-81e15b0c6f6a", + "large": "https://store-images.s-microsoft.com/image/apps.60707.2b66b35a-b926-4ddc-85fa-cc9d9cb874d9.77c42e2a-c945-4abb-8faa-365a38a108ed.50b643a0-de63-4ac1-88a2-d2390e2123c2" + } + }, + "marketplaceSkus": [ + { + "catalogPlanId": "canonical.0001-com-ubuntu-pro-jammypro-22_04-lts", + "marketplaceSkuId": "pro-22_04-lts", + "displayName": "pro-22_04-lts", + "type": "test", + "operatingSystem": { + "name": "linux", + "type": "test", + "family": "test" + }, + "marketplaceSkuVersions": [ + { + "name": "22.04.202204200", + "sizeOnDiskInMb": 0, + "minimumDownloadSizeInMb": 0, + "stageName": "teststage" + } + ] + } + ] + }, + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical/offers/0001-com-ubuntu-pro-jammy", + "name": "0001-com-ubuntu-pro-jammy", + "type": "Microsoft.EdgeMarketplace/publishers/offers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListOperations.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListOperations.json new file mode 100644 index 000000000000..d2c77c022f91 --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListOperations.json @@ -0,0 +1,25 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2025-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.EdgeMarketplace/Publishers", + "isDataAction": false, + "display": { + "provider": "Microsoft.EdgeMarketplace", + "resource": "Publishers", + "operation": "List the publishers", + "description": "Gets the list of the publishers." + } + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListPublishers.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListPublishers.json new file mode 100644 index 000000000000..a9a8573599b9 --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListPublishers.json @@ -0,0 +1,30 @@ +{ + "title": "Publishers_List", + "operationId": "Publishers_List", + "parameters": { + "api-version": "2025-10-01-preview", + "resourceUri": "subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo", + "filter": "deviceSku eq 'edgepro1'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942", + "name": "ntegralinc1586961136942", + "type": "Microsoft.EdgeMarketplace/publishers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListPublishersBySubscription.json b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListPublishersBySubscription.json new file mode 100644 index 000000000000..019465e1175d --- /dev/null +++ b/specification/edgemarketplace/resource-manager/Microsoft.EdgeMarketplace/preview/2025-10-01-preview/examples/ListPublishersBySubscription.json @@ -0,0 +1,30 @@ +{ + "title": "Publishers_ListBySubscription", + "operationId": "Publishers_ListBySubscription", + "parameters": { + "api-version": "2025-10-01-preview", + "subscriptionId": "4bed37fd-19a1-4d31-8b44-40267555bec5", + "filter": "deviceSku eq 'edgepro1'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/canonical", + "name": "canonical", + "type": "Microsoft.EdgeMarketplace/publishers", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/4bed37fd-19a1-4d31-8b44-40267555bec5/resourceGroups/edgemarketplace-rg/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/edgemarketplace-demo/providers/Microsoft.EdgeMarketplace/publishers/ntegralinc1586961136942", + "name": "ntegralinc1586961136942", + "type": "Microsoft.EdgeMarketplace/publishers" + } + ] + } + } + } +} diff --git a/specification/edgemarketplace/resource-manager/readme.md b/specification/edgemarketplace/resource-manager/readme.md index f7c089fa5f63..bdc7e8618a8c 100644 --- a/specification/edgemarketplace/resource-manager/readme.md +++ b/specification/edgemarketplace/resource-manager/readme.md @@ -29,7 +29,7 @@ title: EdgeMarketplaceClient description: Edge marketplace extensions openapi-type: arm openapi-subtype: rpaas -tag: package-2024-10-01 +tag: package-2025-10-01-preview ``` ``` yaml @@ -68,6 +68,15 @@ input-file: - Microsoft.EdgeMarketplace/stable/2024-10-01/edgemarketplace.json ``` +### Tag: package-2025-10-01-preview + +These settings apply only when `--tag=package-2025-10-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2025-10-01-preview' +input-file: + - Microsoft.EdgeMarketplace/preview/2025-10-01-preview/edgemarketplace.json +``` + --- # Code Generation