1. Packages
  2. Linode Provider
  3. API Docs
  4. AccountSettings
Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi

linode.AccountSettings

Explore with Pulumi AI

linode logo
Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi

    Manages the settings of a Linode account. For more information, see the Linode APIv4 docs.

    Example Usage

    The following example shows how one might use this resource to change their Linode account settings.

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const myaccount = new linode.AccountSettings("myaccount", {
        longviewSubscription: "longview-40",
        backupsEnabled: true,
    });
    
    import pulumi
    import pulumi_linode as linode
    
    myaccount = linode.AccountSettings("myaccount",
        longview_subscription="longview-40",
        backups_enabled=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.NewAccountSettings(ctx, "myaccount", &linode.AccountSettingsArgs{
    			LongviewSubscription: pulumi.String("longview-40"),
    			BackupsEnabled:       pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var myaccount = new Linode.AccountSettings("myaccount", new()
        {
            LongviewSubscription = "longview-40",
            BackupsEnabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.AccountSettings;
    import com.pulumi.linode.AccountSettingsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var myaccount = new AccountSettings("myaccount", AccountSettingsArgs.builder()
                .longviewSubscription("longview-40")
                .backupsEnabled("true")
                .build());
    
        }
    }
    
    resources:
      myaccount:
        type: linode:AccountSettings
        properties:
          longviewSubscription: longview-40
          backupsEnabled: 'true'
    

    Additional Results

    • managed - Enables monitoring for connectivity, response, and total request time.

    • object_storage - A string describing the status of this account’s Object Storage service enrollment.

    Create AccountSettings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccountSettings(name: string, args?: AccountSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def AccountSettings(resource_name: str,
                        args: Optional[AccountSettingsArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountSettings(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        backups_enabled: Optional[bool] = None,
                        longview_subscription: Optional[str] = None,
                        network_helper: Optional[bool] = None)
    func NewAccountSettings(ctx *Context, name string, args *AccountSettingsArgs, opts ...ResourceOption) (*AccountSettings, error)
    public AccountSettings(string name, AccountSettingsArgs? args = null, CustomResourceOptions? opts = null)
    public AccountSettings(String name, AccountSettingsArgs args)
    public AccountSettings(String name, AccountSettingsArgs args, CustomResourceOptions options)
    
    type: linode:AccountSettings
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AccountSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AccountSettingsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AccountSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountSettingsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var accountSettingsResource = new Linode.AccountSettings("accountSettingsResource", new()
    {
        BackupsEnabled = false,
        LongviewSubscription = "string",
        NetworkHelper = false,
    });
    
    example, err := linode.NewAccountSettings(ctx, "accountSettingsResource", &linode.AccountSettingsArgs{
    	BackupsEnabled:       pulumi.Bool(false),
    	LongviewSubscription: pulumi.String("string"),
    	NetworkHelper:        pulumi.Bool(false),
    })
    
    var accountSettingsResource = new AccountSettings("accountSettingsResource", AccountSettingsArgs.builder()
        .backupsEnabled(false)
        .longviewSubscription("string")
        .networkHelper(false)
        .build());
    
    account_settings_resource = linode.AccountSettings("accountSettingsResource",
        backups_enabled=False,
        longview_subscription="string",
        network_helper=False)
    
    const accountSettingsResource = new linode.AccountSettings("accountSettingsResource", {
        backupsEnabled: false,
        longviewSubscription: "string",
        networkHelper: false,
    });
    
    type: linode:AccountSettings
    properties:
        backupsEnabled: false
        longviewSubscription: string
        networkHelper: false
    

    AccountSettings Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AccountSettings resource accepts the following input properties:

    BackupsEnabled bool
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    LongviewSubscription string
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    NetworkHelper bool
    Enables network helper across all users by default for new Linodes and Linode Configs.
    BackupsEnabled bool
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    LongviewSubscription string
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    NetworkHelper bool
    Enables network helper across all users by default for new Linodes and Linode Configs.
    backupsEnabled Boolean
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    longviewSubscription String
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    networkHelper Boolean
    Enables network helper across all users by default for new Linodes and Linode Configs.
    backupsEnabled boolean
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    longviewSubscription string
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    networkHelper boolean
    Enables network helper across all users by default for new Linodes and Linode Configs.
    backups_enabled bool
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    longview_subscription str
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    network_helper bool
    Enables network helper across all users by default for new Linodes and Linode Configs.
    backupsEnabled Boolean
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    longviewSubscription String
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    networkHelper Boolean
    Enables network helper across all users by default for new Linodes and Linode Configs.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountSettings resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Managed bool
    Enables monitoring for connectivity, response, and total request time.
    ObjectStorage string
    A string describing the status of this account's Object Storage service enrollment.
    Id string
    The provider-assigned unique ID for this managed resource.
    Managed bool
    Enables monitoring for connectivity, response, and total request time.
    ObjectStorage string
    A string describing the status of this account's Object Storage service enrollment.
    id String
    The provider-assigned unique ID for this managed resource.
    managed Boolean
    Enables monitoring for connectivity, response, and total request time.
    objectStorage String
    A string describing the status of this account's Object Storage service enrollment.
    id string
    The provider-assigned unique ID for this managed resource.
    managed boolean
    Enables monitoring for connectivity, response, and total request time.
    objectStorage string
    A string describing the status of this account's Object Storage service enrollment.
    id str
    The provider-assigned unique ID for this managed resource.
    managed bool
    Enables monitoring for connectivity, response, and total request time.
    object_storage str
    A string describing the status of this account's Object Storage service enrollment.
    id String
    The provider-assigned unique ID for this managed resource.
    managed Boolean
    Enables monitoring for connectivity, response, and total request time.
    objectStorage String
    A string describing the status of this account's Object Storage service enrollment.

    Look up Existing AccountSettings Resource

    Get an existing AccountSettings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AccountSettingsState, opts?: CustomResourceOptions): AccountSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backups_enabled: Optional[bool] = None,
            longview_subscription: Optional[str] = None,
            managed: Optional[bool] = None,
            network_helper: Optional[bool] = None,
            object_storage: Optional[str] = None) -> AccountSettings
    func GetAccountSettings(ctx *Context, name string, id IDInput, state *AccountSettingsState, opts ...ResourceOption) (*AccountSettings, error)
    public static AccountSettings Get(string name, Input<string> id, AccountSettingsState? state, CustomResourceOptions? opts = null)
    public static AccountSettings get(String name, Output<String> id, AccountSettingsState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BackupsEnabled bool
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    LongviewSubscription string
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    Managed bool
    Enables monitoring for connectivity, response, and total request time.
    NetworkHelper bool
    Enables network helper across all users by default for new Linodes and Linode Configs.
    ObjectStorage string
    A string describing the status of this account's Object Storage service enrollment.
    BackupsEnabled bool
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    LongviewSubscription string
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    Managed bool
    Enables monitoring for connectivity, response, and total request time.
    NetworkHelper bool
    Enables network helper across all users by default for new Linodes and Linode Configs.
    ObjectStorage string
    A string describing the status of this account's Object Storage service enrollment.
    backupsEnabled Boolean
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    longviewSubscription String
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    managed Boolean
    Enables monitoring for connectivity, response, and total request time.
    networkHelper Boolean
    Enables network helper across all users by default for new Linodes and Linode Configs.
    objectStorage String
    A string describing the status of this account's Object Storage service enrollment.
    backupsEnabled boolean
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    longviewSubscription string
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    managed boolean
    Enables monitoring for connectivity, response, and total request time.
    networkHelper boolean
    Enables network helper across all users by default for new Linodes and Linode Configs.
    objectStorage string
    A string describing the status of this account's Object Storage service enrollment.
    backups_enabled bool
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    longview_subscription str
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    managed bool
    Enables monitoring for connectivity, response, and total request time.
    network_helper bool
    Enables network helper across all users by default for new Linodes and Linode Configs.
    object_storage str
    A string describing the status of this account's Object Storage service enrollment.
    backupsEnabled Boolean
    The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
    longviewSubscription String
    The Longview Pro tier you are currently subscribed to. The value must be a Longview Subscription ID or null for Longview Free.
    managed Boolean
    Enables monitoring for connectivity, response, and total request time.
    networkHelper Boolean
    Enables network helper across all users by default for new Linodes and Linode Configs.
    objectStorage String
    A string describing the status of this account's Object Storage service enrollment.

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo
    Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi