hubs
Creates, updates, deletes, gets or lists a hubs
resource.
Overview
Name | hubs |
Type | Resource |
Id | azure_extras.customer_insights.hubs |
Fields
- vw_hubs
- hubs
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
api_endpoint | text | field from the properties object |
hubName | text | field from the properties object |
hub_billing_info | text | field from the properties object |
location | text | Resource location. |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
tenant_features | text | field from the properties object |
type | text | Resource type. |
web_endpoint | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
location | string | Resource location. |
properties | object | Properties of hub. |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | hubName, resourceGroupName, subscriptionId | Gets information about the specified hub. |
list | SELECT | subscriptionId | Gets all hubs in the specified subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Gets all the hubs in a resource group. |
create_or_update | INSERT | hubName, resourceGroupName, subscriptionId | Creates a hub, or updates an existing hub. |
delete | DELETE | hubName, resourceGroupName, subscriptionId | Deletes the specified hub. |
update | UPDATE | hubName, resourceGroupName, subscriptionId | Updates a Hub. |
SELECT
examples
Gets all hubs in the specified subscription.
- vw_hubs
- hubs
SELECT
id,
name,
api_endpoint,
hubName,
hub_billing_info,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
tenant_features,
type,
web_endpoint
FROM azure_extras.customer_insights.vw_hubs
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_extras.customer_insights.hubs
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new hubs
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.customer_insights.hubs (
hubName,
resourceGroupName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ hubName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: apiEndpoint
value: string
- name: webEndpoint
value: string
- name: provisioningState
value: string
- name: tenantFeatures
value: integer
- name: hubBillingInfo
value:
- name: skuName
value: string
- name: minUnits
value: integer
- name: maxUnits
value: integer
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
UPDATE
example
Updates a hubs
resource.
/*+ update */
UPDATE azure_extras.customer_insights.hubs
SET
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified hubs
resource.
/*+ delete */
DELETE FROM azure_extras.customer_insights.hubs
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';