alicloud.cloudfirewall.getControlPolicies
This data source provides the Cloud Firewall Control Policies of the current Alibaba Cloud user.
NOTE: Available in v1.129.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.CloudFirewall.GetControlPolicies.Invoke(new()
{
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
})
}
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());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cloudfirewall.get_control_policies(direction="in")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.cloudfirewall.getControlPolicies({
direction: "in",
});
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,
source_ip: 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,
source_ip: 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 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.
- Lang string
DestPortGroupPorts. Valid values:
en
,zh
.- Output
File string - Proto string
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- Source string
The source address defined in the access control policy.
- Source
Ip string The source IP address of the request.
- Direction string
The direction of 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.
- Lang string
DestPortGroupPorts. Valid values:
en
,zh
.- Output
File string - Proto string
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- Source string
The source address defined in the access control policy.
- Source
Ip string The source IP address of the request.
- direction String
The direction of 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.
- lang String
DestPortGroupPorts. Valid values:
en
,zh
.- output
File String - proto String
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- source String
The source address defined in the access control policy.
- source
Ip String The source IP address of the request.
- direction string
The direction of 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.
- lang string
DestPortGroupPorts. Valid values:
en
,zh
.- output
File string - proto string
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- source string
The source address defined in the access control policy.
- source
Ip string The source IP address of the request.
- direction str
The direction of 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.
- lang str
DestPortGroupPorts. Valid values:
en
,zh
.- output_
file str - proto str
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- source str
The source address defined in the access control policy.
- source_
ip str The source IP address of the request.
- direction String
The direction of 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.
- lang String
DestPortGroupPorts. Valid values:
en
,zh
.- output
File String - proto String
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- source String
The source address defined in the access control policy.
- source
Ip String The source IP address of the request.
getControlPolicies Result
The following output properties are available:
- Direction string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Policies
List<Pulumi.
Ali Cloud. Cloud Firewall. Outputs. Get Control Policies Policy> - Acl
Action string - Acl
Uuid string - Description string
- Destination string
- Ip
Version string - Lang string
- Output
File string - Proto string
- Source string
- Source
Ip string
- Direction string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Policies
[]Get
Control Policies Policy - Acl
Action string - Acl
Uuid string - Description string
- Destination string
- Ip
Version string - Lang string
- Output
File string - Proto string
- Source string
- Source
Ip string
- direction String
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- policies
List<Get
Control Policies Policy> - acl
Action String - acl
Uuid String - description String
- destination String
- ip
Version String - lang String
- output
File String - proto String
- source String
- source
Ip String
- direction string
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- policies
Get
Control Policies Policy[] - acl
Action string - acl
Uuid string - description string
- destination string
- ip
Version string - lang string
- output
File string - proto string
- source string
- source
Ip string
- direction str
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- policies
Sequence[Get
Control Policies Policy] - acl_
action str - acl_
uuid str - description str
- destination str
- ip_
version str - lang str
- output_
file str - proto str
- source str
- source_
ip str
- direction String
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- policies List<Property Map>
- acl
Action String - acl
Uuid String - description String
- destination String
- ip
Version String - lang String
- output
File String - proto String
- source String
- source
Ip String
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 - Application
Name string The application type that the access control policy supports.If
direction
isin
, the valid value isANY
. Ifdirection
isout
,ANY
,HTTP
,HTTPS
,MQTT
,Memcache
,MongoDB
,MySQL
,RDP
,Redis
,SMTP
,SMTPS
,SSH
,SSL
,VNC
.- Description string
The description of the access control policy.
- Dest
Port string The destination port defined in the access control policy.
- Dest
Port stringGroup The destination port address book defined in the access control policy.
- Dest
Port List<string>Group Ports - Dest
Port stringType The destination port type defined in the access control policy. Valid values:
group
,port
.- Destination string
The destination address defined in the access control policy.
- Destination
Group List<string>Cidrs - Destination
Group stringType - Destination
Type string The destination address type defined in the access control policy.Valid values: If
direction
isin
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
.- Direction string
The direction of traffic to which the access control policy applies. Valid values:
in
,out
.- Dns
Result string - Dns
Result stringTime - Hit
Times string - Id string
The ID of the Control Policy.
- Order int
- Proto string
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- Release bool
Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values:
true
,false
.- Source string
The source address defined in the access control policy.
- Source
Group List<string>Cidrs - Source
Group stringType - Source
Type string The type of the source address book defined in the access control policy. Valid values: If
direction
is toin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
- 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 - Application
Name string The application type that the access control policy supports.If
direction
isin
, the valid value isANY
. Ifdirection
isout
,ANY
,HTTP
,HTTPS
,MQTT
,Memcache
,MongoDB
,MySQL
,RDP
,Redis
,SMTP
,SMTPS
,SSH
,SSL
,VNC
.- Description string
The description of the access control policy.
- Dest
Port string The destination port defined in the access control policy.
- Dest
Port stringGroup The destination port address book defined in the access control policy.
- Dest
Port []stringGroup Ports - Dest
Port stringType The destination port type defined in the access control policy. Valid values:
group
,port
.- Destination string
The destination address defined in the access control policy.
- Destination
Group []stringCidrs - Destination
Group stringType - Destination
Type string The destination address type defined in the access control policy.Valid values: If
direction
isin
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
.- Direction string
The direction of traffic to which the access control policy applies. Valid values:
in
,out
.- Dns
Result string - Dns
Result stringTime - Hit
Times string - Id string
The ID of the Control Policy.
- Order int
- Proto string
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- Release bool
Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values:
true
,false
.- Source string
The source address defined in the access control policy.
- Source
Group []stringCidrs - Source
Group stringType - Source
Type string The type of the source address book defined in the access control policy. Valid values: If
direction
is toin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
- 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 - application
Name String The application type that the access control policy supports.If
direction
isin
, the valid value isANY
. Ifdirection
isout
,ANY
,HTTP
,HTTPS
,MQTT
,Memcache
,MongoDB
,MySQL
,RDP
,Redis
,SMTP
,SMTPS
,SSH
,SSL
,VNC
.- description String
The description of the access control policy.
- dest
Port String The destination port defined in the access control policy.
- dest
Port StringGroup The destination port address book defined in the access control policy.
- dest
Port List<String>Group Ports - dest
Port StringType The destination port type defined in the access control policy. Valid values:
group
,port
.- destination String
The destination address defined in the access control policy.
- destination
Group List<String>Cidrs - destination
Group StringType - destination
Type String The destination address type defined in the access control policy.Valid values: If
direction
isin
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
.- direction String
The direction of traffic to which the access control policy applies. Valid values:
in
,out
.- dns
Result String - dns
Result StringTime - hit
Times String - id String
The ID of the Control Policy.
- order Integer
- proto String
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- release Boolean
Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values:
true
,false
.- source String
The source address defined in the access control policy.
- source
Group List<String>Cidrs - source
Group StringType - source
Type String The type of the source address book defined in the access control policy. Valid values: If
direction
is toin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
- 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 - application
Name string The application type that the access control policy supports.If
direction
isin
, the valid value isANY
. Ifdirection
isout
,ANY
,HTTP
,HTTPS
,MQTT
,Memcache
,MongoDB
,MySQL
,RDP
,Redis
,SMTP
,SMTPS
,SSH
,SSL
,VNC
.- description string
The description of the access control policy.
- dest
Port string The destination port defined in the access control policy.
- dest
Port stringGroup The destination port address book defined in the access control policy.
- dest
Port string[]Group Ports - dest
Port stringType The destination port type defined in the access control policy. Valid values:
group
,port
.- destination string
The destination address defined in the access control policy.
- destination
Group string[]Cidrs - destination
Group stringType - destination
Type string The destination address type defined in the access control policy.Valid values: If
direction
isin
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
.- direction string
The direction of traffic to which the access control policy applies. Valid values:
in
,out
.- dns
Result string - dns
Result stringTime - hit
Times string - id string
The ID of the Control Policy.
- order number
- proto string
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- release boolean
Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values:
true
,false
.- source string
The source address defined in the access control policy.
- source
Group string[]Cidrs - source
Group stringType - source
Type string The type of the source address book defined in the access control policy. Valid values: If
direction
is toin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
- 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 - application_
name str The application type that the access control policy supports.If
direction
isin
, the valid value isANY
. Ifdirection
isout
,ANY
,HTTP
,HTTPS
,MQTT
,Memcache
,MongoDB
,MySQL
,RDP
,Redis
,SMTP
,SMTPS
,SSH
,SSL
,VNC
.- description str
The description of the access control policy.
- dest_
port str The destination port defined in the access control policy.
- dest_
port_ strgroup The destination port address book defined in the access control policy.
- dest_
port_ Sequence[str]group_ ports - dest_
port_ strtype The destination port type defined in the access control policy. Valid values:
group
,port
.- destination str
The destination address defined in the access control policy.
- destination_
group_ Sequence[str]cidrs - destination_
group_ strtype - destination_
type str The destination address type defined in the access control policy.Valid values: If
direction
isin
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
.- direction str
The direction of traffic to which the access control policy applies. Valid values:
in
,out
.- dns_
result str - dns_
result_ strtime - hit_
times str - id str
The ID of the Control Policy.
- order int
- proto str
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- release bool
Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values:
true
,false
.- source str
The source address defined in the access control policy.
- source_
group_ Sequence[str]cidrs - source_
group_ strtype - source_
type str The type of the source address book defined in the access control policy. Valid values: If
direction
is toin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
- 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 - application
Name String The application type that the access control policy supports.If
direction
isin
, the valid value isANY
. Ifdirection
isout
,ANY
,HTTP
,HTTPS
,MQTT
,Memcache
,MongoDB
,MySQL
,RDP
,Redis
,SMTP
,SMTPS
,SSH
,SSL
,VNC
.- description String
The description of the access control policy.
- dest
Port String The destination port defined in the access control policy.
- dest
Port StringGroup The destination port address book defined in the access control policy.
- dest
Port List<String>Group Ports - dest
Port StringType The destination port type defined in the access control policy. Valid values:
group
,port
.- destination String
The destination address defined in the access control policy.
- destination
Group List<String>Cidrs - destination
Group StringType - destination
Type String The destination address type defined in the access control policy.Valid values: If
direction
isin
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
.- direction String
The direction of traffic to which the access control policy applies. Valid values:
in
,out
.- dns
Result String - dns
Result StringTime - hit
Times String - id String
The ID of the Control Policy.
- order Number
- proto String
The protocol type of traffic to which the access control policy applies. Valid values: If
direction
isin
, the valid value isANY
. Ifdirection
isout
, the valid values areANY
,TCP
,UDP
,ICMP
.- release Boolean
Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values:
true
,false
.- source String
The source address defined in the access control policy.
- source
Group List<String>Cidrs - source
Group StringType - source
Type String The type of the source address book defined in the access control policy. Valid values: If
direction
is toin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.