Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.26.0 published on Friday, Jul 29, 2022 by Pulumi

getControlPolicies

This data source provides the Cloud Firewall Control Policies of the current Alibaba Cloud user.

NOTE: Available in v1.129.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AliCloud.CloudFirewall.GetControlPolicies.InvokeAsync(new AliCloud.CloudFirewall.GetControlPoliciesArgs
        {
            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
	})
}

Coming soon!

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 = pulumi.output(alicloud.cloudfirewall.getControlPolicies({
    direction: "in",
}));

Coming soon!

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.

AclAction string

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

AclUuid 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.

IpVersion string

The ip version.

Lang string

DestPortGroupPorts. Valid values: en, zh.

OutputFile string
Proto string

The protocol type of traffic to which the access control policy applies. Valid values: If direction is in, the valid value is ANY. If direction is out, the valid values are ANY, TCP, UDP, ICMP.

Source string

The source address defined in the access control policy.

SourceIp 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.

AclAction string

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

AclUuid 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.

IpVersion string

The ip version.

Lang string

DestPortGroupPorts. Valid values: en, zh.

OutputFile string
Proto string

The protocol type of traffic to which the access control policy applies. Valid values: If direction is in, the valid value is ANY. If direction is out, the valid values are ANY, TCP, UDP, ICMP.

Source string

The source address defined in the access control policy.

SourceIp 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.

aclAction String

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

aclUuid 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.

ipVersion String

The ip version.

lang String

DestPortGroupPorts. Valid values: en, zh.

outputFile String
proto String

The protocol type of traffic to which the access control policy applies. Valid values: If direction is in, the valid value is ANY. If direction is out, the valid values are ANY, TCP, UDP, ICMP.

source String

The source address defined in the access control policy.

sourceIp 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.

aclAction string

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

aclUuid 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.

ipVersion string

The ip version.

lang string

DestPortGroupPorts. Valid values: en, zh.

outputFile string
proto string

The protocol type of traffic to which the access control policy applies. Valid values: If direction is in, the valid value is ANY. If direction is out, the valid values are ANY, TCP, UDP, ICMP.

source string

The source address defined in the access control policy.

sourceIp 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 is in, the valid value is ANY. If direction is out, the valid values are ANY, 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.

aclAction String

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

aclUuid 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.

ipVersion String

The ip version.

lang String

DestPortGroupPorts. Valid values: en, zh.

outputFile String
proto String

The protocol type of traffic to which the access control policy applies. Valid values: If direction is in, the valid value is ANY. If direction is out, the valid values are ANY, TCP, UDP, ICMP.

source String

The source address defined in the access control policy.

sourceIp 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.AliCloud.CloudFirewall.Outputs.GetControlPoliciesPolicy>
AclAction string
AclUuid string
Description string
Destination string
IpVersion string
Lang string
OutputFile string
Proto string
Source string
SourceIp string
Direction string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Policies []GetControlPoliciesPolicy
AclAction string
AclUuid string
Description string
Destination string
IpVersion string
Lang string
OutputFile string
Proto string
Source string
SourceIp string
direction String
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
policies List<GetControlPoliciesPolicy>
aclAction String
aclUuid String
description String
destination String
ipVersion String
lang String
outputFile String
proto String
source String
sourceIp String
direction string
id string

The provider-assigned unique ID for this managed resource.

ids string[]
policies GetControlPoliciesPolicy[]
aclAction string
aclUuid string
description string
destination string
ipVersion string
lang string
outputFile string
proto string
source string
sourceIp string
direction str
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
policies Sequence[GetControlPoliciesPolicy]
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>
aclAction String
aclUuid String
description String
destination String
ipVersion String
lang String
outputFile String
proto String
source String
sourceIp String

Supporting Types

GetControlPoliciesPolicy

AclAction string

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

AclUuid string

The unique ID of the access control policy.

ApplicationId string
ApplicationName string

The application type that the access control policy supports.If direction is in, the valid value is ANY. If direction is out, ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

Description string

The description of the access control policy.

DestPort string

The destination port defined in the access control policy.

DestPortGroup string

The destination port address book defined in the access control policy.

DestPortGroupPorts List<string>
DestPortType string

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.

DestinationGroupCidrs List<string>
DestinationGroupType string
DestinationType string

The destination address type defined in the access control policy.Valid values: If direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.

Direction string

The direction of traffic to which the access control policy applies. Valid values: in, out.

DnsResult string
DnsResultTime string
HitTimes 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 is in, the valid value is ANY. If direction is out, the valid values are ANY, 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.

SourceGroupCidrs List<string>
SourceGroupType string
SourceType string

The type of the source address book defined in the access control policy. Valid values: If direction is to in, the valid values are net, group, location. If direction is out, the valid values are net, group.

AclAction string

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

AclUuid string

The unique ID of the access control policy.

ApplicationId string
ApplicationName string

The application type that the access control policy supports.If direction is in, the valid value is ANY. If direction is out, ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

Description string

The description of the access control policy.

DestPort string

The destination port defined in the access control policy.

DestPortGroup string

The destination port address book defined in the access control policy.

DestPortGroupPorts []string
DestPortType string

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.

DestinationGroupCidrs []string
DestinationGroupType string
DestinationType string

The destination address type defined in the access control policy.Valid values: If direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.

Direction string

The direction of traffic to which the access control policy applies. Valid values: in, out.

DnsResult string
DnsResultTime string
HitTimes 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 is in, the valid value is ANY. If direction is out, the valid values are ANY, 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.

SourceGroupCidrs []string
SourceGroupType string
SourceType string

The type of the source address book defined in the access control policy. Valid values: If direction is to in, the valid values are net, group, location. If direction is out, the valid values are net, group.

aclAction String

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

aclUuid String

The unique ID of the access control policy.

applicationId String
applicationName String

The application type that the access control policy supports.If direction is in, the valid value is ANY. If direction is out, ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

description String

The description of the access control policy.

destPort String

The destination port defined in the access control policy.

destPortGroup String

The destination port address book defined in the access control policy.

destPortGroupPorts List<String>
destPortType String

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.

destinationGroupCidrs List<String>
destinationGroupType String
destinationType String

The destination address type defined in the access control policy.Valid values: If direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.

direction String

The direction of traffic to which the access control policy applies. Valid values: in, out.

dnsResult String
dnsResultTime String
hitTimes 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 is in, the valid value is ANY. If direction is out, the valid values are ANY, 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.

sourceGroupCidrs List<String>
sourceGroupType String
sourceType String

The type of the source address book defined in the access control policy. Valid values: If direction is to in, the valid values are net, group, location. If direction is out, the valid values are net, group.

aclAction string

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

aclUuid string

The unique ID of the access control policy.

applicationId string
applicationName string

The application type that the access control policy supports.If direction is in, the valid value is ANY. If direction is out, ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

description string

The description of the access control policy.

destPort string

The destination port defined in the access control policy.

destPortGroup string

The destination port address book defined in the access control policy.

destPortGroupPorts string[]
destPortType string

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.

destinationGroupCidrs string[]
destinationGroupType string
destinationType string

The destination address type defined in the access control policy.Valid values: If direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.

direction string

The direction of traffic to which the access control policy applies. Valid values: in, out.

dnsResult string
dnsResultTime string
hitTimes 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 is in, the valid value is ANY. If direction is out, the valid values are ANY, 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.

sourceGroupCidrs string[]
sourceGroupType string
sourceType string

The type of the source address book defined in the access control policy. Valid values: If direction is to in, the valid values are net, group, location. If direction is out, the valid values are net, 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 is in, the valid value is ANY. If direction is out, 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_group str

The destination port address book defined in the access control policy.

dest_port_group_ports Sequence[str]
dest_port_type str

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_cidrs Sequence[str]
destination_group_type str
destination_type str

The destination address type defined in the access control policy.Valid values: If direction is in, the valid values are net, group. If direction is out, the valid values are net, 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_time str
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 is in, the valid value is ANY. If direction is out, the valid values are ANY, 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_cidrs Sequence[str]
source_group_type str
source_type str

The type of the source address book defined in the access control policy. Valid values: If direction is to in, the valid values are net, group, location. If direction is out, the valid values are net, group.

aclAction String

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

aclUuid String

The unique ID of the access control policy.

applicationId String
applicationName String

The application type that the access control policy supports.If direction is in, the valid value is ANY. If direction is out, ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

description String

The description of the access control policy.

destPort String

The destination port defined in the access control policy.

destPortGroup String

The destination port address book defined in the access control policy.

destPortGroupPorts List<String>
destPortType String

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.

destinationGroupCidrs List<String>
destinationGroupType String
destinationType String

The destination address type defined in the access control policy.Valid values: If direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.

direction String

The direction of traffic to which the access control policy applies. Valid values: in, out.

dnsResult String
dnsResultTime String
hitTimes 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 is in, the valid value is ANY. If direction is out, the valid values are ANY, 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.

sourceGroupCidrs List<String>
sourceGroupType String
sourceType String

The type of the source address book defined in the access control policy. Valid values: If direction is to in, the valid values are net, group, location. If direction is out, the valid values are net, group.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.