1. Packages
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. api
  6. api/insights
  7. Account

This provider is currently in preview.

Viewing docs for Pulumi Cloud v1.1.0
published on Thursday, May 21, 2026 by Pulumi
pulumiservice logo

This provider is currently in preview.

Viewing docs for Pulumi Cloud v1.1.0
published on Thursday, May 21, 2026 by Pulumi

    Creates a new Insights account. An Insights account represents a cloud provider account (e.g., AWS, Azure, OCI) configured for resource discovery.

    Create Account Resource

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

    Constructor syntax

    new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
    @overload
    def Account(resource_name: str,
                args: AccountArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Account(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_name: Optional[str] = None,
                environment: Optional[str] = None,
                org_name: Optional[str] = None,
                provider: Optional[str] = None,
                agent_pool_id: Optional[str] = None,
                cron: Optional[str] = None,
                provider_config: Optional[Mapping[str, Any]] = None,
                scan_schedule: Optional[str] = None)
    func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
    public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
    public Account(String name, AccountArgs args)
    public Account(String name, AccountArgs args, CustomResourceOptions options)
    
    type: pulumiservice:api/insights:Account
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "pulumiservice_api_insights_account" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AccountArgs
    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 AccountArgs
    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 AccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountArgs
    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 accountResource = new PulumiService.Api.Insights.Account("accountResource", new()
    {
        AccountName = "string",
        Environment = "string",
        OrgName = "string",
        Provider = "string",
        AgentPoolID = "string",
        Cron = "string",
        ProviderConfig = 
        {
            { "string", "any" },
        },
        ScanSchedule = "string",
    });
    
    example, err := insights.NewAccount(ctx, "accountResource", &insights.AccountArgs{
    	AccountName: pulumi.String("string"),
    	Environment: pulumi.String("string"),
    	OrgName:     pulumi.String("string"),
    	Provider:    pulumi.String("string"),
    	AgentPoolID: pulumi.String("string"),
    	Cron:        pulumi.String("string"),
    	ProviderConfig: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	ScanSchedule: pulumi.String("string"),
    })
    
    resource "pulumiservice_api_insights_account" "accountResource" {
      account_name  = "string"
      environment   = "string"
      org_name      = "string"
      provider      = "string"
      agent_pool_id = "string"
      cron          = "string"
      provider_config = {
        "string" = "any"
      }
      scan_schedule = "string"
    }
    
    var accountResource = new Account("accountResource", AccountArgs.builder()
        .accountName("string")
        .environment("string")
        .orgName("string")
        .provider("string")
        .agentPoolID("string")
        .cron("string")
        .providerConfig(Map.of("string", "any"))
        .scanSchedule("string")
        .build());
    
    account_resource = pulumiservice.api.insights.Account("accountResource",
        account_name="string",
        environment="string",
        org_name="string",
        provider="string",
        agent_pool_id="string",
        cron="string",
        provider_config={
            "string": "any",
        },
        scan_schedule="string")
    
    const accountResource = new pulumiservice.api.insights.Account("accountResource", {
        accountName: "string",
        environment: "string",
        orgName: "string",
        provider: "string",
        agentPoolID: "string",
        cron: "string",
        providerConfig: {
            string: "any",
        },
        scanSchedule: "string",
    });
    
    type: pulumiservice:api/insights:Account
    properties:
        accountName: string
        agentPoolID: string
        cron: string
        environment: string
        orgName: string
        provider: string
        providerConfig:
            string: any
        scanSchedule: string
    

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

    AccountName string
    The Insights account name
    Environment string
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    OrgName string
    The organization name
    Provider string
    The cloud provider for the account (e.g., aws, gcp, azure-native).
    AgentPoolID string
    The ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.
    Cron string
    Deprecated: Use scanSchedule instead. Cron expression for scheduling scans.
    ProviderConfig Dictionary<string, object>
    Provider-specific configuration for the account.
    ScanSchedule string
    Schedule for automated discovery scans (e.g., 'none', 'daily').
    AccountName string
    The Insights account name
    Environment string
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    OrgName string
    The organization name
    Provider string
    The cloud provider for the account (e.g., aws, gcp, azure-native).
    AgentPoolID string
    The ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.
    Cron string
    Deprecated: Use scanSchedule instead. Cron expression for scheduling scans.
    ProviderConfig map[string]interface{}
    Provider-specific configuration for the account.
    ScanSchedule string
    Schedule for automated discovery scans (e.g., 'none', 'daily').
    account_name string
    The Insights account name
    environment string
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    org_name string
    The organization name
    provider string
    The cloud provider for the account (e.g., aws, gcp, azure-native).
    agent_pool_id string
    The ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.
    cron string
    Deprecated: Use scanSchedule instead. Cron expression for scheduling scans.
    provider_config map(any)
    Provider-specific configuration for the account.
    scan_schedule string
    Schedule for automated discovery scans (e.g., 'none', 'daily').
    accountName String
    The Insights account name
    environment String
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    orgName String
    The organization name
    provider String
    The cloud provider for the account (e.g., aws, gcp, azure-native).
    agentPoolID String
    The ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.
    cron String
    Deprecated: Use scanSchedule instead. Cron expression for scheduling scans.
    providerConfig Map<String,Object>
    Provider-specific configuration for the account.
    scanSchedule String
    Schedule for automated discovery scans (e.g., 'none', 'daily').
    accountName string
    The Insights account name
    environment string
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    orgName string
    The organization name
    provider string
    The cloud provider for the account (e.g., aws, gcp, azure-native).
    agentPoolID string
    The ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.
    cron string
    Deprecated: Use scanSchedule instead. Cron expression for scheduling scans.
    providerConfig {[key: string]: any}
    Provider-specific configuration for the account.
    scanSchedule string
    Schedule for automated discovery scans (e.g., 'none', 'daily').
    account_name str
    The Insights account name
    environment str
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    org_name str
    The organization name
    provider str
    The cloud provider for the account (e.g., aws, gcp, azure-native).
    agent_pool_id str
    The ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.
    cron str
    Deprecated: Use scanSchedule instead. Cron expression for scheduling scans.
    provider_config Mapping[str, Any]
    Provider-specific configuration for the account.
    scan_schedule str
    Schedule for automated discovery scans (e.g., 'none', 'daily').
    accountName String
    The Insights account name
    environment String
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    orgName String
    The organization name
    provider String
    The cloud provider for the account (e.g., aws, gcp, azure-native).
    agentPoolID String
    The ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.
    cron String
    Deprecated: Use scanSchedule instead. Cron expression for scheduling scans.
    providerConfig Map<Any>
    Provider-specific configuration for the account.
    scanSchedule String
    Schedule for automated discovery scans (e.g., 'none', 'daily').

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the account.
    OwnedBy object
    The user with ownership of this Insights account
    ScheduledScanEnabled bool
    If true, the account is scheduled for recurring discovery.
    ProviderEnvRef string
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    ProviderVersion string
    The version of the Pulumi provider package used for discovery.
    ScanStatus object
    Status of the last discovery scan for this account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the account.
    OwnedBy interface{}
    The user with ownership of this Insights account
    ScheduledScanEnabled bool
    If true, the account is scheduled for recurring discovery.
    ProviderEnvRef string
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    ProviderVersion string
    The version of the Pulumi provider package used for discovery.
    ScanStatus interface{}
    Status of the last discovery scan for this account.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the account.
    owned_by any
    The user with ownership of this Insights account
    scheduled_scan_enabled bool
    If true, the account is scheduled for recurring discovery.
    provider_env_ref string
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    provider_version string
    The version of the Pulumi provider package used for discovery.
    scan_status any
    Status of the last discovery scan for this account.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the account.
    ownedBy Object
    The user with ownership of this Insights account
    scheduledScanEnabled Boolean
    If true, the account is scheduled for recurring discovery.
    providerEnvRef String
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    providerVersion String
    The version of the Pulumi provider package used for discovery.
    scanStatus Object
    Status of the last discovery scan for this account.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the account.
    ownedBy any
    The user with ownership of this Insights account
    scheduledScanEnabled boolean
    If true, the account is scheduled for recurring discovery.
    providerEnvRef string
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    providerVersion string
    The version of the Pulumi provider package used for discovery.
    scanStatus any
    Status of the last discovery scan for this account.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the account.
    owned_by Any
    The user with ownership of this Insights account
    scheduled_scan_enabled bool
    If true, the account is scheduled for recurring discovery.
    provider_env_ref str
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    provider_version str
    The version of the Pulumi provider package used for discovery.
    scan_status Any
    Status of the last discovery scan for this account.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the account.
    ownedBy Any
    The user with ownership of this Insights account
    scheduledScanEnabled Boolean
    If true, the account is scheduled for recurring discovery.
    providerEnvRef String
    Reference to an ESC environment containing provider credentials, in the format 'project/environment' with an optional @version suffix.
    providerVersion String
    The version of the Pulumi provider package used for discovery.
    scanStatus Any
    Status of the last discovery scan for this account.

    Package Details

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

    This provider is currently in preview.

    Viewing docs for Pulumi Cloud v1.1.0
    published on Thursday, May 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial