rancher2.getClusterScan
Use this data source to retrieve information about a Rancher v2 Cluster CIS Scan resource.
Using getClusterScan
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getClusterScan(args: GetClusterScanArgs, opts?: InvokeOptions): Promise<GetClusterScanResult>
function getClusterScanOutput(args: GetClusterScanOutputArgs, opts?: InvokeOptions): Output<GetClusterScanResult>
def get_cluster_scan(cluster_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterScanResult
def get_cluster_scan_output(cluster_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterScanResult]
func GetClusterScan(ctx *Context, args *GetClusterScanArgs, opts ...InvokeOption) (*GetClusterScanResult, error)
func GetClusterScanOutput(ctx *Context, args *GetClusterScanOutputArgs, opts ...InvokeOption) GetClusterScanResultOutput
> Note: This function is named GetClusterScan
in the Go SDK.
public static class GetClusterScan
{
public static Task<GetClusterScanResult> InvokeAsync(GetClusterScanArgs args, InvokeOptions? opts = null)
public static Output<GetClusterScanResult> Invoke(GetClusterScanInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterScanResult> getClusterScan(GetClusterScanArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rancher2:index/getClusterScan:getClusterScan
arguments:
# arguments dictionary
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 Map<String,Object>
(Computed) Annotations of the resource (map)
- cluster
Id String - id String
The provider-assigned unique ID for this managed resource.
- labels Map<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 {[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)
- annotations Map<Any>
(Computed) Annotations of the resource (map)
- cluster
Id String - id String
The provider-assigned unique ID for this managed resource.
- labels Map<Any>
(Computed) Labels of the resource (map)
- name String
- run
Type String (Computed) Cluster Scan run type (string)
- scan
Config Property Map (Computed) Cluster Scan config (bool)
- scan
Type String (Computed) Cluster Scan type (string)
- status String
(Computed) Cluster Scan status (string)
Supporting Types
GetClusterScanScanConfig
- 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 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 Property MapConfig 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 List<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)
- 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 List<String> Override skip (string)
- profile String
Cis scan profile. Allowed values:
"permissive" (default) || "hardened"
(string)
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
rancher2
Terraform Provider.