policies
Creates, updates, deletes, gets or lists a policies resource.
Overview
| Name | policies |
| Type | Resource |
| Id | linode.maintenance.policies |
Fields
The following fields are returned by SELECT queries:
- list
Returns a paginated list of maintenance policy objects.
| Name | Datatype | Description |
|---|---|---|
description | string | A brief explanation of the maintenance policy's intended behavior. (example: Migrates the Linode to a new host while it remains fully operational. Recommended for maximizing availability.) |
is_default | boolean | Indicates whether this policy is the default one applied when creating a Linode. |
label | string | The display name for the maintenance policy. (example: Migrate) |
notification_period_sec | integer | Filterable Number of seconds before the maintenance event triggers. A value of 0 means no prior notification. |
slug | string | Unique identifier for the maintenance policy. System policies are prefixed with linode/. (example: linode/migrate) |
type | string | The type of policy. (migrate, power_off_on) (example: migrate) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | Beta List all available maintenance policies that can be applied to your Linodes. > 📘 > > This operation is beta and only works when using the beta API. Call the URL with the apiVersion path parameter set to v4beta.Learn more... |
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 |
|---|
SELECT examples
- list
Beta List all available maintenance policies that can be applied to your Linodes.
> 📘
>
> This operation is beta and only works when using the beta API. Call the URL with the apiVersion path parameter set to v4beta.
Learn more...
SELECT
description,
is_default,
label,
notification_period_sec,
slug,
type
FROM linode.maintenance.policies
;