Alibaba Cloud v3.63.0 published on Monday, Sep 30, 2024 by Pulumi
alicloud.cloudfirewall.getControlPolicies
Explore with Pulumi AI
This data source provides the Cloud Firewall Control Policies of the current Alibaba Cloud user.
NOTE: Available since v1.129.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.cloudfirewall.getControlPolicies({
direction: "in",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cloudfirewall.get_control_policies(direction="in")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfirewall.GetControlPolicies(ctx, &cloudfirewall.GetControlPoliciesArgs{
Direction: "in",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.CloudFirewall.GetControlPolicies.Invoke(new()
{
Direction = "in",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
import com.pulumi.alicloud.cloudfirewall.inputs.GetControlPoliciesArgs;
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 example = CloudfirewallFunctions.getControlPolicies(GetControlPoliciesArgs.builder()
.direction("in")
.build());
}
}
variables:
example:
fn::invoke:
Function: alicloud:cloudfirewall:getControlPolicies
Arguments:
direction: in
Using getControlPolicies
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 getControlPolicies(args: GetControlPoliciesArgs, opts?: InvokeOptions): Promise<GetControlPoliciesResult>
function getControlPoliciesOutput(args: GetControlPoliciesOutputArgs, opts?: InvokeOptions): Output<GetControlPoliciesResult>
def get_control_policies(acl_action: Optional[str] = None,
acl_uuid: Optional[str] = None,
description: Optional[str] = None,
destination: Optional[str] = None,
direction: Optional[str] = None,
ip_version: Optional[str] = None,
lang: Optional[str] = None,
output_file: Optional[str] = None,
proto: Optional[str] = None,
source: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetControlPoliciesResult
def get_control_policies_output(acl_action: Optional[pulumi.Input[str]] = None,
acl_uuid: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
destination: Optional[pulumi.Input[str]] = None,
direction: Optional[pulumi.Input[str]] = None,
ip_version: Optional[pulumi.Input[str]] = None,
lang: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
proto: Optional[pulumi.Input[str]] = None,
source: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetControlPoliciesResult]
func GetControlPolicies(ctx *Context, args *GetControlPoliciesArgs, opts ...InvokeOption) (*GetControlPoliciesResult, error)
func GetControlPoliciesOutput(ctx *Context, args *GetControlPoliciesOutputArgs, opts ...InvokeOption) GetControlPoliciesResultOutput
> Note: This function is named GetControlPolicies
in the Go SDK.
public static class GetControlPolicies
{
public static Task<GetControlPoliciesResult> InvokeAsync(GetControlPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetControlPoliciesResult> Invoke(GetControlPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetControlPoliciesResult> getControlPolicies(GetControlPoliciesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cloudfirewall/getControlPolicies:getControlPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Direction string
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - Acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - Acl
Uuid string - The unique ID of the access control policy.
- Description string
- The description of the access control policy.
- Destination string
- The destination address defined in the access control policy.
- Ip
Version string - The IP version of the address in the access control policy.
- Lang string
- The language of the content within the response. Valid values:
en
,zh
. - Output
File string - File name where to save data source results (after running
pulumi preview
). - Proto string
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - Source string
- The source address in the access control policy.
- Direction string
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - Acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - Acl
Uuid string - The unique ID of the access control policy.
- Description string
- The description of the access control policy.
- Destination string
- The destination address defined in the access control policy.
- Ip
Version string - The IP version of the address in the access control policy.
- Lang string
- The language of the content within the response. Valid values:
en
,zh
. - Output
File string - File name where to save data source results (after running
pulumi preview
). - Proto string
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - Source string
- The source address in the access control policy.
- direction String
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - acl
Action String - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl
Uuid String - The unique ID of the access control policy.
- description String
- The description of the access control policy.
- destination String
- The destination address defined in the access control policy.
- ip
Version String - The IP version of the address in the access control policy.
- lang String
- The language of the content within the response. Valid values:
en
,zh
. - output
File String - File name where to save data source results (after running
pulumi preview
). - proto String
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - source String
- The source address in the access control policy.
- direction string
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl
Uuid string - The unique ID of the access control policy.
- description string
- The description of the access control policy.
- destination string
- The destination address defined in the access control policy.
- ip
Version string - The IP version of the address in the access control policy.
- lang string
- The language of the content within the response. Valid values:
en
,zh
. - output
File string - File name where to save data source results (after running
pulumi preview
). - proto string
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - source string
- The source address in the access control policy.
- direction str
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - acl_
action str - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl_
uuid str - The unique ID of the access control policy.
- description str
- The description of the access control policy.
- destination str
- The destination address defined in the access control policy.
- ip_
version str - The IP version of the address in the access control policy.
- lang str
- The language of the content within the response. Valid values:
en
,zh
. - output_
file str - File name where to save data source results (after running
pulumi preview
). - proto str
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - source str
- The source address in the access control policy.
- direction String
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - acl
Action String - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl
Uuid String - The unique ID of the access control policy.
- description String
- The description of the access control policy.
- destination String
- The destination address defined in the access control policy.
- ip
Version String - The IP version of the address in the access control policy.
- lang String
- The language of the content within the response. Valid values:
en
,zh
. - output
File String - File name where to save data source results (after running
pulumi preview
). - proto String
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - source String
- The source address in the access control policy.
getControlPolicies Result
The following output properties are available:
- Direction string
- The direction of the traffic to which the access control policy applies.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Control Policy IDs.
- Policies
List<Pulumi.
Ali Cloud. Cloud Firewall. Outputs. Get Control Policies Policy> - A list of Cloud Firewall Control Policies. Each element contains the following attributes:
- Acl
Action string - The action that Cloud Firewall performs on the traffic.
- Acl
Uuid string - The unique ID of the access control policy.
- Description string
- The description of the access control policy.
- Destination string
- The destination address in the access control policy.
- Ip
Version string - Lang string
- Output
File string - Proto string
- The type of the protocol in the access control policy.
- Source string
- The source address in the access control policy.
- Direction string
- The direction of the traffic to which the access control policy applies.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Control Policy IDs.
- Policies
[]Get
Control Policies Policy - A list of Cloud Firewall Control Policies. Each element contains the following attributes:
- Acl
Action string - The action that Cloud Firewall performs on the traffic.
- Acl
Uuid string - The unique ID of the access control policy.
- Description string
- The description of the access control policy.
- Destination string
- The destination address in the access control policy.
- Ip
Version string - Lang string
- Output
File string - Proto string
- The type of the protocol in the access control policy.
- Source string
- The source address in the access control policy.
- direction String
- The direction of the traffic to which the access control policy applies.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Control Policy IDs.
- policies
List<Get
Control Policies Policy> - A list of Cloud Firewall Control Policies. Each element contains the following attributes:
- acl
Action String - The action that Cloud Firewall performs on the traffic.
- acl
Uuid String - The unique ID of the access control policy.
- description String
- The description of the access control policy.
- destination String
- The destination address in the access control policy.
- ip
Version String - lang String
- output
File String - proto String
- The type of the protocol in the access control policy.
- source String
- The source address in the access control policy.
- direction string
- The direction of the traffic to which the access control policy applies.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Control Policy IDs.
- policies
Get
Control Policies Policy[] - A list of Cloud Firewall Control Policies. Each element contains the following attributes:
- acl
Action string - The action that Cloud Firewall performs on the traffic.
- acl
Uuid string - The unique ID of the access control policy.
- description string
- The description of the access control policy.
- destination string
- The destination address in the access control policy.
- ip
Version string - lang string
- output
File string - proto string
- The type of the protocol in the access control policy.
- source string
- The source address in the access control policy.
- direction str
- The direction of the traffic to which the access control policy applies.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Control Policy IDs.
- policies
Sequence[Get
Control Policies Policy] - A list of Cloud Firewall Control Policies. Each element contains the following attributes:
- acl_
action str - The action that Cloud Firewall performs on the traffic.
- acl_
uuid str - The unique ID of the access control policy.
- description str
- The description of the access control policy.
- destination str
- The destination address in the access control policy.
- ip_
version str - lang str
- output_
file str - proto str
- The type of the protocol in the access control policy.
- source str
- The source address in the access control policy.
- direction String
- The direction of the traffic to which the access control policy applies.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Control Policy IDs.
- policies List<Property Map>
- A list of Cloud Firewall Control Policies. Each element contains the following attributes:
- acl
Action String - The action that Cloud Firewall performs on the traffic.
- acl
Uuid String - The unique ID of the access control policy.
- description String
- The description of the access control policy.
- destination String
- The destination address in the access control policy.
- ip
Version String - lang String
- output
File String - proto String
- The type of the protocol in the access control policy.
- source String
- The source address in the access control policy.
Supporting Types
GetControlPoliciesPolicy
- Acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - Acl
Uuid string - The unique ID of the access control policy.
- Application
Id string - The application ID in the access control policy.
- Application
Name string - The type of the application that the access control policy supports.
- Description string
- The description of the access control policy.
- Dest
Port string - The destination port in the access control policy.
- Dest
Port stringGroup - The name of the destination port address book in the access control policy.
- Dest
Port List<string>Group Ports - The ports in the destination port address book.
- Dest
Port stringType - The type of the destination port in the access control policy.
- Destination string
- The destination address defined in the access control policy.
- Destination
Group List<string>Cidrs - The CIDR blocks in the destination address book.
- Destination
Group stringType - The type of the destination address book in the access control policy.
- Destination
Type string - The type of the destination address in the access control policy.
- Direction string
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - Dns
Result string - The DNS resolution result.
- Dns
Result stringTime - The timestamp of the DNS resolution result.
- Hit
Times string - The number of hits for the access control policy.
- Id string
- The ID of the Control Policy. It formats as
<acl_uuid>:<direction>
. - Order int
- The priority of the access control policy.
- Proto string
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - Release bool
- Indicates whether the access control policy is enabled.
- Source string
- The source address in the access control policy.
- Source
Group List<string>Cidrs - The CIDR blocks in the source address book.
- Source
Group stringType - The type of the source address book in the access control policy.
- Source
Type string - The type of the source address in the access control policy.
- Acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - Acl
Uuid string - The unique ID of the access control policy.
- Application
Id string - The application ID in the access control policy.
- Application
Name string - The type of the application that the access control policy supports.
- Description string
- The description of the access control policy.
- Dest
Port string - The destination port in the access control policy.
- Dest
Port stringGroup - The name of the destination port address book in the access control policy.
- Dest
Port []stringGroup Ports - The ports in the destination port address book.
- Dest
Port stringType - The type of the destination port in the access control policy.
- Destination string
- The destination address defined in the access control policy.
- Destination
Group []stringCidrs - The CIDR blocks in the destination address book.
- Destination
Group stringType - The type of the destination address book in the access control policy.
- Destination
Type string - The type of the destination address in the access control policy.
- Direction string
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - Dns
Result string - The DNS resolution result.
- Dns
Result stringTime - The timestamp of the DNS resolution result.
- Hit
Times string - The number of hits for the access control policy.
- Id string
- The ID of the Control Policy. It formats as
<acl_uuid>:<direction>
. - Order int
- The priority of the access control policy.
- Proto string
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - Release bool
- Indicates whether the access control policy is enabled.
- Source string
- The source address in the access control policy.
- Source
Group []stringCidrs - The CIDR blocks in the source address book.
- Source
Group stringType - The type of the source address book in the access control policy.
- Source
Type string - The type of the source address in the access control policy.
- acl
Action String - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl
Uuid String - The unique ID of the access control policy.
- application
Id String - The application ID in the access control policy.
- application
Name String - The type of the application that the access control policy supports.
- description String
- The description of the access control policy.
- dest
Port String - The destination port in the access control policy.
- dest
Port StringGroup - The name of the destination port address book in the access control policy.
- dest
Port List<String>Group Ports - The ports in the destination port address book.
- dest
Port StringType - The type of the destination port in the access control policy.
- destination String
- The destination address defined in the access control policy.
- destination
Group List<String>Cidrs - The CIDR blocks in the destination address book.
- destination
Group StringType - The type of the destination address book in the access control policy.
- destination
Type String - The type of the destination address in the access control policy.
- direction String
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - dns
Result String - The DNS resolution result.
- dns
Result StringTime - The timestamp of the DNS resolution result.
- hit
Times String - The number of hits for the access control policy.
- id String
- The ID of the Control Policy. It formats as
<acl_uuid>:<direction>
. - order Integer
- The priority of the access control policy.
- proto String
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - release Boolean
- Indicates whether the access control policy is enabled.
- source String
- The source address in the access control policy.
- source
Group List<String>Cidrs - The CIDR blocks in the source address book.
- source
Group StringType - The type of the source address book in the access control policy.
- source
Type String - The type of the source address in the access control policy.
- acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl
Uuid string - The unique ID of the access control policy.
- application
Id string - The application ID in the access control policy.
- application
Name string - The type of the application that the access control policy supports.
- description string
- The description of the access control policy.
- dest
Port string - The destination port in the access control policy.
- dest
Port stringGroup - The name of the destination port address book in the access control policy.
- dest
Port string[]Group Ports - The ports in the destination port address book.
- dest
Port stringType - The type of the destination port in the access control policy.
- destination string
- The destination address defined in the access control policy.
- destination
Group string[]Cidrs - The CIDR blocks in the destination address book.
- destination
Group stringType - The type of the destination address book in the access control policy.
- destination
Type string - The type of the destination address in the access control policy.
- direction string
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - dns
Result string - The DNS resolution result.
- dns
Result stringTime - The timestamp of the DNS resolution result.
- hit
Times string - The number of hits for the access control policy.
- id string
- The ID of the Control Policy. It formats as
<acl_uuid>:<direction>
. - order number
- The priority of the access control policy.
- proto string
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - release boolean
- Indicates whether the access control policy is enabled.
- source string
- The source address in the access control policy.
- source
Group string[]Cidrs - The CIDR blocks in the source address book.
- source
Group stringType - The type of the source address book in the access control policy.
- source
Type string - The type of the source address in the access control policy.
- acl_
action str - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl_
uuid str - The unique ID of the access control policy.
- application_
id str - The application ID in the access control policy.
- application_
name str - The type of the application that the access control policy supports.
- description str
- The description of the access control policy.
- dest_
port str - The destination port in the access control policy.
- dest_
port_ strgroup - The name of the destination port address book in the access control policy.
- dest_
port_ Sequence[str]group_ ports - The ports in the destination port address book.
- dest_
port_ strtype - The type of the destination port in the access control policy.
- destination str
- The destination address defined in the access control policy.
- destination_
group_ Sequence[str]cidrs - The CIDR blocks in the destination address book.
- destination_
group_ strtype - The type of the destination address book in the access control policy.
- destination_
type str - The type of the destination address in the access control policy.
- direction str
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - dns_
result str - The DNS resolution result.
- dns_
result_ strtime - The timestamp of the DNS resolution result.
- hit_
times str - The number of hits for the access control policy.
- id str
- The ID of the Control Policy. It formats as
<acl_uuid>:<direction>
. - order int
- The priority of the access control policy.
- proto str
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - release bool
- Indicates whether the access control policy is enabled.
- source str
- The source address in the access control policy.
- source_
group_ Sequence[str]cidrs - The CIDR blocks in the source address book.
- source_
group_ strtype - The type of the source address book in the access control policy.
- source_
type str - The type of the source address in the access control policy.
- acl
Action String - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl
Uuid String - The unique ID of the access control policy.
- application
Id String - The application ID in the access control policy.
- application
Name String - The type of the application that the access control policy supports.
- description String
- The description of the access control policy.
- dest
Port String - The destination port in the access control policy.
- dest
Port StringGroup - The name of the destination port address book in the access control policy.
- dest
Port List<String>Group Ports - The ports in the destination port address book.
- dest
Port StringType - The type of the destination port in the access control policy.
- destination String
- The destination address defined in the access control policy.
- destination
Group List<String>Cidrs - The CIDR blocks in the destination address book.
- destination
Group StringType - The type of the destination address book in the access control policy.
- destination
Type String - The type of the destination address in the access control policy.
- direction String
- The direction of the traffic to which the access control policy applies. Valid values:
in
,out
. - dns
Result String - The DNS resolution result.
- dns
Result StringTime - The timestamp of the DNS resolution result.
- hit
Times String - The number of hits for the access control policy.
- id String
- The ID of the Control Policy. It formats as
<acl_uuid>:<direction>
. - order Number
- The priority of the access control policy.
- proto String
- The type of the protocol in the access control policy. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
. - release Boolean
- Indicates whether the access control policy is enabled.
- source String
- The source address in the access control policy.
- source
Group List<String>Cidrs - The CIDR blocks in the source address book.
- source
Group StringType - The type of the source address book in the access control policy.
- source
Type String - The type of the source address in the access control policy.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.