Skip to main content

contact_profiles

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

Overview

Namecontact_profiles
TypeResource
Idazure.orbital.contact_profiles

Fields

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectProperties of the contact profile resource.
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcontactProfileName, resourceGroupName, subscriptionIdGets the specified contact Profile in a specified resource group.
listSELECTresourceGroupName, subscriptionIdReturns list of contact profiles by Resource Group.
list_by_subscriptionSELECTsubscriptionIdReturns list of contact profiles by Subscription.
create_or_updateINSERTcontactProfileName, resourceGroupName, subscriptionId, data__propertiesCreates or updates a contact profile.
deleteDELETEcontactProfileName, resourceGroupName, subscriptionIdDeletes a specified contact profile resource.
update_tagsEXECcontactProfileName, resourceGroupName, subscriptionIdUpdates the specified contact profile tags.

SELECT examples

Returns list of contact profiles by Subscription.

SELECT
location,
properties,
tags
FROM azure.orbital.contact_profiles
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.orbital.contact_profiles (
contactProfileName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ contactProfileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified contact_profiles resource.

/*+ delete */
DELETE FROM azure.orbital.contact_profiles
WHERE contactProfileName = '{{ contactProfileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';