start_stop_managed_instance_schedules
Creates, updates, deletes, gets or lists a start_stop_managed_instance_schedules
resource.
Overview
Name | start_stop_managed_instance_schedules |
Type | Resource |
Id | azure.sql.start_stop_managed_instance_schedules |
Fields
The following fields are returned by SELECT
queries:
- get
Successfully retrieved the Start/Stop schedule.
Name | Datatype | Description |
---|---|---|
properties | object | Resource properties. |
systemData | object | System data of the scheduled resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , managedInstanceName , startStopScheduleName , subscriptionId | Gets the managed instance's Start/Stop schedule. | |
create_or_update | insert | resourceGroupName , managedInstanceName , startStopScheduleName , subscriptionId | Creates or updates the managed instance's Start/Stop schedule. | |
delete | delete | resourceGroupName , managedInstanceName , startStopScheduleName , subscriptionId | Deletes the managed instance's Start/Stop schedule. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
managedInstanceName | string | The name of the managed instance. |
resourceGroupName | string | The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
startStopScheduleName | string | Name of the managed instance Start/Stop schedule. |
subscriptionId | string | The subscription ID that identifies an Azure subscription. |
SELECT
examples
- get
Gets the managed instance's Start/Stop schedule.
SELECT
properties,
systemData
FROM azure.sql.start_stop_managed_instance_schedules
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND startStopScheduleName = '{{ startStopScheduleName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create_or_update
- Manifest
Creates or updates the managed instance's Start/Stop schedule.
INSERT INTO azure.sql.start_stop_managed_instance_schedules (
data__properties,
resourceGroupName,
managedInstanceName,
startStopScheduleName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ managedInstanceName }}',
'{{ startStopScheduleName }}',
'{{ subscriptionId }}'
RETURNING
properties,
systemData
;
# Description fields are for documentation purposes
- name: start_stop_managed_instance_schedules
props:
- name: resourceGroupName
value: string
description: Required parameter for the start_stop_managed_instance_schedules resource.
- name: managedInstanceName
value: string
description: Required parameter for the start_stop_managed_instance_schedules resource.
- name: startStopScheduleName
value: string
description: Required parameter for the start_stop_managed_instance_schedules resource.
- name: subscriptionId
value: string
description: Required parameter for the start_stop_managed_instance_schedules resource.
- name: properties
value: object
description: |
Resource properties.
DELETE
examples
- delete
Deletes the managed instance's Start/Stop schedule.
DELETE FROM azure.sql.start_stop_managed_instance_schedules
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND managedInstanceName = '{{ managedInstanceName }}' --required
AND startStopScheduleName = '{{ startStopScheduleName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;