alicloud.threatdetection.getVulWhitelists
Explore with Pulumi AI
This data source provides Threat Detection Vul Whitelists of the current Alibaba Cloud user.
NOTE: Available in v1.195.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.ThreatDetection.GetVulWhitelists.Invoke(new()
{
Ids = new[]
{
"example_id",
},
});
return new Dictionary<string, object?>
{
["alicloudThreatDetectionVulWhitelistExampleId"] = @default.Apply(@default => @default.Apply(getVulWhitelistsResult => getVulWhitelistsResult.Whitelists[0]?.Id)),
};
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := threatdetection.GetVulWhitelists(ctx, &threatdetection.GetVulWhitelistsArgs{
Ids: []string{
"example_id",
},
}, nil)
if err != nil {
return err
}
ctx.Export("alicloudThreatDetectionVulWhitelistExampleId", _default.Whitelists[0].Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
import com.pulumi.alicloud.threatdetection.inputs.GetVulWhitelistsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = ThreatdetectionFunctions.getVulWhitelists(GetVulWhitelistsArgs.builder()
.ids("example_id")
.build());
ctx.export("alicloudThreatDetectionVulWhitelistExampleId", default_.whitelists()[0].id());
}
}
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.threatdetection.get_vul_whitelists(ids=["example_id"])
pulumi.export("alicloudThreatDetectionVulWhitelistExampleId", default.whitelists[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.threatdetection.getVulWhitelists({
ids: ["example_id"],
});
export const alicloudThreatDetectionVulWhitelistExampleId = _default.then(_default => _default.whitelists?.[0]?.id);
variables:
default:
fn::invoke:
Function: alicloud:threatdetection:getVulWhitelists
Arguments:
ids:
- example_id
outputs:
alicloudThreatDetectionVulWhitelistExampleId: ${default.whitelists[0].id}
Using getVulWhitelists
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 getVulWhitelists(args: GetVulWhitelistsArgs, opts?: InvokeOptions): Promise<GetVulWhitelistsResult>
function getVulWhitelistsOutput(args: GetVulWhitelistsOutputArgs, opts?: InvokeOptions): Output<GetVulWhitelistsResult>
def get_vul_whitelists(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
page_number: Optional[int] = None,
page_size: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetVulWhitelistsResult
def get_vul_whitelists_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
page_number: Optional[pulumi.Input[int]] = None,
page_size: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVulWhitelistsResult]
func GetVulWhitelists(ctx *Context, args *GetVulWhitelistsArgs, opts ...InvokeOption) (*GetVulWhitelistsResult, error)
func GetVulWhitelistsOutput(ctx *Context, args *GetVulWhitelistsOutputArgs, opts ...InvokeOption) GetVulWhitelistsResultOutput
> Note: This function is named GetVulWhitelists
in the Go SDK.
public static class GetVulWhitelists
{
public static Task<GetVulWhitelistsResult> InvokeAsync(GetVulWhitelistsArgs args, InvokeOptions? opts = null)
public static Output<GetVulWhitelistsResult> Invoke(GetVulWhitelistsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVulWhitelistsResult> getVulWhitelists(GetVulWhitelistsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:threatdetection/getVulWhitelists:getVulWhitelists
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
A list of Threat Detection Vul Whitelist IDs.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int
- Ids []string
A list of Threat Detection Vul Whitelist IDs.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int
- ids List<String>
A list of Threat Detection Vul Whitelist IDs.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Integer - page
Size Integer
- ids string[]
A list of Threat Detection Vul Whitelist IDs.
- output
File string File name where to save data source results (after running
pulumi preview
).- page
Number number - page
Size number
- ids Sequence[str]
A list of Threat Detection Vul Whitelist IDs.
- output_
file str File name where to save data source results (after running
pulumi preview
).- page_
number int - page_
size int
- ids List<String>
A list of Threat Detection Vul Whitelist IDs.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Number - page
Size Number
getVulWhitelists Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Whitelists
List<Pulumi.
Ali Cloud. Threat Detection. Outputs. Get Vul Whitelists Whitelist> A list of Vul Whitelist Entries. Each element contains the following attributes:
- Output
File string - Page
Number int - Page
Size int
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Whitelists
[]Get
Vul Whitelists Whitelist A list of Vul Whitelist Entries. Each element contains the following attributes:
- Output
File string - Page
Number int - Page
Size int
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- whitelists
List<Get
Vul Whitelists Whitelist> A list of Vul Whitelist Entries. Each element contains the following attributes:
- output
File String - page
Number Integer - page
Size Integer
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- whitelists
Get
Vul Whitelists Whitelist[] A list of Vul Whitelist Entries. Each element contains the following attributes:
- output
File string - page
Number number - page
Size number
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- whitelists
Sequence[Get
Vul Whitelists Whitelist] A list of Vul Whitelist Entries. Each element contains the following attributes:
- output_
file str - page_
number int - page_
size int
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- whitelists List<Property Map>
A list of Vul Whitelist Entries. Each element contains the following attributes:
- output
File String - page
Number Number - page
Size Number
Supporting Types
GetVulWhitelistsWhitelist
- Id string
The ID of the Vul Whitelist.
- Reason string
Reason for adding whitelist.
- Target
Info string Set the effective range of the whitelist.
- Vul
Whitelist stringId The ID of the Vul Whitelist.
- Whitelist string
Information about the vulnerability to be added to the whitelist.
- Id string
The ID of the Vul Whitelist.
- Reason string
Reason for adding whitelist.
- Target
Info string Set the effective range of the whitelist.
- Vul
Whitelist stringId The ID of the Vul Whitelist.
- Whitelist string
Information about the vulnerability to be added to the whitelist.
- id String
The ID of the Vul Whitelist.
- reason String
Reason for adding whitelist.
- target
Info String Set the effective range of the whitelist.
- vul
Whitelist StringId The ID of the Vul Whitelist.
- whitelist String
Information about the vulnerability to be added to the whitelist.
- id string
The ID of the Vul Whitelist.
- reason string
Reason for adding whitelist.
- target
Info string Set the effective range of the whitelist.
- vul
Whitelist stringId The ID of the Vul Whitelist.
- whitelist string
Information about the vulnerability to be added to the whitelist.
- id str
The ID of the Vul Whitelist.
- reason str
Reason for adding whitelist.
- target_
info str Set the effective range of the whitelist.
- vul_
whitelist_ strid The ID of the Vul Whitelist.
- whitelist str
Information about the vulnerability to be added to the whitelist.
- id String
The ID of the Vul Whitelist.
- reason String
Reason for adding whitelist.
- target
Info String Set the effective range of the whitelist.
- vul
Whitelist StringId The ID of the Vul Whitelist.
- whitelist String
Information about the vulnerability to be added to the whitelist.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.