1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. getInsightsAccounts

This provider is currently in preview.

Pulumi Cloud v0.34.0 published on Friday, Jan 23, 2026 by Pulumi
pulumiservice logo

This provider is currently in preview.

Pulumi Cloud v0.34.0 published on Friday, Jan 23, 2026 by Pulumi

    Get a list of all Insights accounts for an organization.

    Using getInsightsAccounts

    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 getInsightsAccounts(args: GetInsightsAccountsArgs, opts?: InvokeOptions): Promise<GetInsightsAccountsResult>
    function getInsightsAccountsOutput(args: GetInsightsAccountsOutputArgs, opts?: InvokeOptions): Output<GetInsightsAccountsResult>
    def get_insights_accounts(organization_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetInsightsAccountsResult
    def get_insights_accounts_output(organization_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetInsightsAccountsResult]
    func GetInsightsAccounts(ctx *Context, args *GetInsightsAccountsArgs, opts ...InvokeOption) (*GetInsightsAccountsResult, error)
    func GetInsightsAccountsOutput(ctx *Context, args *GetInsightsAccountsOutputArgs, opts ...InvokeOption) GetInsightsAccountsResultOutput

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

    public static class GetInsightsAccounts 
    {
        public static Task<GetInsightsAccountsResult> InvokeAsync(GetInsightsAccountsArgs args, InvokeOptions? opts = null)
        public static Output<GetInsightsAccountsResult> Invoke(GetInsightsAccountsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInsightsAccountsResult> getInsightsAccounts(GetInsightsAccountsArgs args, InvokeOptions options)
    public static Output<GetInsightsAccountsResult> getInsightsAccounts(GetInsightsAccountsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: pulumiservice:getInsightsAccounts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getInsightsAccounts Result

    The following output properties are available:

    Supporting Types

    CloudProvider

    InsightsAccountState

    AccountName string
    Name of the insights account.
    Environment string
    The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0').
    InsightsAccountId string
    The insights account identifier.
    OrganizationName string
    The organization's name.
    Provider Pulumi.PulumiService.CloudProvider
    The cloud provider for scanning.
    ScanSchedule Pulumi.PulumiService.ScanSchedule
    Schedule for automated scanning. Use 'daily' to enable daily scans, or 'none' to disable scheduled scanning. Defaults to 'none'.
    ScheduledScanEnabled bool
    Whether scheduled scanning is enabled.
    ProviderConfig Dictionary<string, object>
    Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {"regions": ["us-west-1", "us-west-2"]}.
    Tags Dictionary<string, string>
    Key-value tags to associate with the insights account.
    AccountName string
    Name of the insights account.
    Environment string
    The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0').
    InsightsAccountId string
    The insights account identifier.
    OrganizationName string
    The organization's name.
    Provider CloudProvider
    The cloud provider for scanning.
    ScanSchedule ScanSchedule
    Schedule for automated scanning. Use 'daily' to enable daily scans, or 'none' to disable scheduled scanning. Defaults to 'none'.
    ScheduledScanEnabled bool
    Whether scheduled scanning is enabled.
    ProviderConfig map[string]interface{}
    Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {"regions": ["us-west-1", "us-west-2"]}.
    Tags map[string]string
    Key-value tags to associate with the insights account.
    accountName String
    Name of the insights account.
    environment String
    The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0').
    insightsAccountId String
    The insights account identifier.
    organizationName String
    The organization's name.
    provider CloudProvider
    The cloud provider for scanning.
    scanSchedule ScanSchedule
    Schedule for automated scanning. Use 'daily' to enable daily scans, or 'none' to disable scheduled scanning. Defaults to 'none'.
    scheduledScanEnabled Boolean
    Whether scheduled scanning is enabled.
    providerConfig Map<String,Object>
    Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {"regions": ["us-west-1", "us-west-2"]}.
    tags Map<String,String>
    Key-value tags to associate with the insights account.
    accountName string
    Name of the insights account.
    environment string
    The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0').
    insightsAccountId string
    The insights account identifier.
    organizationName string
    The organization's name.
    provider CloudProvider
    The cloud provider for scanning.
    scanSchedule ScanSchedule
    Schedule for automated scanning. Use 'daily' to enable daily scans, or 'none' to disable scheduled scanning. Defaults to 'none'.
    scheduledScanEnabled boolean
    Whether scheduled scanning is enabled.
    providerConfig {[key: string]: any}
    Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {"regions": ["us-west-1", "us-west-2"]}.
    tags {[key: string]: string}
    Key-value tags to associate with the insights account.
    account_name str
    Name of the insights account.
    environment str
    The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0').
    insights_account_id str
    The insights account identifier.
    organization_name str
    The organization's name.
    provider CloudProvider
    The cloud provider for scanning.
    scan_schedule ScanSchedule
    Schedule for automated scanning. Use 'daily' to enable daily scans, or 'none' to disable scheduled scanning. Defaults to 'none'.
    scheduled_scan_enabled bool
    Whether scheduled scanning is enabled.
    provider_config Mapping[str, Any]
    Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {"regions": ["us-west-1", "us-west-2"]}.
    tags Mapping[str, str]
    Key-value tags to associate with the insights account.
    accountName String
    Name of the insights account.
    environment String
    The ESC environment used for provider credentials. Format: 'project/environment' with optional '@version' suffix (e.g., 'my-project/prod-env' or 'my-project/prod-env@v1.0').
    insightsAccountId String
    The insights account identifier.
    organizationName String
    The organization's name.
    provider "aws" | "azure-native" | "gcp" | "kubernetes" | "oci"
    The cloud provider for scanning.
    scanSchedule "none" | "daily"
    Schedule for automated scanning. Use 'daily' to enable daily scans, or 'none' to disable scheduled scanning. Defaults to 'none'.
    scheduledScanEnabled Boolean
    Whether scheduled scanning is enabled.
    providerConfig Map<Any>
    Provider-specific configuration as a JSON object. For AWS, specify regions to scan: {"regions": ["us-west-1", "us-west-2"]}.
    tags Map<String>
    Key-value tags to associate with the insights account.

    ScanSchedule

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo

    This provider is currently in preview.

    Pulumi Cloud v0.34.0 published on Friday, Jan 23, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate