Skip to main content

offer_delegations

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

Overview

Nameoffer_delegations
TypeResource
Idazure_stack.subscriptions_admin.offer_delegations

Fields

NameDatatypeDescription
idtextURI of the resource.
nametextName of the resource.
locationtextLocation of the resource
offertextfield from the properties object
offerDelegationNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
subscription_idtextfield from the properties object
tagstextList of key-value pairs.
typetextType of resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECToffer, offerDelegationName, resourceGroupName, subscriptionIdGet the specified offer delegation.
listSELECToffer, resourceGroupName, subscriptionIdGet the list of offer delegations.
create_or_updateINSERToffer, offerDelegationName, resourceGroupName, subscriptionIdCreate or update the offer delegation.
deleteDELETEoffer, offerDelegationName, resourceGroupName, subscriptionIdDelete the specified offer delegation.

SELECT examples

Get the list of offer delegations.

SELECT
id,
name,
location,
offer,
offerDelegationName,
resourceGroupName,
subscriptionId,
subscription_id,
tags,
type
FROM azure_stack.subscriptions_admin.vw_offer_delegations
WHERE offer = '{{ offer }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new offer_delegations resource.

/*+ create */
INSERT INTO azure_stack.subscriptions_admin.offer_delegations (
offer,
offerDelegationName,
resourceGroupName,
subscriptionId,
properties,
location
)
SELECT
'{{ offer }}',
'{{ offerDelegationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}'
;

DELETE example

Deletes the specified offer_delegations resource.

/*+ delete */
DELETE FROM azure_stack.subscriptions_admin.offer_delegations
WHERE offer = '{{ offer }}'
AND offerDelegationName = '{{ offerDelegationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';