This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi
This provider is currently in preview.
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:
- 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 stringID - 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 Dictionary<string, object> - Provider-specific configuration for the account.
- Scan
Schedule 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 stringID - 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[string]interface{} - Provider-specific configuration for the account.
- Scan
Schedule 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_ stringid - 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').
- 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 StringID - 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<String,Object> - Provider-specific configuration for the account.
- scan
Schedule 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 stringID - 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 {[key: string]: any} - Provider-specific configuration for the account.
- scan
Schedule 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_ strid - 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').
- 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 StringID - 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').
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.
- Owned
By object - The user with ownership of this Insights account
- Scheduled
Scan boolEnabled - If true, the account is scheduled for recurring discovery.
- Provider
Env stringRef - 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 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.
- Owned
By interface{} - The user with ownership of this Insights account
- Scheduled
Scan boolEnabled - If true, the account is scheduled for recurring discovery.
- Provider
Env stringRef - 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 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_ boolenabled - If true, the account is scheduled for recurring discovery.
- provider_
env_ stringref - 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.
- owned
By Object - The user with ownership of this Insights account
- scheduled
Scan BooleanEnabled - If true, the account is scheduled for recurring discovery.
- provider
Env StringRef - 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 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.
- owned
By any - The user with ownership of this Insights account
- scheduled
Scan booleanEnabled - If true, the account is scheduled for recurring discovery.
- provider
Env stringRef - 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 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_ boolenabled - If true, the account is scheduled for recurring discovery.
- provider_
env_ strref - 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.
- owned
By Any - The user with ownership of this Insights account
- scheduled
Scan BooleanEnabled - If true, the account is scheduled for recurring discovery.
- provider
Env StringRef - 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.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
This provider is currently in preview.
published on Thursday, May 21, 2026 by Pulumi