custom_resource_providers
Creates, updates, deletes, gets or lists a custom_resource_providers
resource.
Overview
Name | custom_resource_providers |
Type | Resource |
Id | azure.custom_providers.custom_resource_providers |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
location | string | Resource location |
properties | object | The manifest for the custom resource provider |
tags | object | Resource tags |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, resourceProviderName, subscriptionId | Gets the custom resource provider manifest. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Gets all the custom resource providers within a resource group. |
list_by_subscription | SELECT | subscriptionId | Gets all the custom resource providers within a subscription. |
create_or_update | INSERT | resourceGroupName, resourceProviderName, subscriptionId | Creates or updates the custom resource provider. |
delete | DELETE | resourceGroupName, resourceProviderName, subscriptionId | Deletes the custom resource provider. |
update | UPDATE | resourceGroupName, resourceProviderName, subscriptionId | Updates an existing custom resource provider. The only value that can be updated via PATCH currently is the tags. |
SELECT
examples
Gets all the custom resource providers within a subscription.
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.custom_providers.custom_resource_providers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new custom_resource_providers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.custom_providers.custom_resource_providers (
resourceGroupName,
resourceProviderName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceProviderName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: actions
value:
- - name: routingType
value: string
- name: name
value: string
- name: endpoint
value: string
- name: resourceTypes
value:
- - name: routingType
value: string
- name: name
value: string
- name: endpoint
value: string
- name: validations
value:
- - name: validationType
value: string
- name: specification
value: string
- name: provisioningState
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
UPDATE
example
Updates a custom_resource_providers
resource.
/*+ update */
UPDATE azure.custom_providers.custom_resource_providers
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceProviderName = '{{ resourceProviderName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified custom_resource_providers
resource.
/*+ delete */
DELETE FROM azure.custom_providers.custom_resource_providers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceProviderName = '{{ resourceProviderName }}'
AND subscriptionId = '{{ subscriptionId }}';