Skip to main content

subscriptions

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

Overview

Namesubscriptions
TypeResource
Idazure_isv.oracle.subscriptions

Fields

NameDatatypeDescription
planobjectPlan for the resource.
propertiesobjectOracle Subscription resource model

Methods

NameAccessible byRequired ParamsDescription
getSELECTsubscriptionIdGet a OracleSubscription
list_by_subscriptionSELECTsubscriptionIdList OracleSubscription resources by subscription ID
create_or_updateINSERTsubscriptionIdCreate a OracleSubscription
deleteDELETEsubscriptionIdDelete a OracleSubscription
updateUPDATEsubscriptionIdUpdate a OracleSubscription
add_azure_subscriptionsEXECsubscriptionId, data__azureSubscriptionIdsAdd Azure Subscriptions

SELECT examples

Get a OracleSubscription

SELECT
plan,
properties
FROM azure_isv.oracle.subscriptions
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.oracle.subscriptions (
subscriptionId,
properties,
plan
)
SELECT
'{{ subscriptionId }}',
'{{ properties }}',
'{{ plan }}'
;

UPDATE example

Updates a subscriptions resource.

/*+ update */
UPDATE azure_isv.oracle.subscriptions
SET
plan = '{{ plan }}',
properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified subscriptions resource.

/*+ delete */
DELETE FROM azure_isv.oracle.subscriptions
WHERE subscriptionId = '{{ subscriptionId }}';