1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCloudShellAccountSettings
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getCloudShellAccountSettings

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about cloud_shell_account_settings. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const cloudShellAccountSettings = ibm.getCloudShellAccountSettings({
        accountId: ibm_cloud_shell_account_settings.cloud_shell_account_settings_instance.account_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    cloud_shell_account_settings = ibm.get_cloud_shell_account_settings(account_id=ibm_cloud_shell_account_settings["cloud_shell_account_settings_instance"]["account_id"])
    
    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.LookupCloudShellAccountSettings(ctx, &ibm.LookupCloudShellAccountSettingsArgs{
    			AccountId: ibm_cloud_shell_account_settings.Cloud_shell_account_settings_instance.Account_id,
    		}, nil)
    		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 = Ibm.GetCloudShellAccountSettings.Invoke(new()
        {
            AccountId = ibm_cloud_shell_account_settings.Cloud_shell_account_settings_instance.Account_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetCloudShellAccountSettingsArgs;
    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) {
            final var cloudShellAccountSettings = IbmFunctions.getCloudShellAccountSettings(GetCloudShellAccountSettingsArgs.builder()
                .accountId(ibm_cloud_shell_account_settings.cloud_shell_account_settings_instance().account_id())
                .build());
    
        }
    }
    
    variables:
      cloudShellAccountSettings:
        fn::invoke:
          function: ibm:getCloudShellAccountSettings
          arguments:
            accountId: ${ibm_cloud_shell_account_settings.cloud_shell_account_settings_instance.account_id}
    

    Using getCloudShellAccountSettings

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCloudShellAccountSettings(args: GetCloudShellAccountSettingsArgs, opts?: InvokeOptions): Promise<GetCloudShellAccountSettingsResult>
    function getCloudShellAccountSettingsOutput(args: GetCloudShellAccountSettingsOutputArgs, opts?: InvokeOptions): Output<GetCloudShellAccountSettingsResult>
    def get_cloud_shell_account_settings(account_id: Optional[str] = None,
                                         id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetCloudShellAccountSettingsResult
    def get_cloud_shell_account_settings_output(account_id: Optional[pulumi.Input[str]] = None,
                                         id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetCloudShellAccountSettingsResult]
    func LookupCloudShellAccountSettings(ctx *Context, args *LookupCloudShellAccountSettingsArgs, opts ...InvokeOption) (*LookupCloudShellAccountSettingsResult, error)
    func LookupCloudShellAccountSettingsOutput(ctx *Context, args *LookupCloudShellAccountSettingsOutputArgs, opts ...InvokeOption) LookupCloudShellAccountSettingsResultOutput

    > Note: This function is named LookupCloudShellAccountSettings in the Go SDK.

    public static class GetCloudShellAccountSettings 
    {
        public static Task<GetCloudShellAccountSettingsResult> InvokeAsync(GetCloudShellAccountSettingsArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudShellAccountSettingsResult> Invoke(GetCloudShellAccountSettingsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudShellAccountSettingsResult> getCloudShellAccountSettings(GetCloudShellAccountSettingsArgs args, InvokeOptions options)
    public static Output<GetCloudShellAccountSettingsResult> getCloudShellAccountSettings(GetCloudShellAccountSettingsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCloudShellAccountSettings:getCloudShellAccountSettings
      arguments:
        # arguments dictionary

    The following 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-]*$/.
    Id string
    The unique identifier of the cloud_shell_account_settings.
    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-]*$/.
    Id string
    The unique identifier of the cloud_shell_account_settings.
    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-]*$/.
    id String
    The unique identifier of the cloud_shell_account_settings.
    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-]*$/.
    id string
    The unique identifier of the cloud_shell_account_settings.
    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-]*$/.
    id str
    The unique identifier of the cloud_shell_account_settings.
    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-]*$/.
    id String
    The unique identifier of the cloud_shell_account_settings.

    getCloudShellAccountSettings Result

    The following output properties are available:

    AccountId string
    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
    (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 bool
    (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 bool
    (Boolean) State of the region.
    Features List<GetCloudShellAccountSettingsFeature>
    (List) List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    Id string
    The unique identifier of the cloud_shell_account_settings.
    Regions List<GetCloudShellAccountSettingsRegion>
    (List) 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
    (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
    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
    (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 bool
    (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 bool
    (Boolean) State of the region.
    Features []GetCloudShellAccountSettingsFeature
    (List) List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    Id string
    The unique identifier of the cloud_shell_account_settings.
    Regions []GetCloudShellAccountSettingsRegion
    (List) 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
    (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
    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
    (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
    (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
    (Boolean) State of the region.
    features List<GetCloudShellAccountSettingsFeature>
    (List) List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    id String
    The unique identifier of the cloud_shell_account_settings.
    regions List<GetCloudShellAccountSettingsRegion>
    (List) 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
    (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
    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
    (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
    (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
    (Boolean) State of the region.
    features GetCloudShellAccountSettingsFeature[]
    (List) List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    id string
    The unique identifier of the cloud_shell_account_settings.
    regions GetCloudShellAccountSettingsRegion[]
    (List) 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
    (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
    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
    (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.
    default_enable_new_regions bool
    (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 bool
    (Boolean) State of the region.
    features Sequence[GetCloudShellAccountSettingsFeature]
    (List) List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    id str
    The unique identifier of the cloud_shell_account_settings.
    regions Sequence[GetCloudShellAccountSettingsRegion]
    (List) 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
    (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 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
    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
    (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
    (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
    (Boolean) State of the region.
    features List<Property Map>
    (List) List of Cloud Shell features.

    • Constraints: The maximum length is 2 items. The minimum length is 0 items. Nested schema for features:
    id String
    The unique identifier of the cloud_shell_account_settings.
    regions List<Property Map>
    (List) 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
    (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

    GetCloudShellAccountSettingsFeature

    Enabled bool
    (Boolean) State of the region.
    Key string
    (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
    (Boolean) State of the region.
    Key string
    (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
    (Boolean) State of the region.
    key String
    (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
    (Boolean) State of the region.
    key string
    (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
    (Boolean) State of the region.
    key str
    (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
    (Boolean) State of the region.
    key String
    (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-]*$/.

    GetCloudShellAccountSettingsRegion

    Enabled bool
    (Boolean) State of the region.
    Key string
    (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
    (Boolean) State of the region.
    Key string
    (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
    (Boolean) State of the region.
    key String
    (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
    (Boolean) State of the region.
    key string
    (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
    (Boolean) State of the region.
    key str
    (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
    (Boolean) State of the region.
    key String
    (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-]*$/.

    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.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud