1. Packages
  2. Ibm Provider
  3. API Docs
  4. CloudShellAccountSettings
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.CloudShellAccountSettings

Explore with Pulumi AI

ibm logo
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

    Create, update, and delete cloud_shell_account_settingss with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const cloudShellAccountSettings = new ibm.CloudShellAccountSettings("cloudShellAccountSettings", {
        accountId: "12345678-abcd-1a2b-a1b2-1234567890ab",
        defaultEnableNewFeatures: true,
        defaultEnableNewRegions: true,
        enabled: true,
        features: [
            {
                enabled: true,
                key: "server.file_manager",
            },
            {
                enabled: true,
                key: "server.web_preview",
            },
        ],
        regions: [
            {
                enabled: true,
                key: "eu-de",
            },
            {
                enabled: true,
                key: "us-south",
            },
        ],
        rev: "130-1bc9ec83d7b9b049890c6d4b74dddb2a",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    cloud_shell_account_settings = ibm.CloudShellAccountSettings("cloudShellAccountSettings",
        account_id="12345678-abcd-1a2b-a1b2-1234567890ab",
        default_enable_new_features=True,
        default_enable_new_regions=True,
        enabled=True,
        features=[
            {
                "enabled": True,
                "key": "server.file_manager",
            },
            {
                "enabled": True,
                "key": "server.web_preview",
            },
        ],
        regions=[
            {
                "enabled": True,
                "key": "eu-de",
            },
            {
                "enabled": True,
                "key": "us-south",
            },
        ],
        rev="130-1bc9ec83d7b9b049890c6d4b74dddb2a")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewCloudShellAccountSettings(ctx, "cloudShellAccountSettings", &ibm.CloudShellAccountSettingsArgs{
    			AccountId:                pulumi.String("12345678-abcd-1a2b-a1b2-1234567890ab"),
    			DefaultEnableNewFeatures: pulumi.Bool(true),
    			DefaultEnableNewRegions:  pulumi.Bool(true),
    			Enabled:                  pulumi.Bool(true),
    			Features: ibm.CloudShellAccountSettingsFeatureArray{
    				&ibm.CloudShellAccountSettingsFeatureArgs{
    					Enabled: pulumi.Bool(true),
    					Key:     pulumi.String("server.file_manager"),
    				},
    				&ibm.CloudShellAccountSettingsFeatureArgs{
    					Enabled: pulumi.Bool(true),
    					Key:     pulumi.String("server.web_preview"),
    				},
    			},
    			Regions: ibm.CloudShellAccountSettingsRegionArray{
    				&ibm.CloudShellAccountSettingsRegionArgs{
    					Enabled: pulumi.Bool(true),
    					Key:     pulumi.String("eu-de"),
    				},
    				&ibm.CloudShellAccountSettingsRegionArgs{
    					Enabled: pulumi.Bool(true),
    					Key:     pulumi.String("us-south"),
    				},
    			},
    			Rev: pulumi.String("130-1bc9ec83d7b9b049890c6d4b74dddb2a"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var cloudShellAccountSettings = new Ibm.CloudShellAccountSettings("cloudShellAccountSettings", new()
        {
            AccountId = "12345678-abcd-1a2b-a1b2-1234567890ab",
            DefaultEnableNewFeatures = true,
            DefaultEnableNewRegions = true,
            Enabled = true,
            Features = new[]
            {
                new Ibm.Inputs.CloudShellAccountSettingsFeatureArgs
                {
                    Enabled = true,
                    Key = "server.file_manager",
                },
                new Ibm.Inputs.CloudShellAccountSettingsFeatureArgs
                {
                    Enabled = true,
                    Key = "server.web_preview",
                },
            },
            Regions = new[]
            {
                new Ibm.Inputs.CloudShellAccountSettingsRegionArgs
                {
                    Enabled = true,
                    Key = "eu-de",
                },
                new Ibm.Inputs.CloudShellAccountSettingsRegionArgs
                {
                    Enabled = true,
                    Key = "us-south",
                },
            },
            Rev = "130-1bc9ec83d7b9b049890c6d4b74dddb2a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.CloudShellAccountSettings;
    import com.pulumi.ibm.CloudShellAccountSettingsArgs;
    import com.pulumi.ibm.inputs.CloudShellAccountSettingsFeatureArgs;
    import com.pulumi.ibm.inputs.CloudShellAccountSettingsRegionArgs;
    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 cloudShellAccountSettings = new CloudShellAccountSettings("cloudShellAccountSettings", CloudShellAccountSettingsArgs.builder()
                .accountId("12345678-abcd-1a2b-a1b2-1234567890ab")
                .defaultEnableNewFeatures(true)
                .defaultEnableNewRegions(true)
                .enabled(true)
                .features(            
                    CloudShellAccountSettingsFeatureArgs.builder()
                        .enabled(true)
                        .key("server.file_manager")
                        .build(),
                    CloudShellAccountSettingsFeatureArgs.builder()
                        .enabled(true)
                        .key("server.web_preview")
                        .build())
                .regions(            
                    CloudShellAccountSettingsRegionArgs.builder()
                        .enabled(true)
                        .key("eu-de")
                        .build(),
                    CloudShellAccountSettingsRegionArgs.builder()
                        .enabled(true)
                        .key("us-south")
                        .build())
                .rev("130-1bc9ec83d7b9b049890c6d4b74dddb2a")
                .build());
    
        }
    }
    
    resources:
      cloudShellAccountSettings:
        type: ibm:CloudShellAccountSettings
        properties:
          accountId: 12345678-abcd-1a2b-a1b2-1234567890ab
          defaultEnableNewFeatures: true
          defaultEnableNewRegions: true
          enabled: true
          features:
            - enabled: true
              key: server.file_manager
            - enabled: true
              key: server.web_preview
          regions:
            - enabled: true
              key: eu-de
            - enabled: true
              key: us-south
          rev: 130-1bc9ec83d7b9b049890c6d4b74dddb2a
    

    Create CloudShellAccountSettings Resource

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

    Constructor syntax

    new CloudShellAccountSettings(name: string, args: CloudShellAccountSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def CloudShellAccountSettings(resource_name: str,
                                  args: CloudShellAccountSettingsArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudShellAccountSettings(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  account_id: Optional[str] = None,
                                  default_enable_new_features: Optional[bool] = None,
                                  default_enable_new_regions: Optional[bool] = None,
                                  enabled: Optional[bool] = None,
                                  features: Optional[Sequence[CloudShellAccountSettingsFeatureArgs]] = None,
                                  regions: Optional[Sequence[CloudShellAccountSettingsRegionArgs]] = None,
                                  rev: Optional[str] = None)
    func NewCloudShellAccountSettings(ctx *Context, name string, args CloudShellAccountSettingsArgs, opts ...ResourceOption) (*CloudShellAccountSettings, error)
    public CloudShellAccountSettings(string name, CloudShellAccountSettingsArgs args, CustomResourceOptions? opts = null)
    public CloudShellAccountSettings(String name, CloudShellAccountSettingsArgs args)
    public CloudShellAccountSettings(String name, CloudShellAccountSettingsArgs args, CustomResourceOptions options)
    
    type: ibm:CloudShellAccountSettings
    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 CloudShellAccountSettingsArgs
    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 CloudShellAccountSettingsArgs
    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 CloudShellAccountSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudShellAccountSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudShellAccountSettingsArgs
    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 cloudShellAccountSettingsResource = new Ibm.CloudShellAccountSettings("cloudShellAccountSettingsResource", new()
    {
        AccountId = "string",
        DefaultEnableNewFeatures = false,
        DefaultEnableNewRegions = false,
        Enabled = false,
        Features = new[]
        {
            new Ibm.Inputs.CloudShellAccountSettingsFeatureArgs
            {
                Enabled = false,
                Key = "string",
            },
        },
        Regions = new[]
        {
            new Ibm.Inputs.CloudShellAccountSettingsRegionArgs
            {
                Enabled = false,
                Key = "string",
            },
        },
        Rev = "string",
    });
    
    example, err := ibm.NewCloudShellAccountSettings(ctx, "cloudShellAccountSettingsResource", &ibm.CloudShellAccountSettingsArgs{
    AccountId: pulumi.String("string"),
    DefaultEnableNewFeatures: pulumi.Bool(false),
    DefaultEnableNewRegions: pulumi.Bool(false),
    Enabled: pulumi.Bool(false),
    Features: .CloudShellAccountSettingsFeatureArray{
    &.CloudShellAccountSettingsFeatureArgs{
    Enabled: pulumi.Bool(false),
    Key: pulumi.String("string"),
    },
    },
    Regions: .CloudShellAccountSettingsRegionArray{
    &.CloudShellAccountSettingsRegionArgs{
    Enabled: pulumi.Bool(false),
    Key: pulumi.String("string"),
    },
    },
    Rev: pulumi.String("string"),
    })
    
    var cloudShellAccountSettingsResource = new CloudShellAccountSettings("cloudShellAccountSettingsResource", CloudShellAccountSettingsArgs.builder()
        .accountId("string")
        .defaultEnableNewFeatures(false)
        .defaultEnableNewRegions(false)
        .enabled(false)
        .features(CloudShellAccountSettingsFeatureArgs.builder()
            .enabled(false)
            .key("string")
            .build())
        .regions(CloudShellAccountSettingsRegionArgs.builder()
            .enabled(false)
            .key("string")
            .build())
        .rev("string")
        .build());
    
    cloud_shell_account_settings_resource = ibm.CloudShellAccountSettings("cloudShellAccountSettingsResource",
        account_id="string",
        default_enable_new_features=False,
        default_enable_new_regions=False,
        enabled=False,
        features=[{
            "enabled": False,
            "key": "string",
        }],
        regions=[{
            "enabled": False,
            "key": "string",
        }],
        rev="string")
    
    const cloudShellAccountSettingsResource = new ibm.CloudShellAccountSettings("cloudShellAccountSettingsResource", {
        accountId: "string",
        defaultEnableNewFeatures: false,
        defaultEnableNewRegions: false,
        enabled: false,
        features: [{
            enabled: false,
            key: "string",
        }],
        regions: [{
            enabled: false,
            key: "string",
        }],
        rev: "string",
    });
    
    type: ibm:CloudShellAccountSettings
    properties:
        accountId: string
        defaultEnableNewFeatures: false
        defaultEnableNewRegions: false
        enabled: false
        features:
            - enabled: false
              key: string
        regions:
            - enabled: false
              key: string
        rev: string
    

    CloudShellAccountSettings 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 CloudShellAccountSettings resource accepts the following input properties:

    AccountId string
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    DefaultEnableNewFeatures bool
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    DefaultEnableNewRegions bool
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    Enabled bool
    When enabled, Cloud Shell is available to all users in the account.
    Features List<CloudShellAccountSettingsFeature>
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    Regions List<CloudShellAccountSettingsRegion>
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    Rev string
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    AccountId string
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    DefaultEnableNewFeatures bool
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    DefaultEnableNewRegions bool
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    Enabled bool
    When enabled, Cloud Shell is available to all users in the account.
    Features []CloudShellAccountSettingsFeatureArgs
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    Regions []CloudShellAccountSettingsRegionArgs
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    Rev string
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    accountId String
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    defaultEnableNewFeatures Boolean
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    defaultEnableNewRegions Boolean
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    enabled Boolean
    When enabled, Cloud Shell is available to all users in the account.
    features List<CloudShellAccountSettingsFeature>
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    regions List<CloudShellAccountSettingsRegion>
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    rev String
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    accountId string
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    defaultEnableNewFeatures boolean
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    defaultEnableNewRegions boolean
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    enabled boolean
    When enabled, Cloud Shell is available to all users in the account.
    features CloudShellAccountSettingsFeature[]
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    regions CloudShellAccountSettingsRegion[]
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    rev string
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    account_id str
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    default_enable_new_features bool
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    default_enable_new_regions bool
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    enabled bool
    When enabled, Cloud Shell is available to all users in the account.
    features Sequence[CloudShellAccountSettingsFeatureArgs]
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    regions Sequence[CloudShellAccountSettingsRegionArgs]
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    rev str
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    accountId String
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    defaultEnableNewFeatures Boolean
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    defaultEnableNewRegions Boolean
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    enabled Boolean
    When enabled, Cloud Shell is available to all users in the account.
    features List<Property Map>
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    regions List<Property Map>
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    rev String
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.

    Outputs

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

    CreatedAt double
    (Integer) Creation timestamp in Unix epoch time.
    CreatedBy string
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    UpdatedAt double
    (Integer) Timestamp of last update in Unix epoch time.
    UpdatedBy string
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    CreatedAt float64
    (Integer) Creation timestamp in Unix epoch time.
    CreatedBy string
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    UpdatedAt float64
    (Integer) Timestamp of last update in Unix epoch time.
    UpdatedBy string
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    createdAt Double
    (Integer) Creation timestamp in Unix epoch time.
    createdBy String
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    updatedAt Double
    (Integer) Timestamp of last update in Unix epoch time.
    updatedBy String
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    createdAt number
    (Integer) Creation timestamp in Unix epoch time.
    createdBy string
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    updatedAt number
    (Integer) Timestamp of last update in Unix epoch time.
    updatedBy string
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    created_at float
    (Integer) Creation timestamp in Unix epoch time.
    created_by str
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    updated_at float
    (Integer) Timestamp of last update in Unix epoch time.
    updated_by str
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    createdAt Number
    (Integer) Creation timestamp in Unix epoch time.
    createdBy String
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    updatedAt Number
    (Integer) Timestamp of last update in Unix epoch time.
    updatedBy String
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.

    Look up Existing CloudShellAccountSettings Resource

    Get an existing CloudShellAccountSettings 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?: CloudShellAccountSettingsState, opts?: CustomResourceOptions): CloudShellAccountSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[float] = None,
            created_by: Optional[str] = None,
            default_enable_new_features: Optional[bool] = None,
            default_enable_new_regions: Optional[bool] = None,
            enabled: Optional[bool] = None,
            features: Optional[Sequence[CloudShellAccountSettingsFeatureArgs]] = None,
            regions: Optional[Sequence[CloudShellAccountSettingsRegionArgs]] = None,
            rev: Optional[str] = None,
            type: Optional[str] = None,
            updated_at: Optional[float] = None,
            updated_by: Optional[str] = None) -> CloudShellAccountSettings
    func GetCloudShellAccountSettings(ctx *Context, name string, id IDInput, state *CloudShellAccountSettingsState, opts ...ResourceOption) (*CloudShellAccountSettings, error)
    public static CloudShellAccountSettings Get(string name, Input<string> id, CloudShellAccountSettingsState? state, CustomResourceOptions? opts = null)
    public static CloudShellAccountSettings get(String name, Output<String> id, CloudShellAccountSettingsState state, CustomResourceOptions options)
    resources:  _:    type: ibm:CloudShellAccountSettings    get:      id: ${id}
    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:
    AccountId string
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    CreatedAt double
    (Integer) Creation timestamp in Unix epoch time.
    CreatedBy string
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    DefaultEnableNewFeatures bool
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    DefaultEnableNewRegions bool
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    Enabled bool
    When enabled, Cloud Shell is available to all users in the account.
    Features List<CloudShellAccountSettingsFeature>
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    Regions List<CloudShellAccountSettingsRegion>
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    Rev string
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Type string
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    UpdatedAt double
    (Integer) Timestamp of last update in Unix epoch time.
    UpdatedBy string
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    AccountId string
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    CreatedAt float64
    (Integer) Creation timestamp in Unix epoch time.
    CreatedBy string
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    DefaultEnableNewFeatures bool
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    DefaultEnableNewRegions bool
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    Enabled bool
    When enabled, Cloud Shell is available to all users in the account.
    Features []CloudShellAccountSettingsFeatureArgs
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    Regions []CloudShellAccountSettingsRegionArgs
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    Rev string
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Type string
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    UpdatedAt float64
    (Integer) Timestamp of last update in Unix epoch time.
    UpdatedBy string
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    accountId String
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    createdAt Double
    (Integer) Creation timestamp in Unix epoch time.
    createdBy String
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    defaultEnableNewFeatures Boolean
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    defaultEnableNewRegions Boolean
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    enabled Boolean
    When enabled, Cloud Shell is available to all users in the account.
    features List<CloudShellAccountSettingsFeature>
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    regions List<CloudShellAccountSettingsRegion>
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    rev String
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    type String
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    updatedAt Double
    (Integer) Timestamp of last update in Unix epoch time.
    updatedBy String
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    accountId string
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    createdAt number
    (Integer) Creation timestamp in Unix epoch time.
    createdBy string
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    defaultEnableNewFeatures boolean
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    defaultEnableNewRegions boolean
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    enabled boolean
    When enabled, Cloud Shell is available to all users in the account.
    features CloudShellAccountSettingsFeature[]
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    regions CloudShellAccountSettingsRegion[]
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    rev string
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    type string
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    updatedAt number
    (Integer) Timestamp of last update in Unix epoch time.
    updatedBy string
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    account_id str
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    created_at float
    (Integer) Creation timestamp in Unix epoch time.
    created_by str
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    default_enable_new_features bool
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    default_enable_new_regions bool
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    enabled bool
    When enabled, Cloud Shell is available to all users in the account.
    features Sequence[CloudShellAccountSettingsFeatureArgs]
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    regions Sequence[CloudShellAccountSettingsRegionArgs]
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    rev str
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    type str
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    updated_at float
    (Integer) Timestamp of last update in Unix epoch time.
    updated_by str
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    accountId String
    The account ID in which the account settings belong to.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    createdAt Number
    (Integer) Creation timestamp in Unix epoch time.
    createdBy String
    (String) IAM ID of creator.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    defaultEnableNewFeatures Boolean
    You can choose which Cloud Shell features are available in the account and whether any new features are enabled as they become available. The feature settings apply only to the enabled Cloud Shell locations.
    defaultEnableNewRegions Boolean
    Set whether Cloud Shell is enabled in a specific location for the account. The location determines where user and session data are stored. By default, users are routed to the nearest available location.
    enabled Boolean
    When enabled, Cloud Shell is available to all users in the account.
    features List<Property Map>
    List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    regions List<Property Map>
    List of Cloud Shell region settings.

    • Constraints: The maximum length is 3 items. The minimum length is 0 items. Nested schema for regions:
    rev String
    Unique revision number for the settings object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    type String
    (String) Type of api response object.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-z_]*$/.
    updatedAt Number
    (Integer) Timestamp of last update in Unix epoch time.
    updatedBy String
    (String) IAM ID of last updater.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]*$/.

    Supporting Types

    CloudShellAccountSettingsFeature, CloudShellAccountSettingsFeatureArgs

    Enabled bool
    State of the feature.
    Key string
    Name of the feature.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    Enabled bool
    State of the feature.
    Key string
    Name of the feature.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    enabled Boolean
    State of the feature.
    key String
    Name of the feature.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    enabled boolean
    State of the feature.
    key string
    Name of the feature.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    enabled bool
    State of the feature.
    key str
    Name of the feature.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    enabled Boolean
    State of the feature.
    key String
    Name of the feature.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.

    CloudShellAccountSettingsRegion, CloudShellAccountSettingsRegionArgs

    Enabled bool
    State of the region.
    Key string
    Name of the region.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z-]*$/.
    Enabled bool
    State of the region.
    Key string
    Name of the region.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z-]*$/.
    enabled Boolean
    State of the region.
    key String
    Name of the region.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z-]*$/.
    enabled boolean
    State of the region.
    key string
    Name of the region.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z-]*$/.
    enabled bool
    State of the region.
    key str
    Name of the region.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z-]*$/.
    enabled Boolean
    State of the region.
    key String
    Name of the region.

    • Constraints: The maximum length is 100 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z-]*$/.

    Import

    You can import the ibm_cloud_shell_account_settings resource by using account_id.

    The account_id property can be formed from and account_id in the following format:

    
    <account_id>
    
    
    • account_id: A string. The account ID in which the account settings belong to.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/cloudShellAccountSettings:CloudShellAccountSettings cloud_shell_account_settings <account_id>
    ```
    
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud