getClusterScan
Use this data source to retrieve information about a Rancher v2 Cluster CIS Scan resource.
Using getClusterScan
function getClusterScan(args: GetClusterScanArgs, opts?: InvokeOptions): Promise<GetClusterScanResult>
def get_cluster_scan(cluster_id: Optional[str] = None, name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetClusterScanResult
func GetClusterScan(ctx *Context, args *GetClusterScanArgs, opts ...InvokeOption) (*GetClusterScanResult, error)
Note: This function is named
GetClusterScan
in the Go SDK.
public static class GetClusterScan {
public static Task<GetClusterScanResult> InvokeAsync(GetClusterScanArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- cluster_
id str Cluster ID for CIS Scan (string)
- name str
Name of the cluster Scan (string)
getClusterScan Result
The following output properties are available:
- Annotations Dictionary<string, object>
(Computed) Annotations of the resource (map)
- Cluster
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, object>
(Computed) Labels of the resource (map)
- Name string
- Run
Type string (Computed) Cluster Scan run type (string)
- Scan
Config GetCluster Scan Scan Config (Computed) Cluster Scan config (bool)
- Scan
Type string (Computed) Cluster Scan type (string)
- Status string
(Computed) Cluster Scan status (string)
- Annotations map[string]interface{}
(Computed) Annotations of the resource (map)
- Cluster
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Labels map[string]interface{}
(Computed) Labels of the resource (map)
- Name string
- Run
Type string (Computed) Cluster Scan run type (string)
- Scan
Config GetCluster Scan Scan Config (Computed) Cluster Scan config (bool)
- Scan
Type string (Computed) Cluster Scan type (string)
- Status string
(Computed) Cluster Scan status (string)
- annotations {[key: string]: any}
(Computed) Annotations of the resource (map)
- cluster
Id string - id string
The provider-assigned unique ID for this managed resource.
- labels {[key: string]: any}
(Computed) Labels of the resource (map)
- name string
- run
Type string (Computed) Cluster Scan run type (string)
- scan
Config GetCluster Scan Scan Config (Computed) Cluster Scan config (bool)
- scan
Type string (Computed) Cluster Scan type (string)
- status string
(Computed) Cluster Scan status (string)
- annotations Mapping[str, Any]
(Computed) Annotations of the resource (map)
- cluster_
id str - id str
The provider-assigned unique ID for this managed resource.
- labels Mapping[str, Any]
(Computed) Labels of the resource (map)
- name str
- run_
type str (Computed) Cluster Scan run type (string)
- scan_
config GetCluster Scan Scan Config (Computed) Cluster Scan config (bool)
- scan_
type str (Computed) Cluster Scan type (string)
- status str
(Computed) Cluster Scan status (string)
Supporting Types
GetClusterScanScanConfig
- Cis
Scan GetConfig Cluster Scan Scan Config Cis Scan Config Args Cluster Cis Scan config (List maxitems:1)
- Cis
Scan GetConfig Cluster Scan Scan Config Cis Scan Config Cluster Cis Scan config (List maxitems:1)
- cis
Scan GetConfig Cluster Scan Scan Config Cis Scan Config Cluster Cis Scan config (List maxitems:1)
- cis_
scan_ Getconfig Cluster Scan Scan Config Cis Scan Config Args Cluster Cis Scan config (List maxitems:1)
GetClusterScanScanConfigCisScanConfig
- Debug
Master bool Debug master. Default:
false
(bool)- Debug
Worker bool Debug worker. Default:
false
(bool)- Override
Benchmark stringVersion Override benchmark version (string)
- Override
Skips List<string> Override skip (string)
- Profile string
Cis scan profile. Allowed values:
"permissive" (default) || "hardened"
(string)
- Debug
Master bool Debug master. Default:
false
(bool)- Debug
Worker bool Debug worker. Default:
false
(bool)- Override
Benchmark stringVersion Override benchmark version (string)
- Override
Skips []string Override skip (string)
- Profile string
Cis scan profile. Allowed values:
"permissive" (default) || "hardened"
(string)
- debug
Master boolean Debug master. Default:
false
(bool)- debug
Worker boolean Debug worker. Default:
false
(bool)- override
Benchmark stringVersion Override benchmark version (string)
- override
Skips string[] Override skip (string)
- profile string
Cis scan profile. Allowed values:
"permissive" (default) || "hardened"
(string)
- debug_
master bool Debug master. Default:
false
(bool)- debug_
worker bool Debug worker. Default:
false
(bool)- override_
benchmark_ strversion Override benchmark version (string)
- override_
skips Sequence[str] Override skip (string)
- profile str
Cis scan profile. Allowed values:
"permissive" (default) || "hardened"
(string)
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.