offer_delegations
Creates, updates, deletes, gets or lists a offer_delegations
resource.
Overview
Name | offer_delegations |
Type | Resource |
Id | azure_stack.subscriptions_admin.offer_delegations |
Fields
- vw_offer_delegations
- offer_delegations
Name | Datatype | Description |
---|---|---|
id | text | URI of the resource. |
name | text | Name of the resource. |
location | text | Location of the resource |
offer | text | field from the properties object |
offerDelegationName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
subscription_id | text | field from the properties object |
tags | text | List of key-value pairs. |
type | text | Type of resource. |
Name | Datatype | Description |
---|---|---|
id | string | URI of the resource. |
name | string | Name of the resource. |
location | string | Location of the resource |
properties | object | Properties for an offer delegation. |
tags | object | List of key-value pairs. |
type | string | Type of resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | offer, offerDelegationName, resourceGroupName, subscriptionId | Get the specified offer delegation. |
list | SELECT | offer, resourceGroupName, subscriptionId | Get the list of offer delegations. |
create_or_update | INSERT | offer, offerDelegationName, resourceGroupName, subscriptionId | Create or update the offer delegation. |
delete | DELETE | offer, offerDelegationName, resourceGroupName, subscriptionId | Delete the specified offer delegation. |
SELECT
examples
Get the list of offer delegations.
- vw_offer_delegations
- 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 }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.subscriptions_admin.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.subscriptions_admin.offer_delegations (
offer,
offerDelegationName,
resourceGroupName,
subscriptionId,
properties,
location
)
SELECT
'{{ offer }}',
'{{ offerDelegationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: subscriptionId
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
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 }}';