services
Creates, updates, deletes, gets or lists a services
resource.
Overview
Name | services |
Type | Resource |
Id | azure.k8s_runtime.services |
Fields
- vw_services
- services
Name | Datatype | Description |
---|---|---|
provisioning_state | text | field from the properties object |
resourceUri | text | field from the properties object |
rp_object_id | text | field from the properties object |
serviceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties for the service resource |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceUri, serviceName | Get a ServiceResource |
list | SELECT | resourceUri | List ServiceResource resources by parent |
create_or_update | INSERT | resourceUri, serviceName | Create a ServiceResource |
delete | DELETE | resourceUri, serviceName | Delete a ServiceResource |
SELECT
examples
List ServiceResource resources by parent
- vw_services
- services
SELECT
provisioning_state,
resourceUri,
rp_object_id,
serviceName
FROM azure.k8s_runtime.vw_services
WHERE resourceUri = '{{ resourceUri }}';
SELECT
properties
FROM azure.k8s_runtime.services
WHERE resourceUri = '{{ resourceUri }}';
INSERT
example
Use the following StackQL query and manifest file to create a new services
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.k8s_runtime.services (
resourceUri,
serviceName,
properties
)
SELECT
'{{ resourceUri }}',
'{{ serviceName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: rpObjectId
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified services
resource.
/*+ delete */
DELETE FROM azure.k8s_runtime.services
WHERE resourceUri = '{{ resourceUri }}'
AND serviceName = '{{ serviceName }}';