Skip to main content

services

Creates, updates, deletes, gets or lists a services resource.

Overview

Nameservices
TypeResource
Idazure.k8s_runtime.services

Fields

NameDatatypeDescription
provisioning_statetextfield from the properties object
resourceUritextfield from the properties object
rp_object_idtextfield from the properties object
serviceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceUri, serviceNameGet a ServiceResource
listSELECTresourceUriList ServiceResource resources by parent
create_or_updateINSERTresourceUri, serviceNameCreate a ServiceResource
deleteDELETEresourceUri, serviceNameDelete a ServiceResource

SELECT examples

List ServiceResource resources by parent

SELECT
provisioning_state,
resourceUri,
rp_object_id,
serviceName
FROM azure.k8s_runtime.vw_services
WHERE resourceUri = '{{ resourceUri }}';

INSERT example

Use the following StackQL query and manifest file to create a new services resource.

/*+ create */
INSERT INTO azure.k8s_runtime.services (
resourceUri,
serviceName,
properties
)
SELECT
'{{ resourceUri }}',
'{{ serviceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified services resource.

/*+ delete */
DELETE FROM azure.k8s_runtime.services
WHERE resourceUri = '{{ resourceUri }}'
AND serviceName = '{{ serviceName }}';