members
Creates, updates, deletes, gets or lists a members
resource.
Overview
Name | members |
Type | Resource |
Id | azure.fleet.members |
Fields
- vw_members
- members
Name | Datatype | Description |
---|---|---|
cluster_resource_id | text | field from the properties object |
e_tag | text | field from the properties object |
fleetMemberName | text | field from the properties object |
fleetName | text | field from the properties object |
group | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
eTag | string | If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. |
properties | object | A member of the Fleet. It contains a reference to an existing Kubernetes cluster on Azure. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fleetMemberName, fleetName, resourceGroupName, subscriptionId | Get a FleetMember |
list_by_fleet | SELECT | fleetName, resourceGroupName, subscriptionId | List FleetMember resources by Fleet |
create | INSERT | fleetMemberName, fleetName, resourceGroupName, subscriptionId | Create a FleetMember |
delete | DELETE | fleetMemberName, fleetName, resourceGroupName, subscriptionId | Delete a FleetMember |
update | UPDATE | fleetMemberName, fleetName, resourceGroupName, subscriptionId | Update a FleetMember |
SELECT
examples
List FleetMember resources by Fleet
- vw_members
- members
SELECT
cluster_resource_id,
e_tag,
fleetMemberName,
fleetName,
group,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure.fleet.vw_members
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
eTag,
properties
FROM azure.fleet.members
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new members
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.fleet.members (
fleetMemberName,
fleetName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ fleetMemberName }}',
'{{ fleetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: clusterResourceId
value: []
- name: group
value: string
- name: provisioningState
value: []
- name: eTag
value: string
UPDATE
example
Updates a members
resource.
/*+ update */
UPDATE azure.fleet.members
SET
properties = '{{ properties }}'
WHERE
fleetMemberName = '{{ fleetMemberName }}'
AND fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified members
resource.
/*+ delete */
DELETE FROM azure.fleet.members
WHERE fleetMemberName = '{{ fleetMemberName }}'
AND fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';