update_strategies
Creates, updates, deletes, gets or lists a update_strategies
resource.
Overview
Name | update_strategies |
Type | Resource |
Id | azure.fleet.update_strategies |
Fields
- vw_update_strategies
- update_strategies
Name | Datatype | Description |
---|---|---|
e_tag | text | field from the properties object |
fleetName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
strategy | text | field from the properties object |
subscriptionId | text | field from the properties object |
updateStrategyName | 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 UpdateStrategy. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fleetName, resourceGroupName, subscriptionId, updateStrategyName | Get a FleetUpdateStrategy |
list_by_fleet | SELECT | fleetName, resourceGroupName, subscriptionId | List FleetUpdateStrategy resources by Fleet |
create_or_update | INSERT | fleetName, resourceGroupName, subscriptionId, updateStrategyName | Create a FleetUpdateStrategy |
delete | DELETE | fleetName, resourceGroupName, subscriptionId, updateStrategyName | Delete a FleetUpdateStrategy |
SELECT
examples
List FleetUpdateStrategy resources by Fleet
- vw_update_strategies
- update_strategies
SELECT
e_tag,
fleetName,
provisioning_state,
resourceGroupName,
strategy,
subscriptionId,
updateStrategyName
FROM azure.fleet.vw_update_strategies
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
eTag,
properties
FROM azure.fleet.update_strategies
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new update_strategies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.fleet.update_strategies (
fleetName,
resourceGroupName,
subscriptionId,
updateStrategyName,
properties
)
SELECT
'{{ fleetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ updateStrategyName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: strategy
value:
- name: stages
value:
- - name: name
value: string
- name: groups
value:
- - name: name
value: string
- name: afterStageWaitInSeconds
value: integer
- name: eTag
value: string
DELETE
example
Deletes the specified update_strategies
resource.
/*+ delete */
DELETE FROM azure.fleet.update_strategies
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND updateStrategyName = '{{ updateStrategyName }}';