Expand description
A ScanConfig resource contains the configurations to launch a scan.
To get more information about ScanConfig, see:
- API documentation
- How-to Guides
§Example Usage
§Scan Config Basic
resources:
scannerStaticIp:
type: gcp:compute:Address
name: scanner_static_ip
properties:
name: scan-basic-static-ip
scan-config:
type: gcp:compute:SecurityScanConfig
properties:
displayName: scan-config
startingUrls:
- http://${scannerStaticIp.address}
targetPlatforms:
- COMPUTE
§Import
ScanConfig can be imported using any of these accepted formats:
-
{{project}}/{{name}}
-
{{project}} {{name}}
-
{{name}}
When using the pulumi import
command, ScanConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/securityScanConfig:SecurityScanConfig default {{project}}/{{name}}
$ pulumi import gcp:compute/securityScanConfig:SecurityScanConfig default "{{project}} {{name}}"
$ pulumi import gcp:compute/securityScanConfig:SecurityScanConfig default {{name}}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments