SecurityScanConfig
A ScanConfig resource contains the configurations to launch a scan.
To get more information about ScanConfig, see:
- API documentation
- How-to Guides
Warning: All arguments including
authentication.google_account.passwordandauthentication.custom_account.passwordwill be stored in the raw state as plain-text.Read more about secrets in state
Create a SecurityScanConfig Resource
new SecurityScanConfig(name: string, args: SecurityScanConfigArgs, opts?: CustomResourceOptions);def SecurityScanConfig(resource_name, opts=None, authentication=None, blacklist_patterns=None, display_name=None, export_to_security_command_center=None, max_qps=None, project=None, schedule=None, starting_urls=None, target_platforms=None, user_agent=None, __props__=None);func NewSecurityScanConfig(ctx *Context, name string, args SecurityScanConfigArgs, opts ...ResourceOption) (*SecurityScanConfig, error)public SecurityScanConfig(string name, SecurityScanConfigArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SecurityScanConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecurityScanConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityScanConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SecurityScanConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SecurityScanConfig resource accepts the following input properties:
- Display
Name string The user provider display name of the ScanConfig.
- Starting
Urls List<string> The starting URLs from which the scanner finds site pages.
- Authentication
Security
Scan Config Authentication Args The authentication configuration. If specified, service will use the authentication configuration during scanning. Structure is documented below.
- Blacklist
Patterns List<string> The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
- Export
To stringSecurity Command Center Controls export of scan configurations and results to Cloud Security Command Center.
- Max
Qps int The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. Defaults to 15.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Schedule
Security
Scan Config Schedule Args The schedule of the ScanConfig Structure is documented below.
- Target
Platforms List<string> Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
- User
Agent string Type of the user agents used for scanning
- Display
Name string The user provider display name of the ScanConfig.
- Starting
Urls []string The starting URLs from which the scanner finds site pages.
- Authentication
Security
Scan Config Authentication The authentication configuration. If specified, service will use the authentication configuration during scanning. Structure is documented below.
- Blacklist
Patterns []string The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
- Export
To stringSecurity Command Center Controls export of scan configurations and results to Cloud Security Command Center.
- Max
Qps int The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. Defaults to 15.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Schedule
Security
Scan Config Schedule The schedule of the ScanConfig Structure is documented below.
- Target
Platforms []string Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
- User
Agent string Type of the user agents used for scanning
- display
Name string The user provider display name of the ScanConfig.
- starting
Urls string[] The starting URLs from which the scanner finds site pages.
- authentication
Security
Scan Config Authentication The authentication configuration. If specified, service will use the authentication configuration during scanning. Structure is documented below.
- blacklist
Patterns string[] The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
- export
To stringSecurity Command Center Controls export of scan configurations and results to Cloud Security Command Center.
- max
Qps number The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. Defaults to 15.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- schedule
Security
Scan Config Schedule The schedule of the ScanConfig Structure is documented below.
- target
Platforms string[] Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
- user
Agent string Type of the user agents used for scanning
- display_
name str The user provider display name of the ScanConfig.
- starting_
urls List[str] The starting URLs from which the scanner finds site pages.
- authentication
Dict[Security
Scan Config Authentication] The authentication configuration. If specified, service will use the authentication configuration during scanning. Structure is documented below.
- blacklist_
patterns List[str] The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
- export_
to_ strsecurity_ command_ center Controls export of scan configurations and results to Cloud Security Command Center.
- max_
qps float The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. Defaults to 15.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- schedule
Dict[Security
Scan Config Schedule] The schedule of the ScanConfig Structure is documented below.
- target_
platforms List[str] Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
- user_
agent str Type of the user agents used for scanning
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityScanConfig resource produces the following output properties:
Look up an Existing SecurityScanConfig Resource
Get an existing SecurityScanConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecurityScanConfigState, opts?: CustomResourceOptions): SecurityScanConfigstatic get(resource_name, id, opts=None, authentication=None, blacklist_patterns=None, display_name=None, export_to_security_command_center=None, max_qps=None, name=None, project=None, schedule=None, starting_urls=None, target_platforms=None, user_agent=None, __props__=None);func GetSecurityScanConfig(ctx *Context, name string, id IDInput, state *SecurityScanConfigState, opts ...ResourceOption) (*SecurityScanConfig, error)public static SecurityScanConfig Get(string name, Input<string> id, SecurityScanConfigState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Authentication
Security
Scan Config Authentication Args The authentication configuration. If specified, service will use the authentication configuration during scanning. Structure is documented below.
- Blacklist
Patterns List<string> The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
- Display
Name string The user provider display name of the ScanConfig.
- Export
To stringSecurity Command Center Controls export of scan configurations and results to Cloud Security Command Center.
- Max
Qps int The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. Defaults to 15.
- Name string
A server defined name for this index. Format: ‘projects/{{project}}/scanConfigs/{{server_generated_id}}’
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Schedule
Security
Scan Config Schedule Args The schedule of the ScanConfig Structure is documented below.
- Starting
Urls List<string> The starting URLs from which the scanner finds site pages.
- Target
Platforms List<string> Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
- User
Agent string Type of the user agents used for scanning
- Authentication
Security
Scan Config Authentication The authentication configuration. If specified, service will use the authentication configuration during scanning. Structure is documented below.
- Blacklist
Patterns []string The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
- Display
Name string The user provider display name of the ScanConfig.
- Export
To stringSecurity Command Center Controls export of scan configurations and results to Cloud Security Command Center.
- Max
Qps int The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. Defaults to 15.
- Name string
A server defined name for this index. Format: ‘projects/{{project}}/scanConfigs/{{server_generated_id}}’
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Schedule
Security
Scan Config Schedule The schedule of the ScanConfig Structure is documented below.
- Starting
Urls []string The starting URLs from which the scanner finds site pages.
- Target
Platforms []string Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
- User
Agent string Type of the user agents used for scanning
- authentication
Security
Scan Config Authentication The authentication configuration. If specified, service will use the authentication configuration during scanning. Structure is documented below.
- blacklist
Patterns string[] The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
- display
Name string The user provider display name of the ScanConfig.
- export
To stringSecurity Command Center Controls export of scan configurations and results to Cloud Security Command Center.
- max
Qps number The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. Defaults to 15.
- name string
A server defined name for this index. Format: ‘projects/{{project}}/scanConfigs/{{server_generated_id}}’
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- schedule
Security
Scan Config Schedule The schedule of the ScanConfig Structure is documented below.
- starting
Urls string[] The starting URLs from which the scanner finds site pages.
- target
Platforms string[] Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
- user
Agent string Type of the user agents used for scanning
- authentication
Dict[Security
Scan Config Authentication] The authentication configuration. If specified, service will use the authentication configuration during scanning. Structure is documented below.
- blacklist_
patterns List[str] The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
- display_
name str The user provider display name of the ScanConfig.
- export_
to_ strsecurity_ command_ center Controls export of scan configurations and results to Cloud Security Command Center.
- max_
qps float The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. Defaults to 15.
- name str
A server defined name for this index. Format: ‘projects/{{project}}/scanConfigs/{{server_generated_id}}’
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- schedule
Dict[Security
Scan Config Schedule] The schedule of the ScanConfig Structure is documented below.
- starting_
urls List[str] The starting URLs from which the scanner finds site pages.
- target_
platforms List[str] Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
- user_
agent str Type of the user agents used for scanning
Supporting Types
SecurityScanConfigAuthentication
- Custom
Account SecurityScan Config Authentication Custom Account Args Describes authentication configuration that uses a custom account. Structure is documented below.
- Google
Account SecurityScan Config Authentication Google Account Args Describes authentication configuration that uses a Google account. Structure is documented below.
- Custom
Account SecurityScan Config Authentication Custom Account Describes authentication configuration that uses a custom account. Structure is documented below.
- Google
Account SecurityScan Config Authentication Google Account Describes authentication configuration that uses a Google account. Structure is documented below.
- custom
Account SecurityScan Config Authentication Custom Account Describes authentication configuration that uses a custom account. Structure is documented below.
- google
Account SecurityScan Config Authentication Google Account Describes authentication configuration that uses a Google account. Structure is documented below.
- custom
Account Dict[SecurityScan Config Authentication Custom Account] Describes authentication configuration that uses a custom account. Structure is documented below.
- google
Account Dict[SecurityScan Config Authentication Google Account] Describes authentication configuration that uses a Google account. Structure is documented below.
SecurityScanConfigAuthenticationCustomAccount
SecurityScanConfigAuthenticationGoogleAccount
SecurityScanConfigSchedule
- Interval
Duration intDays The duration of time between executions in days
- Schedule
Time string A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
- Interval
Duration intDays The duration of time between executions in days
- Schedule
Time string A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
- interval
Duration numberDays The duration of time between executions in days
- schedule
Time string A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
- interval
Duration floatDays The duration of time between executions in days
- schedule
Time str A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.