Skip to main content

offers

Creates, updates, deletes, gets or lists an offers resource.

Overview

Nameoffers
TypeResource
Idazure_extras.edge_marketplace.offers

Fields

The following fields are returned by SELECT queries:

ARM operation completed successfully.

NameDatatypeDescription
propertiesobjectThe resource-specific properties for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceUri, offerIdGet a Offer
listselectresourceUri$top, skip, maxpagesize, $filter, $skipTokenList Offer resources by parent
list_by_subscriptionselectsubscriptionId$top, skip, maxpagesize, $filter, $skipTokenList Offer resources by subscription
generate_access_tokenexecresourceUri, offerId, edgeMarketPlaceRegionA long-running resource action.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
offerIdstringId of the offer
resourceUristringThe fully qualified Azure Resource manager identifier of the resource.
subscriptionIdstringThe ID of the target subscription.
$filterstringFilter the result list using the given expression.
$skipTokenstringSkip over when retrieving results.
$topinteger (int32)The number of result items to return.
maxpagesizeinteger (int32)The maximum number of result items per page.
skipinteger (int32)The number of result items to skip.

SELECT examples

Get a Offer

SELECT
properties
FROM azure_extras.edge_marketplace.offers
WHERE resourceUri = '{{ resourceUri }}' -- required
AND offerId = '{{ offerId }}' -- required
;

Lifecycle Methods

A long-running resource action.

EXEC azure_extras.edge_marketplace.offers.generate_access_token 
@resourceUri='{{ resourceUri }}' --required,
@offerId='{{ offerId }}' --required
@@json=
'{
"publisherName": "{{ publisherName }}",
"edgeMarketPlaceRegion": "{{ edgeMarketPlaceRegion }}",
"egeMarketPlaceResourceId": "{{ egeMarketPlaceResourceId }}",
"hypervGeneration": "{{ hypervGeneration }}",
"marketPlaceSku": "{{ marketPlaceSku }}",
"marketPlaceSkuVersion": "{{ marketPlaceSkuVersion }}",
"deviceSku": "{{ deviceSku }}",
"deviceVersion": "{{ deviceVersion }}"
}'
;