Skip to main content

subscription_levels

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

Overview

Namesubscription_levels
TypeResource
Idazure_extras.saas.subscription_levels

Fields

NameDatatypeDescription
idstringThe resource uri
namestringThe name of the resource
propertiesobjectsaas properties
tagsobjectthe resource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGets information about the specified Subscription Level SaaS.
list_by_azure_subscriptionSELECTsubscriptionIdGets information about all the Subscription Level SaaS in a certain Azure subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets information about all the Subscription Level SaaS in a certain resource group.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionIdCreates or updates a SaaS resource.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDeletes the specified SaaS.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdates a SaaS Subscription Level resource.
move_resourcesEXECresourceGroupName, subscriptionIdMove a specified Subscription Level SaaS.
validate_move_resourcesEXECresourceGroupName, subscriptionIdValidate whether a specified Subscription Level SaaS can be moved.

SELECT examples

Gets information about all the Subscription Level SaaS in a certain Azure subscription.

SELECT
id,
name,
properties,
tags,
type
FROM azure_extras.saas.subscription_levels
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.saas.subscription_levels (
resourceGroupName,
resourceName,
subscriptionId,
name,
tags,
location,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ name }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a subscription_levels resource.

/*+ update */
UPDATE azure_extras.saas.subscription_levels
SET
name = '{{ name }}',
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified subscription_levels resource.

/*+ delete */
DELETE FROM azure_extras.saas.subscription_levels
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';