configuration_services
Creates, updates, deletes, gets or lists a configuration_services
resource.
Overview
Name | configuration_services |
Type | Resource |
Id | azure.spring_apps.configuration_services |
Fields
- vw_configuration_services
- configuration_services
Name | Datatype | Description |
---|---|---|
configurationServiceName | text | field from the properties object |
generation | text | field from the properties object |
instances | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_requests | text | field from the properties object |
serviceName | text | field from the properties object |
settings | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Application Configuration Service properties payload |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configurationServiceName, resourceGroupName, serviceName, subscriptionId | Get the Application Configuration Service and its properties. |
list | SELECT | resourceGroupName, serviceName, subscriptionId | Handles requests to list all resources in a Service. |
create_or_update | INSERT | configurationServiceName, resourceGroupName, serviceName, subscriptionId | Create the default Application Configuration Service or update the existing Application Configuration Service. |
delete | DELETE | configurationServiceName, resourceGroupName, serviceName, subscriptionId | Disable the default Application Configuration Service. |
validate | EXEC | configurationServiceName, resourceGroupName, serviceName, subscriptionId | Check if the Application Configuration Service settings are valid. |
validate_resource | EXEC | configurationServiceName, resourceGroupName, serviceName, subscriptionId | Check if the Application Configuration Service resource is valid. |
SELECT
examples
Handles requests to list all resources in a Service.
- vw_configuration_services
- configuration_services
SELECT
configurationServiceName,
generation,
instances,
provisioning_state,
resourceGroupName,
resource_requests,
serviceName,
settings,
subscriptionId
FROM azure.spring_apps.vw_configuration_services
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.spring_apps.configuration_services
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new configuration_services
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.spring_apps.configuration_services (
configurationServiceName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ configurationServiceName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: string
- name: generation
value: string
- name: resourceRequests
value:
- name: cpu
value: string
- name: memory
value: string
- name: instanceCount
value: integer
- name: instances
value:
- - name: name
value: string
- name: status
value: string
- name: settings
value:
- name: gitProperty
value:
- name: repositories
value: []
- name: refreshIntervalInSeconds
value: integer
DELETE
example
Deletes the specified configuration_services
resource.
/*+ delete */
DELETE FROM azure.spring_apps.configuration_services
WHERE configurationServiceName = '{{ configurationServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';