Skip to main content

marketplaces

Creates, updates, deletes, gets or lists a marketplaces resource.

Overview

Namemarketplaces
TypeResource
Idazure.consumption.marketplaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
accountNamestringAccount name.
additionalInfostringAdditional information.
additionalPropertiesstringAdditional details of this usage item. By default this is not populated, unless it's specified in $expand.
billingPeriodIdstringThe id of the billing period resource that the usage belongs to.
consumedQuantitynumberThe quantity of usage.
consumedServicestringConsumed service name.
costCenterstringThe cost center of this department if it is a department and a costcenter exists.
currencystringThe ISO currency in which the meter is charged, for example, USD.
departmentNamestringDepartment name.
etagstringThe etag for the resource.
instanceIdstringThe uri of the resource instance that the usage is about.
instanceNamestringThe name of the resource instance that the usage is about.
isEstimatedbooleanThe estimated usage is subject to change.
isRecurringChargebooleanFlag indicating whether this is a recurring charge or not.
meterIdstringThe meter id (GUID).
offerNamestringThe type of offer.
orderNumberstringThe order number.
planNamestringThe name of plan.
pretaxCostnumberThe amount of cost before tax.
publisherNamestringThe name of publisher.
resourceGroupstringThe name of resource group.
resourceRatenumberThe marketplace resource rate.
subscriptionGuidstringSubscription guid.
subscriptionNamestringSubscription name.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
unitOfMeasurestringThe unit of measure.
usageEndstring (date-time)The end of the date time range covered by the usage detail.
usageStartstring (date-time)The start of the date time range covered by the usage detail.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectscope$filter, $top, $skiptokenLists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.

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
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.
$filterstringMay be used to filter marketplaces by properties/usageEnd (Utc time), properties/usageStart (Utc time), properties/resourceGroup, properties/instanceName or properties/instanceId. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Default value is None.
$skiptokenstringSkiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Default value is None.
$topintegerMay be used to limit the number of results to the most recent N marketplaces. Default value is None.

SELECT examples

Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.

SELECT
id,
name,
accountName,
additionalInfo,
additionalProperties,
billingPeriodId,
consumedQuantity,
consumedService,
costCenter,
currency,
departmentName,
etag,
instanceId,
instanceName,
isEstimated,
isRecurringCharge,
meterId,
offerName,
orderNumber,
planName,
pretaxCost,
publisherName,
resourceGroup,
resourceRate,
subscriptionGuid,
subscriptionName,
systemData,
tags,
type,
unitOfMeasure,
usageEnd,
usageStart
FROM azure.consumption.marketplaces
WHERE scope = '{{ scope }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $skiptoken = '{{ $skiptoken }}'
;