@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
123 lines (122 loc) • 4.04 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of CFW capture task results.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const fwInstanceId = config.requireObject("fwInstanceId");
* const taskId = config.requireObject("taskId");
* const test = huaweicloud.Cfw.getCaptureTaskResults({
* fwInstanceId: fwInstanceId,
* taskId: taskId,
* });
* ```
*/
export declare function getCaptureTaskResults(args: GetCaptureTaskResultsArgs, opts?: pulumi.InvokeOptions): Promise<GetCaptureTaskResultsResult>;
/**
* A collection of arguments for invoking getCaptureTaskResults.
*/
export interface GetCaptureTaskResultsArgs {
/**
* Specifies the ID of the firewall instance.
*/
fwInstanceId: string;
/**
* Specifies the public IP address ranges.
* A maximum of three address ranges can be specified.
*/
ips?: string[];
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the capture task ID.
*/
taskId: string;
/**
* Specifies whether to set a public IP address for downloading.
* The valid values are as follows:
* + **0**: unlimited;
* + **1**: set a public IP address for downloading. Currently, this feature can be used in the
* following regions: **cn-north-11**, **cn-east-5**, **af-south-1**, **ap-southeast-1**,
* **ap-southeast-3**, **ap-southeast-2**, **ap-southeast-4**, **tr-west-1**, **la-north-2**,
* **sa-brazil-1**, **la-south-2**, **me-east-1**.
*/
type?: number;
}
/**
* A collection of values returned by getCaptureTaskResults.
*/
export interface GetCaptureTaskResultsResult {
/**
* The captcha.
*/
readonly captcha: string;
/**
* The expiration time of the download link.
*/
readonly expires: number;
/**
* The capture file list.
*/
readonly fileLists: outputs.Cfw.GetCaptureTaskResultsFileList[];
readonly fwInstanceId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ips?: string[];
readonly region: string;
/**
* The request header.
*/
readonly requestHeaders: outputs.Cfw.GetCaptureTaskResultsRequestHeader[];
readonly taskId: string;
readonly type?: number;
/**
* The download link.
*/
readonly url: string;
}
export declare function getCaptureTaskResultsOutput(args: GetCaptureTaskResultsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCaptureTaskResultsResult>;
/**
* A collection of arguments for invoking getCaptureTaskResults.
*/
export interface GetCaptureTaskResultsOutputArgs {
/**
* Specifies the ID of the firewall instance.
*/
fwInstanceId: pulumi.Input<string>;
/**
* Specifies the public IP address ranges.
* A maximum of three address ranges can be specified.
*/
ips?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the capture task ID.
*/
taskId: pulumi.Input<string>;
/**
* Specifies whether to set a public IP address for downloading.
* The valid values are as follows:
* + **0**: unlimited;
* + **1**: set a public IP address for downloading. Currently, this feature can be used in the
* following regions: **cn-north-11**, **cn-east-5**, **af-south-1**, **ap-southeast-1**,
* **ap-southeast-3**, **ap-southeast-2**, **ap-southeast-4**, **tr-west-1**, **la-north-2**,
* **sa-brazil-1**, **la-south-2**, **me-east-1**.
*/
type?: pulumi.Input<number>;
}