Insights Accounts
Search Stacks
/api/console/orgs/{orgName}/stacks/searchReturns a combined view of IaC-managed stacks and discovered stacks.
Request Parameters
orgNamestring path requiredThe organization name
Request Body
startRowinteger optionalThe start rowendRowinteger optionalThe end row- List of row group cols
- ↳
idstring requiredThe unique identifier - ↳
displayNamestring requiredThe display name - ↳
fieldstring optionalThe field - ↳
aggFuncstring optionalThe agg func - List of value cols
- ↳
idstring requiredThe unique identifier - ↳
displayNamestring requiredThe display name - ↳
fieldstring optionalThe field - ↳
aggFuncstring optionalThe agg func groupKeysarray[string] requiredList of group keys- The filter model
- ↳
typestring requiredThe type - List of conditions
- List of sort model
- ↳
colIdstring requiredColumn Id to apply the sort to. - ↳
sortstring requiredSort direction
Responses
rowDataarray[object] requiredThe project data rowsrowCountinteger optionalThe total number of rows
Get Usage Summary Insights Scans
/api/orgs/{orgName}/insights-scans/summaryReturns a summary of Insights scan usage for an organization, grouped by the specified time granularity.
Request Parameters
orgNamestring path requiredThe organization namegranularitystring query optionalTime granularity for grouping usage data. Valid values: ‘hourly’, ‘daily’, ‘weekly’, ‘monthly’, ‘yearly’. Hourly granularity is limited to a 2-day lookback.lookbackDaysinteger query optionalNumber of days to look back for usage data. Mutually exclusive with lookbackStart; exactly one must be provided.lookbackStartinteger query optionalStart of the lookback period as a Unix timestamp (seconds since epoch). Must be within the last year and in the past. Mutually exclusive with lookbackDays; exactly one must be provided.
Responses
- The list of resource count summaries
- ↳
yearinteger requiredThe 4-digit year. - ↳
monthinteger optionalThe month of the year. Ranges from 1 to 12. - ↳
dayinteger optionalThe day of month. Ranges from 1 to 31. - ↳
weekNumberinteger optionalThe week number in the year with Sunday marking the start of the week. Ranges from 0-53. - ↳
hourinteger optionalThe hour of the day. Ranges from 0 to 23. - ↳
resourcesinteger requiredThe RUM (total number of resources under management at a given time). Calculated by getting the average of the all the resources for the given time frame. - ↳
resourceHoursinteger requiredThe RHUM, which is the number of hours the resources under management have been running. Calculated by getting the sum of all the resources for the given time frame. 1 resource hour = 1 Pulumi credit.
List Accounts
/api/preview/insights/{orgName}/accountsLists Insights accounts available to the authenticated user within the specified organization.
Request Parameters
orgNamestring path requiredThe organization namecontinuationTokenstring query optionalContinuation token for paginated resultscountinteger query optionalNumber of results to return (default: 100, max: 1000)parentstring query optionalFilter results to child accounts of the specified parent account name (e.g., an AWS organization management account)roleIDstring query optionalFilter results to accounts accessible by the specified role
Responses
- The list of Insights accounts
- ↳
idstring requiredID of the account. - ↳
namestring requiredThe name of the account. - The user with ownership of this Insights account
- ↳
providerstring requiredThe cloud provider for the account (e.g., aws, gcp, azure-native). - ↳
providerVersionstring optionalThe version of the Pulumi provider package used for discovery. - ↳
providerEnvRefstring optionalReference to an ESC environment containing provider credentials, in the format ‘project/environment’ with an optional @version suffix. - ↳
scheduledScanEnabledboolean requiredIf true, the account is scheduled for recurring discovery. - ↳
agentPoolIDstring optionalThe ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool. - ↳
providerConfigobject optionalProvider-specific configuration for the account. - Status of the last discovery scan for this account.
nextTokenstring optionalToken for fetching the next page of results
Bulk Create Accounts
/api/preview/insights/{orgName}/accountsCreates multiple Insights accounts in a single operation. Each account is created independently, so a failure to create one account does not prevent other accounts from being created. Returns the list of successfully created accounts and details about any failures. Accounts are created with the same permissions as the single CreateAccount endpoint. For AWS accounts, regional child accounts are created automatically based on the provider configuration.
Request Parameters
orgNamestring path requiredThe organization name
Request Body
- The list of accounts to create. Each item defines a single Insights account with its provider, ESC environment reference, and optional configuration. Maximum 100 accounts per request.
- ↳
namestring requiredThe name of the account to create. Must be unique within the organization. - ↳
providerenum requiredThe cloud provider for the account (e.g., aws, gcp, azure-native).Values:aws,gcp,azure-native,oci,kubernetes - ↳
environmentstring requiredReference to an ESC environment containing provider credentials, in the format ‘project/environment’ with an optional @version suffix. - ↳
scanScheduleenum optionalSchedule for automated discovery scans (e.g., ’none’, ‘daily’).Values:none,12h,daily - ↳
agentPoolIDstring optionalThe ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool. - ↳
providerConfigobject optionalProvider-specific configuration for the account.
Responses
- The list of accounts that were successfully created.
- ↳
idstring requiredID of the account. - ↳
namestring requiredThe name of the account. - The user with ownership of this Insights account
- ↳
providerstring requiredThe cloud provider for the account (e.g., aws, gcp, azure-native). - ↳
providerVersionstring optionalThe version of the Pulumi provider package used for discovery. - ↳
providerEnvRefstring optionalReference to an ESC environment containing provider credentials, in the format ‘project/environment’ with an optional @version suffix. - ↳
scheduledScanEnabledboolean requiredIf true, the account is scheduled for recurring discovery. - ↳
agentPoolIDstring optionalThe ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool. - ↳
providerConfigobject optionalProvider-specific configuration for the account. - Status of the last discovery scan for this account.
- The list of accounts that failed to be created, with error details.
- ↳
namestring requiredThe name of the account that failed to be created. - ↳
errorstring requiredA human-readable error message describing why the account creation failed.
Read Account
/api/preview/insights/{orgName}/accounts/{accountName}Gets detailed information for a specific Insights account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
idstring requiredID of the account.namestring requiredThe name of the account.- The user with ownership of this Insights account
- ↳
namestring requiredThe user’s display name. - ↳
githubLoginstring requiredThe user’s login name. - ↳
avatarUrlstring requiredThe URL of the user’s avatar image. - ↳
emailstring optionalIMPORTANT: The email address of the user is only included on a few admin-only APIs. For nearly all APIs that return a UserInfo object, this will not be provided. considered sensitive information. providerstring requiredThe cloud provider for the account (e.g., aws, gcp, azure-native).providerVersionstring optionalThe version of the Pulumi provider package used for discovery.providerEnvRefstring optionalReference to an ESC environment containing provider credentials, in the format ‘project/environment’ with an optional @version suffix.scheduledScanEnabledboolean requiredIf true, the account is scheduled for recurring discovery.agentPoolIDstring optionalThe ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.providerConfigobject optionalProvider-specific configuration for the account.- Status of the last discovery scan for this account.
- ↳
accountNamestring optionalThe name of the insights account associated with this scan. - ↳
idstring requiredThe unique identifier of the workflow run. - ↳
orgIdstring requiredThe organization ID. - ↳
resourceCountinteger optionalThe number of resources discovered by this scan. - ↳
userIdstring requiredThe user ID who initiated the workflow run. - ↳
statusenum requiredThe current status of the workflow run.Values:running,failed,succeeded - ↳
startedAtstring requiredThe time the workflow run started. - ↳
finishedAtstring requiredThe time the workflow run finished, if completed. - ↳
lastUpdatedAtstring requiredThe time the workflow run was last updated. - ↳
jobTimeoutstring requiredThe timeout for jobs in the workflow run. - The list of job runs within the workflow.
Create Account
/api/preview/insights/{orgName}/accounts/{accountName}Creates a new Insights account. An Insights account represents a cloud provider account (e.g., AWS, Azure, OCI) configured for resource discovery.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Request Body
providerenum requiredThe cloud provider for the account (e.g., aws, gcp, azure-native).Values:aws,gcp,azure-native,oci,kubernetesenvironmentstring requiredReference to an ESC environment containing provider credentials, in the format ‘project/environment’ with an optional @version suffix.cronstring optionalDeprecated: Use scanSchedule instead. Cron expression for scheduling scans.scanScheduleenum optionalSchedule for automated discovery scans (e.g., ’none’, ‘daily’).Values:none,12h,dailyagentPoolIDstring optionalThe ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.providerConfigobject optionalProvider-specific configuration for the account.
Responses
Update Account
/api/preview/insights/{orgName}/accounts/{accountName}Updates an existing Insights account. Supports partial updates to the ESC environment reference, scan schedule (’none’ or ‘daily’), and provider-specific configuration such as the list of regions to scan. All request body fields are optional; only provided fields are updated.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Request Body
environmentstring requiredReference to an ESC environment containing provider credentials, in the format ‘project/environment’ with an optional @version suffix.scanScheduleenum optionalSchedule for automated discovery scans (e.g., ’none’, ‘daily’).Values:none,12h,dailyproviderConfigobject optionalProvider-specific configuration for the account.agentPoolIDstring optionalThe ID of the agent pool to run account discovery workflows. If not specified, discovery will use the default agent pool.
Responses
Delete Account
/api/preview/insights/{orgName}/accounts/{accountName}Deletes an Insights account and its associated configuration. This operation is irreversible.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
Head Account
/api/preview/insights/{orgName}/accounts/{accountName}Checks whether an Insights account exists. Returns 204 if found, 404 otherwise.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
List Policy Packs For Account
/api/preview/insights/{orgName}/accounts/{accountName}/policy/packsReturns the policy packs configured to analyze resources in the specified Insights account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account namecontinuationTokenstring query optionalContinuation token for paginated results
Responses
- The list of required policy packs
- ↳
namestring requiredThe name (unique and URL-safe) of the required Policy Pack. - ↳
versioninteger requiredThe version of the required Policy Pack. - ↳
versionTagstring requiredThe version tag of the required Policy Pack. - ↳
displayNamestring requiredThe pretty name of the required Policy Pack. - ↳
packLocationstring optionalWhere the Policy Pack can be downloaded from. - ↳
configmap[string]object optionalThe configuration that is to be passed to the Policy Pack. This is map a of policies mapped to their configuration. Each individual configuration must comply with the JSON schema for each Policy within the Policy Pack. - ↳
environmentsarray[string] optionalReferences to ESC environments whose resolved values the CLI should inject into the policy pack process.
Upsert Resources
/api/preview/insights/{orgName}/accounts/{accountName}/resourcesCreates or updates discovered resources in an Insights account. Used by scanners to report resource state.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Request Body
- The list of resources to upsert.
- ↳
typestring requiredThe resource type. - ↳
idstring requiredThe unique identifier of the resource. - ↳
inputsobject requiredThe resource inputs as raw JSON. - ↳
stateobject requiredThe resource state as raw JSON. - The chain of dependencies used to list this resource.
Responses
Read Resource
/api/preview/insights/{orgName}/accounts/{accountName}/resources/{resourceTypeAndId}Returns a discovered resource with its current version details.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account nameresourceTypeAndIdstring path requiredThe resource type and cloud provider ID, double-URL-encoded, in the format ’type::id'
Responses
accountstring requiredThe account name containing the resourcetypestring requiredThe resource typeidstring requiredThe resource identifierversioninteger requiredThe resource version numbermodifiedstring requiredWhen the resource was last modifiedstateobject optionalThe raw resource statepolicyStatestring optionalThe policy evaluation state for the resource
List Resource Version Edges
/api/preview/insights/{orgName}/accounts/{accountName}/resources/{resourceTypeAndId}/edgesReturns the relationships (edges) between a discovered resource and other resources in the account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account nameresourceTypeAndIdstring path requiredThe resource type and cloud provider ID, double-URL-encoded, in the format ’type::id'continuationTokenstring query optionalContinuation token for paginated resultscountinteger query optionalNumber of results to return (default: 100, max: 500)
Responses
- The list of resource version edges
- ↳
sourceUrnstring requiredThe source resource URN - ↳
sourceVersioninteger requiredThe source resource version - ↳
destUrnstring requiredThe destination resource URN - ↳
edgeTypestring requiredThe type of edge relationship nextTokenstring optionalToken for fetching the next page of results
Read Resource With References
/api/preview/insights/{orgName}/accounts/{accountName}/resources/{resourceTypeAndId}/referencesReturns a discovered resource along with its referenced (related) resources.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account nameresourceTypeAndIdstring path requiredThe resource type and cloud provider ID, double-URL-encoded, in the format ’type::id'
Responses
- The Insights resource with version information
- ↳
accountstring requiredThe account name containing the resource - ↳
typestring requiredThe resource type - ↳
idstring requiredThe resource identifier - ↳
versioninteger requiredThe resource version number - ↳
modifiedstring requiredWhen the resource was last modified - ↳
stateobject optionalThe raw resource state - ↳
policyStatestring optionalThe policy evaluation state for the resource - The indexed resource result
- ↳
createdstring optionalThe ISO 8601 timestamp when the resource was first indexed. - ↳
customboolean optionalWhether this is a custom resource managed by a provider plugin. - ↳
deleteboolean optionalWhether this resource is pending deletion. - ↳
dependenciesarray[string] optionalURNs of resources that this resource depends on. - ↳
externalboolean optionalWhether the lifecycle of this resource is not managed by Pulumi. - ↳
idstring optionalThe provider-assigned resource ID. - ↳
matchesmap[string]array optionalMatched search terms mapped to their highlighted values. - ↳
modifiedstring optionalThe ISO 8601 timestamp when the resource was last updated in the index. - ↳
modulestring requiredThe module that contains this resource. - ↳
namestring optionalThe name of the resource. - ↳
packagestring requiredThe package that provides this resource. - ↳
parent_urnstring optionalThe URN of the parent resource, if any. - ↳
pendingstring optionalThe pending operation on this resource, if any (e.g. creating, updating, deleting). - ↳
projectstring optionalThe project that contains this resource. - ↳
protectedboolean optionalWhether this resource is protected from deletion. - ↳
provider_urnstring optionalThe URN of the provider for this resource. - ↳
stackstring optionalThe stack that contains this resource. - ↳
typestring optionalThe full type token of the resource (e.g. aws:s3/bucket:Bucket). - ↳
urnstring optionalThe URN uniquely identifying this resource within a stack. - ↳
teamsarray[string] optionalThe teams that have access to this resource. - ↳
propertiesobject optionalThe resource’s input/output properties as a JSON object. Only populated when explicitly requested. - ↳
metadataobject optionalAdditional metadata associated with the resource. - ↳
categorystring optionalThe category of the resource. - ↳
accountstring optionalThe Insights account name that discovered or manages this resource. - ↳
dependentsarray[string] optionalURNs of resources that depend on this resource. - ↳
managedstring optionalWhether this resource is managed by Pulumi IaC stacks or discovered by Insights scanning. One of ‘managed’ or ‘discovered’. - ↳
fingerprintstring optionalA fingerprint uniquely identifying this resource’s state. - ↳
sourceCountinteger optionalThe number of sources for this resource. urnstring requiredThe resource URN- Resources that reference this resource
- The Insights resource with version information
- The indexed resource result
- ↳
urnstring requiredThe resource URN - Resources that reference this resource
- Resources that this resource references
- Resources that this resource references
- The Insights resource with version information
- The indexed resource result
- ↳
urnstring requiredThe resource URN - Resources that reference this resource
- Resources that this resource references
List Resource Stack Edges
/api/preview/insights/{orgName}/accounts/{accountName}/resources/{resourceTypeAndId}/stack_edgesReturns the Pulumi stacks that manage the specified discovered resource.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account nameresourceTypeAndIdstring path requiredThe resource type and cloud provider ID, double-URL-encoded, in the format ’type::id’ (e.g., ‘aws:ec2/instance:Instance::i-1234567890abcdef0’)
Responses
- The list of resource-to-stack edges
- ↳
insightsResourceIdstring requiredThe Insights resource identifier - ↳
stackResourceUrnstring requiredThe stack resource URN
List Resource Versions
/api/preview/insights/{orgName}/accounts/{accountName}/resources/{resourceTypeAndId}/versionsReturns the version history for a discovered resource, showing how its configuration has changed over time.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account nameresourceTypeAndIdstring path requiredThe resource type and cloud provider ID, double-URL-encoded, in the format ’type::id'continuationTokenstring query optionalContinuation token for paginated resultscountinteger query optionalNumber of results to return (default: 100, max: 500)
Responses
- The list of resource versions
- ↳
versioninteger requiredThe version number - ↳
createdstring requiredWhen the version was created nextTokenstring optionalToken for fetching the next page of results
Read Resource
/api/preview/insights/{orgName}/accounts/{accountName}/resources/{resourceTypeAndId}/versions/{resourceVersion}Returns a discovered resource with its current or specified version details.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account nameresourceTypeAndIdstring path requiredThe resource type and cloud provider ID, double-URL-encoded, in the format ’type::id'resourceVersionstring path requiredThe specific version number of the discovered resource to retrieve
Responses
accountstring requiredThe account name containing the resourcetypestring requiredThe resource typeidstring requiredThe resource identifierversioninteger requiredThe resource version numbermodifiedstring requiredWhen the resource was last modifiedstateobject optionalThe raw resource statepolicyStatestring optionalThe policy evaluation state for the resource
List Resource Version Edges
/api/preview/insights/{orgName}/accounts/{accountName}/resources/{resourceTypeAndId}/versions/{resourceVersion}/edgesReturns the relationships (edges) between a discovered resource and other resources in the account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account nameresourceTypeAndIdstring path requiredThe resource type and cloud provider ID, double-URL-encoded, in the format ’type::id'resourceVersioninteger path requiredThe specific version number of the resource to list edges forcontinuationTokenstring query optionalContinuation token for paginated resultscountinteger query optionalNumber of results to return (default: 100, max: 500)
Responses
- The list of resource version edges
- ↳
sourceUrnstring requiredThe source resource URN - ↳
sourceVersioninteger requiredThe source resource version - ↳
destUrnstring requiredThe destination resource URN - ↳
edgeTypestring requiredThe type of edge relationship nextTokenstring optionalToken for fetching the next page of results
Update Resource Version Policy Results
/api/preview/insights/{orgName}/accounts/{accountName}/resources/{resourceTypeAndId}/versions/{resourceVersion}/policy/resultsUpdates the policy evaluation results for a specific version of a discovered resource.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account nameresourceTypeAndIdstring path requiredThe resource type and cloud provider ID, double-URL-encoded, in the format ’type::id'resourceVersionstring path requiredThe specific version number of the discovered resource to update policy results for
Request Body
claimIdstring requiredThe claim ID for the policy evaluation.- The policy evaluation results.
- ↳
succeededboolean requiredWhether the policy evaluation succeeded without violations - The list of policy violations found, if any
Responses
List Resources With References
/api/preview/insights/{orgName}/accounts/{accountName}/resources/referencesReturns discovered resources along with their referenced resources for a batch of resource identifiers.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Request Body
- The resource identifiers to look up
- ↳
accountstring requiredThe account name containing the resource - ↳
typestring requiredThe resource type - ↳
idstring requiredThe resource identifier - ↳
versioninteger optionalIf nil, the latest version is used depthinteger optionalThe depth of references to traverse
Responses
Read Scan Status
/api/preview/insights/{orgName}/accounts/{accountName}/scanReturns the status of the most recent scan for an Insights account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
idstring requiredThe unique identifier of the workflow run.nextScanstring optionalThe timestamp of the next scheduled scan, if any.orgIdstring requiredThe organization ID.userIdstring requiredThe user ID who initiated the workflow run.statusenum requiredThe current status of the workflow run.Values:running,failed,succeededstartedAtstring requiredThe time the workflow run started.finishedAtstring requiredThe time the workflow run finished, if completed.lastUpdatedAtstring requiredThe time the workflow run was last updated.jobTimeoutstring requiredThe timeout for jobs in the workflow run.- The list of job runs within the workflow.
- ↳
statusenum requiredThe current status of the job runValues:not-started,accepted,running,failed,succeeded,skipped - ↳
startedstring optionalWhen the job started running - ↳
lastUpdatedstring optionalWhen the job was last updated - ↳
timeoutinteger requiredThe timeout duration for the job in nanoseconds (Go time.Duration). - The list of step runs within this job
- ↳
workerobject optionalInformation about the worker executing this job
Scan Account
/api/preview/insights/{orgName}/accounts/{accountName}/scanStarts a resource discovery scan for an Insights account. For parent accounts, triggers scans across all child accounts.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Request Body
agentPoolIDstring optionalThe ID of the agent pool to use for scanning. If not specified, the default agent pool will be used.listConcurrencyinteger optionalThe concurrency level for list operations during the scan.readConcurrencyinteger optionalThe concurrency level for read operations during the scan.batchSizeinteger optionalThe batch size for processing resources during the scan.readTimeoutstring optionalThe timeout duration for read operations, as a Go duration string (e.g., ’30s’, ‘5m’).
Responses
idstring requiredThe unique identifier of the workflow run.orgIdstring requiredThe organization ID.userIdstring requiredThe user ID who initiated the workflow run.statusenum requiredThe current status of the workflow run.Values:running,failed,succeededstartedAtstring requiredThe time the workflow run started.finishedAtstring requiredThe time the workflow run finished, if completed.lastUpdatedAtstring requiredThe time the workflow run was last updated.jobTimeoutstring requiredThe timeout for jobs in the workflow run.- The list of job runs within the workflow.
- ↳
statusenum requiredThe current status of the job runValues:not-started,accepted,running,failed,succeeded,skipped - ↳
startedstring optionalWhen the job started running - ↳
lastUpdatedstring optionalWhen the job was last updated - ↳
timeoutinteger requiredThe timeout duration for the job in nanoseconds (Go time.Duration). - The list of step runs within this job
- ↳
workerobject optionalInformation about the worker executing this job
Cancel Scan
/api/preview/insights/{orgName}/accounts/{accountName}/scan/cancelCancels a running resource discovery scan for an Insights account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
Pause Scheduled Scans
/api/preview/insights/{orgName}/accounts/{accountName}/scan/pausePauseScheduledScans pauses execution of future scheduled scans for an Insights account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
Resume Scheduled Scans
/api/preview/insights/{orgName}/accounts/{accountName}/scan/resumeResumeScheduledScans resumes execution of future scheduled scans for an Insights account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
Read Scheduled Scan Settings
/api/preview/insights/{orgName}/accounts/{accountName}/scan/settingsReturns the scheduled scan configuration for an Insights account, including scan frequency and schedule details.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
listConcurrencyinteger optionalThe concurrency level for list operations during the scan.scheduleCronstring requiredThe cron expression defining the scan schedule.pausedboolean requiredWhether the scheduled scan is paused.readConcurrencyinteger optionalThe concurrency level for read operations during the scan.batchSizeinteger optionalThe batch size for processing resources during the scan.readTimeoutstring optionalThe timeout duration for read operations, as a Go duration string (e.g., ’30s’, ‘5m’).
Update Scheduled Scan Settings
/api/preview/insights/{orgName}/accounts/{accountName}/scan/settingsUpdates the scheduled scan configuration for an Insights account, such as scan frequency and schedule.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Request Body
listConcurrencyinteger optionalThe concurrency level for list operations during the scan.scheduleCronstring optionalThe cron expression defining the scan schedule.pausedboolean requiredWhether the scheduled scan is paused.readConcurrencyinteger optionalThe concurrency level for read operations during the scan.batchSizeinteger optionalThe batch size for processing resources during the scan.readTimeoutstring optionalThe timeout duration for read operations, as a Go duration string (e.g., ’30s’, ‘5m’).
Responses
List Scan Status
/api/preview/insights/{orgName}/accounts/{accountName}/scansReturns the scan history for an Insights account, including child accounts for parent accounts.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account namecontinuationTokenstring query optionalContinuation token for paginated resultspageSizeinteger query optionalNumber of results per page (default: 100, max: 1000)
Responses
- The list of scan statuses
- ↳
accountNamestring optionalThe name of the insights account associated with this scan. - ↳
idstring requiredThe unique identifier of the workflow run. - ↳
orgIdstring requiredThe organization ID. - ↳
resourceCountinteger optionalThe number of resources discovered by this scan. - ↳
userIdstring requiredThe user ID who initiated the workflow run. - ↳
statusenum requiredThe current status of the workflow run.Values:running,failed,succeeded - ↳
startedAtstring requiredThe time the workflow run started. - ↳
finishedAtstring requiredThe time the workflow run finished, if completed. - ↳
lastUpdatedAtstring requiredThe time the workflow run was last updated. - ↳
jobTimeoutstring requiredThe timeout for jobs in the workflow run. - The list of job runs within the workflow.
continuationTokenstring optionalContinuationToken is an opaque value the client can send to fetch additional scans. Will be nil once all scans have been returned.
Get Scan
/api/preview/insights/{orgName}/accounts/{accountName}/scans/{scanId}Returns details for a specific Insights scan, including its status, timestamps, and resource counts.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account namescanIdstring path requiredThe scan identifier
Responses
accountNamestring optionalThe name of the insights account associated with this scan.idstring requiredThe unique identifier of the workflow run.orgIdstring requiredThe organization ID.resourceCountinteger optionalThe number of resources discovered by this scan.userIdstring requiredThe user ID who initiated the workflow run.statusenum requiredThe current status of the workflow run.Values:running,failed,succeededstartedAtstring requiredThe time the workflow run started.finishedAtstring requiredThe time the workflow run finished, if completed.lastUpdatedAtstring requiredThe time the workflow run was last updated.jobTimeoutstring requiredThe timeout for jobs in the workflow run.- The list of job runs within the workflow.
- ↳
statusenum requiredThe current status of the job runValues:not-started,accepted,running,failed,succeeded,skipped - ↳
startedstring optionalWhen the job started running - ↳
lastUpdatedstring optionalWhen the job was last updated - ↳
timeoutinteger requiredThe timeout duration for the job in nanoseconds (Go time.Duration). - The list of step runs within this job
- ↳
workerobject optionalInformation about the worker executing this job
Get Scan Logs
/api/preview/insights/{orgName}/accounts/{accountName}/scans/{scanId}/logsReturns log output for a specific Insights scan. Supports two modes: when the ‘job’ parameter is provided, returns step-level logs with job/step offsets; otherwise, uses continuationToken and count for paginated log retrieval.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account namescanIdstring path requiredThe scan identifiercontinuationTokenstring query optionalContinuation token for paginated results. Used when the ‘job’ parameter is not provided.countinteger query optionalNumber of log entries to return (must be between 1 and 500). Used when the ‘job’ parameter is not provided.jobinteger query optionalWhen provided, switches to step-based log retrieval. Specifies the job number whose step logs to fetch.offsetinteger query optionalByte offset within the step’s log output. Used with the ‘job’ and ‘step’ parameters.stepinteger query optionalStep number within the specified job. Used with the ‘job’ parameter.
Responses
Get Insight Account Tags
/api/preview/insights/{orgName}/accounts/{accountName}/tagsReturns all tags for an Insights account as a key-value map.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
Set Insight Account Tags
/api/preview/insights/{orgName}/accounts/{accountName}/tagsAtomically replaces all tags for an Insights account with the provided key-value pairs. For AWS parent accounts, tag changes cascade to all child accounts.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Request Body
tagsmap[string]string requiredThe tags to set on the Insights account.
Responses
List Insights Account Teams
/api/preview/insights/{orgName}/accounts/{accountName}/teamsReturns the teams that have been granted access to an Insights account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account name
Responses
accountNamestring requiredThe name of the Insights account- The list of teams with access to the account
- ↳
namestring requiredThe team name - ↳
displayNamestring requiredThe display name of the team - ↳
descriptionstring requiredThe team description - ↳
permissionenum requiredThe team’s permission level for this accountValues:0,1,2,3 - ↳
isMemberboolean requiredIsMember is true if the requesting user is a member of the team.
Update Team Insights Account Permissions
/api/preview/insights/{orgName}/accounts/{accountName}/teams/{teamName}Updates the permissions that a team has on an Insights account.
Request Parameters
orgNamestring path requiredThe organization nameaccountNamestring path requiredThe Insights account nameteamNamestring path requiredThe team name
Request Body
permissionsenum optionalPermissions the permissions that team membership grants to the account. Will overwrite any existing permissions the team grants to the account. A nil value will remove the account from the team.Values:0,1,2,3
Responses
Get Discovered Project
/api/preview/insights/{orgName}/discovered-stacks/{projectName}Returns details for a discovered project, including its discovered stacks. Results are paginated; use the continuationToken from the response to fetch subsequent pages.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe discovered project namecontinuationTokenstring query optionalOpaque token for fetching the next page of stacks
Responses
- The discovered project details.
- ↳
orgNamestring requiredThe organization name. - ↳
namestring requiredThe discovered project name. - The discovered stacks belonging to this project.
continuationTokenstring optionalOpaque token for fetching the next page of stacks. Null when all stacks have been returned.
Get Discovered Stack
/api/preview/insights/{orgName}/discovered-stacks/{projectName}/{stackName}Returns details for a single discovered stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe discovered project namestackNamestring path requiredThe discovered stack name
Responses
idstring requiredThe Discovered Stack ID.orgNamestring requiredThe organization name.projectNamestring requiredThe project name.stackNamestring requiredThe stack name.resourceCountinteger requiredNumber of resources discovered in this stack.providerstring requiredThe cloud provider package (e.g. ‘aws-cloudformation’, ‘azure-arm’).tagsmap[string]string optionalUser-defined tags associated with the discovered stack.lastScanTimeinteger optionalUnix epoch timestamp (seconds) of the last scan. Omitted if never scanned.
Upsert Resource Migration Annotation
/api/preview/insights/{orgName}/discovered-stacks/{projectName}/{stackName}/migrationCreates or updates a migration annotation on a discovered resource. The resource is identified by its URN in the request body. At least one of note or statusOverride must be non-empty; requests with both empty are rejected with 400. The statusOverride, if provided, must be Migrated or NotApplicable.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe discovered project namestackNamestring path requiredThe discovered stack name
Request Body
resourceUrnstring requiredURN of the resource to annotate.notestring optionalFree-text note about this resource. May be empty when only setting a status override.statusOverrideenum optionalOverride the computed migration status. Only Migrated and NotApplicable are valid values.Values:Migrated,PulumiOnly,Ready,Pending,Unmapped,NotApplicablelinkedResourceUrnstring optionalURN of the resource this one was migrated as part of.
Responses
Delete Resource Migration Annotation
/api/preview/insights/{orgName}/discovered-stacks/{projectName}/{stackName}/migrationRemoves a migration annotation from a discovered resource. The resource is identified by its URN passed as a query parameter.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe discovered project namestackNamestring path requiredThe discovered stack nameresourceUrnstring query requiredURN of the resource to remove the annotation from
Responses
List Discovered Stack Resources
/api/preview/insights/{orgName}/discovered-stacks/{projectName}/{stackName}/resourcesReturns the list of resources in a discovered stack, each annotated with a migrationStatus. When compareTo is provided, resource identities are matched against the target Pulumi stack.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe discovered project namestackNamestring path requiredThe discovered stack namecompareTostring query optionalPulumi stack to compare against in project/stack format. Must be in the same org.
Responses
- The list of discovered resources in this page.
- The resource, using the same shape as regular stack resources.
- ↳
namestring optionalA human-friendly resource name derived from the cloud provider - ↳
originTypestring optionalThe native cloud resource type (e.g. ‘AWS::S3::Bucket’, ‘Microsoft.Storage/storageAccounts’). - ↳
managedBystring optionalThe orchestrator or tool that manages this resource (e.g. ‘CloudFormation’, ‘ARM’, ‘Pulumi’). - ↳
providerTypestring optionalThe mapped Pulumi provider type token (e.g. ‘aws:s3/bucket:Bucket’). Omitted when the resource has not been mapped to a Pulumi type. - ↳
virtualStatemap[string]object optionalThe Pulumi-compatible state, if available. - ↳
migrationStatusenum optionalMigration status of the resource relative to the comparison stack.Values:Migrated,PulumiOnly,Ready,Pending,Unmapped,NotApplicable - User-created migration annotation, if any.
continuationTokenstring optionalOpaque token for fetching the next page of resources.
Generate Import Code
/api/preview/insights/{orgName}/import/code/generateGenerates Pulumi code in the specified language to import discovered resources into a Pulumi stack.
Request Parameters
orgNamestring path requiredThe organization name
Request Body
languagestring requiredThe programming language for the generated import codeurnsarray[string] requiredThe URNs of the resources to generate import code for
Responses
codestring requiredThe generated import code
Accept Insights Billing
/api/preview/insights/{orgName}/insightstrial/acceptAccepts Insights billing charges for the specified organization, enabling metered billing for resource discovery.
Request Parameters
orgNamestring path requiredThe organization name
Responses
Terminate Insights Trial
/api/preview/insights/{orgName}/insightstrial/denyTerminates the Insights trial for the organization and removes all associated accounts.
Request Parameters
orgNamestring path requiredThe organization name
Responses
Get Insights Trial Summary
/api/preview/insights/{orgName}/insightstrial/summaryReturns a summary of the organization’s Insights trial usage, including resource counts and remaining trial capacity.
Request Parameters
orgNamestring path requiredThe organization name
Responses
- Discovered resources usage during the trial.
- ↳
totalConsumedinteger requiredThe total consumed - ↳
consumedmap[string]integer requiredThe consumed amount - ↳
unitRateSchemaenum requiredUnitRateSchema captures which pricing plan is associated with the product subscription, and further indicates which pricing rate structure should be read.Values:graduated-v0,graduated-v1,graduated-v2 - UnitRateGraduatedV0 will be populated for
UnitRateSchemaGraduatedV0plans. - UnitRateGraduatedV1 will be populated for
UnitRateSchemaGraduatedV1plans. - UnitRateGraduatedV2 will be populated for
UnitRateSchemaGraduatedV2plans. - StatsV0 are the usage statistics, and will be populated for graduated-v0 plans.
- StatsV1 are the usage statistics, and will be populated for graduated-v1 plans.
- Insights scans usage during the trial.
- ↳
totalConsumedinteger requiredThe total consumed - ↳
consumedmap[string]integer requiredThe consumed amount - ↳
unitRateSchemaenum requiredUnitRateSchema captures which pricing plan is associated with the product subscription, and further indicates which pricing rate structure should be read.Values:graduated-v0,graduated-v1,graduated-v2 - UnitRateGraduatedV0 will be populated for
UnitRateSchemaGraduatedV0plans. - UnitRateGraduatedV1 will be populated for
UnitRateSchemaGraduatedV1plans. - UnitRateGraduatedV2 will be populated for
UnitRateSchemaGraduatedV2plans. - StatsV0 are the usage statistics, and will be populated for graduated-v0 plans.
- StatsV1 are the usage statistics, and will be populated for graduated-v1 plans.
Update Stack Policy Results
/api/preview/insights/{orgName}/policy/stacks/{projectName}/{stackName}/updates/{version}/resultsUpdates the policy evaluation results for a specific stack update version.
Request Parameters
orgNamestring path requiredThe organization nameprojectNamestring path requiredThe project namestackNamestring path requiredThe stack nameversioninteger path requiredThe stack update version number identifying a specific Pulumi update operation
Request Body
claimIdstring requiredThe claim ID for the policy evaluation.- The policy evaluation results.
- ↳
succeededboolean requiredWhether the policy evaluation succeeded without violations - The list of policy violations found, if any
Responses
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.