ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getCloudShellAccountSettings
Explore with Pulumi AI
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:
- account_
id str - The account ID in which the account settings belong to.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- id str
- The unique identifier of the cloud_shell_account_settings.
getCloudShellAccountSettings Result
The following output properties are available:
- Account
Id string - Created
At double - (Integer) Creation timestamp in Unix epoch time.
- Created
By string - (String) IAM ID of creator.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Default
Enable boolNew Features - (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 boolNew Regions - (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<Get
Cloud Shell Account Settings Feature> - (List) List of Cloud Shell features.
- Constraints: The maximum length is
2
items. The minimum length is0
items. Nested schema for features:
- Constraints: The maximum length is
- Id string
- The unique identifier of the cloud_shell_account_settings.
- Regions
List<Get
Cloud Shell Account Settings Region> - (List) List of Cloud Shell region settings.
- Constraints: The maximum length is
3
items. The minimum length is0
items. Nested schema for regions:
- Constraints: The maximum length is
- Rev string
- (String) Unique revision number for the settings object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Type string
- (String) Type of api response object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-z_]*$/
.
- Constraints: The maximum length is
- Updated
At double - (Integer) Timestamp of last update in Unix epoch time.
- Updated
By string - (String) IAM ID of last updater.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Account
Id string - Created
At float64 - (Integer) Creation timestamp in Unix epoch time.
- Created
By string - (String) IAM ID of creator.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Default
Enable boolNew Features - (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 boolNew Regions - (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
[]Get
Cloud Shell Account Settings Feature - (List) List of Cloud Shell features.
- Constraints: The maximum length is
2
items. The minimum length is0
items. Nested schema for features:
- Constraints: The maximum length is
- Id string
- The unique identifier of the cloud_shell_account_settings.
- Regions
[]Get
Cloud Shell Account Settings Region - (List) List of Cloud Shell region settings.
- Constraints: The maximum length is
3
items. The minimum length is0
items. Nested schema for regions:
- Constraints: The maximum length is
- Rev string
- (String) Unique revision number for the settings object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- Type string
- (String) Type of api response object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-z_]*$/
.
- Constraints: The maximum length is
- Updated
At float64 - (Integer) Timestamp of last update in Unix epoch time.
- Updated
By string - (String) IAM ID of last updater.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- account
Id String - created
At Double - (Integer) Creation timestamp in Unix epoch time.
- created
By String - (String) IAM ID of creator.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- default
Enable BooleanNew Features - (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 BooleanNew Regions - (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<Get
Cloud Shell Account Settings Feature> - (List) List of Cloud Shell features.
- Constraints: The maximum length is
2
items. The minimum length is0
items. Nested schema for features:
- Constraints: The maximum length is
- id String
- The unique identifier of the cloud_shell_account_settings.
- regions
List<Get
Cloud Shell Account Settings Region> - (List) List of Cloud Shell region settings.
- Constraints: The maximum length is
3
items. The minimum length is0
items. Nested schema for regions:
- Constraints: The maximum length is
- rev String
- (String) Unique revision number for the settings object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- type String
- (String) Type of api response object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-z_]*$/
.
- Constraints: The maximum length is
- updated
At Double - (Integer) Timestamp of last update in Unix epoch time.
- updated
By String - (String) IAM ID of last updater.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- account
Id string - created
At number - (Integer) Creation timestamp in Unix epoch time.
- created
By string - (String) IAM ID of creator.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- default
Enable booleanNew Features - (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 booleanNew Regions - (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
Get
Cloud Shell Account Settings Feature[] - (List) List of Cloud Shell features.
- Constraints: The maximum length is
2
items. The minimum length is0
items. Nested schema for features:
- Constraints: The maximum length is
- id string
- The unique identifier of the cloud_shell_account_settings.
- regions
Get
Cloud Shell Account Settings Region[] - (List) List of Cloud Shell region settings.
- Constraints: The maximum length is
3
items. The minimum length is0
items. Nested schema for regions:
- Constraints: The maximum length is
- rev string
- (String) Unique revision number for the settings object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- type string
- (String) Type of api response object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-z_]*$/
.
- Constraints: The maximum length is
- updated
At number - (Integer) Timestamp of last update in Unix epoch time.
- updated
By string - (String) IAM ID of last updater.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- 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 is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- default_
enable_ boolnew_ features - (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_ boolnew_ regions - (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[Get
Cloud Shell Account Settings Feature] - (List) List of Cloud Shell features.
- Constraints: The maximum length is
2
items. The minimum length is0
items. Nested schema for features:
- Constraints: The maximum length is
- id str
- The unique identifier of the cloud_shell_account_settings.
- regions
Sequence[Get
Cloud Shell Account Settings Region] - (List) List of Cloud Shell region settings.
- Constraints: The maximum length is
3
items. The minimum length is0
items. Nested schema for regions:
- Constraints: The maximum length is
- rev str
- (String) Unique revision number for the settings object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- type str
- (String) Type of api response object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-z_]*$/
.
- Constraints: The maximum length is
- 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 is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- account
Id String - created
At Number - (Integer) Creation timestamp in Unix epoch time.
- created
By String - (String) IAM ID of creator.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- default
Enable BooleanNew Features - (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 BooleanNew Regions - (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 is0
items. Nested schema for features:
- Constraints: The maximum length is
- 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 is0
items. Nested schema for regions:
- Constraints: The maximum length is
- rev String
- (String) Unique revision number for the settings object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
- type String
- (String) Type of api response object.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-z_]*$/
.
- Constraints: The maximum length is
- updated
At Number - (Integer) Timestamp of last update in Unix epoch time.
- updated
By String - (String) IAM ID of last updater.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9-]*$/
.
- Constraints: The maximum length is
Supporting Types
GetCloudShellAccountSettingsFeature
GetCloudShellAccountSettingsRegion
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.