update_runs
Creates, updates, deletes, gets or lists a update_runs
resource.
Overview
Name | update_runs |
Type | Resource |
Id | azure.fleet.update_runs |
Fields
- vw_update_runs
- update_runs
Name | Datatype | Description |
---|---|---|
e_tag | text | field from the properties object |
fleetName | text | field from the properties object |
managed_cluster_update | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
strategy | text | field from the properties object |
subscriptionId | text | field from the properties object |
updateRunName | text | field from the properties object |
update_strategy_id | 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 | The properties of the UpdateRun. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fleetName, resourceGroupName, subscriptionId, updateRunName | Get a UpdateRun |
list_by_fleet | SELECT | fleetName, resourceGroupName, subscriptionId | List UpdateRun resources by Fleet |
create_or_update | INSERT | fleetName, resourceGroupName, subscriptionId, updateRunName | Create a UpdateRun |
delete | DELETE | fleetName, resourceGroupName, subscriptionId, updateRunName | Delete a UpdateRun |
skip | EXEC | fleetName, resourceGroupName, subscriptionId, updateRunName, data__targets | Skips one or a combination of member/group/stage/afterStageWait(s) of an update run. |
start | EXEC | fleetName, resourceGroupName, subscriptionId, updateRunName | Starts an UpdateRun. |
stop | EXEC | fleetName, resourceGroupName, subscriptionId, updateRunName | Stops an UpdateRun. |
SELECT
examples
List UpdateRun resources by Fleet
- vw_update_runs
- update_runs
SELECT
e_tag,
fleetName,
managed_cluster_update,
provisioning_state,
resourceGroupName,
status,
strategy,
subscriptionId,
updateRunName,
update_strategy_id
FROM azure.fleet.vw_update_runs
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
eTag,
properties
FROM azure.fleet.update_runs
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new update_runs
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.fleet.update_runs (
fleetName,
resourceGroupName,
subscriptionId,
updateRunName,
properties
)
SELECT
'{{ fleetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ updateRunName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: updateStrategyId
value: []
- name: strategy
value:
- name: stages
value:
- - name: name
value: string
- name: groups
value:
- - name: name
value: string
- name: afterStageWaitInSeconds
value: integer
- name: managedClusterUpdate
value:
- name: upgrade
value:
- name: type
value: []
- name: kubernetesVersion
value: []
- name: nodeImageSelection
value:
- name: type
value: []
- name: status
value:
- name: status
value:
- name: startTime
value: string
- name: completedTime
value: string
- name: state
value: []
- name: error
value:
- name: code
value: string
- name: message
value: string
- name: target
value: string
- name: details
value:
- - name: code
value: string
- name: message
value: string
- name: target
value: string
- name: details
value:
- - name: code
value: string
- name: message
value: string
- name: target
value: string
- name: details
value:
- - name: code
value: string
- name: message
value: string
- name: target
value: string
- name: details
value:
- - name: code
value: string
- name: message
value: string
- name: target
value: string
- name: details
value:
- - name: code
value: string
- name: message
value: string
- name: target
value: string
- name: details
value:
- - name: code
value: string
- name: message
value: string
- name: target
value: string
- name: details
value:
- []
- name: additionalInfo
value:
- []
- name: additionalInfo
value:
- - name: type
value: string
- name: info
value: object
- name: additionalInfo
value:
- - name: type
value: string
- name: info
value: object
- name: additionalInfo
value:
- - name: type
value: string
- name: info
value: object
- name: additionalInfo
value:
- - name: type
value: string
- name: info
value: object
- name: additionalInfo
value:
- - name: type
value: string
- name: info
value: object
- name: additionalInfo
value:
- - name: type
value: string
- name: info
value: object
- name: stages
value:
- - name: name
value: string
- name: groups
value:
- - name: name
value: string
- name: members
value:
- - name: name
value: string
- name: clusterResourceId
value: string
- name: operationId
value: string
- name: message
value: string
- name: afterStageWaitStatus
value:
- name: waitDurationInSeconds
value: integer
- name: nodeImageSelection
value:
- name: selectedNodeImageVersions
value:
- - name: version
value: string
- name: eTag
value: string
DELETE
example
Deletes the specified update_runs
resource.
/*+ delete */
DELETE FROM azure.fleet.update_runs
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND updateRunName = '{{ updateRunName }}';