contact_profiles
Creates, updates, deletes, gets or lists a contact_profiles
resource.
Overview
Name | contact_profiles |
Type | Resource |
Id | azure.orbital.contact_profiles |
Fields
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Properties of the contact profile resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | contactProfileName, resourceGroupName, subscriptionId | Gets the specified contact Profile in a specified resource group. |
list | SELECT | resourceGroupName, subscriptionId | Returns list of contact profiles by Resource Group. |
list_by_subscription | SELECT | subscriptionId | Returns list of contact profiles by Subscription. |
create_or_update | INSERT | contactProfileName, resourceGroupName, subscriptionId, data__properties | Creates or updates a contact profile. |
delete | DELETE | contactProfileName, resourceGroupName, subscriptionId | Deletes a specified contact profile resource. |
update_tags | EXEC | contactProfileName, resourceGroupName, subscriptionId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.orbital.contact_profiles (
contactProfileName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ contactProfileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value: string
- name: tags
value: object
- name: location
value: string
DELETE
example
Deletes the specified contact_profiles
resource.
/*+ delete */
DELETE FROM azure.orbital.contact_profiles
WHERE contactProfileName = '{{ contactProfileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';