Skip to main content

activations

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

Overview

Nameactivations
TypeResource
Idazure_stack.azure_bridge_admin.activations

Fields

NameDatatypeDescription
idtextURI of the resource.
nametextName of the resource.
activationNametextfield from the properties object
azure_registration_resource_identifiertextfield from the properties object
display_nametextfield from the properties object
expirationtextfield from the properties object
locationtextLocation of the resource
marketplace_syndication_enabledtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextList of key value pairs.
typetextType of resource.
usage_reporting_enabledtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTactivationName, resourceGroupName, subscriptionIdReturns activation name.
listSELECTresourceGroupName, subscriptionIdReturns the list of activations.
create_or_updateINSERTactivationName, resourceGroupName, subscriptionIdCreate a new activation.
deleteDELETEactivationName, resourceGroupName, subscriptionIdDelete an activation.

SELECT examples

Returns the list of activations.

SELECT
id,
name,
activationName,
azure_registration_resource_identifier,
display_name,
expiration,
location,
marketplace_syndication_enabled,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
type,
usage_reporting_enabled
FROM azure_stack.azure_bridge_admin.vw_activations
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_stack.azure_bridge_admin.activations (
activationName,
resourceGroupName,
subscriptionId,
displayName,
azureRegistrationResourceIdentifier,
provisioningState,
expiration,
marketplaceSyndicationEnabled,
usageReportingEnabled
)
SELECT
'{{ activationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ displayName }}',
'{{ azureRegistrationResourceIdentifier }}',
'{{ provisioningState }}',
'{{ expiration }}',
{{ marketplaceSyndicationEnabled }},
{{ usageReportingEnabled }}
;

DELETE example

Deletes the specified activations resource.

/*+ delete */
DELETE FROM azure_stack.azure_bridge_admin.activations
WHERE activationName = '{{ activationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';