1. Packages
  2. Volcengine
  3. API Docs
  4. cloud_firewall
  5. CfwAddressBooks
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

volcengine.cloud_firewall.CfwAddressBooks

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

    Use this data source to query detailed information of cfw address books

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.cloud_firewall.CfwAddressBooks({
        groupName: "acc-test",
        groupType: "ip",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cloud_firewall.cfw_address_books(group_name="acc-test",
        group_type="ip")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_firewall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloud_firewall.CfwAddressBooks(ctx, &cloud_firewall.CfwAddressBooksArgs{
    			GroupName: pulumi.StringRef("acc-test"),
    			GroupType: pulumi.StringRef("ip"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Cloud_firewall.CfwAddressBooks.Invoke(new()
        {
            GroupName = "acc-test",
            GroupType = "ip",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cloud_firewall.Cloud_firewallFunctions;
    import com.pulumi.volcengine.cloud_firewall.inputs.CfwAddressBooksArgs;
    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 foo = Cloud_firewallFunctions.CfwAddressBooks(CfwAddressBooksArgs.builder()
                .groupName("acc-test")
                .groupType("ip")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:cloud_firewall:CfwAddressBooks
          Arguments:
            groupName: acc-test
            groupType: ip
    

    Using CfwAddressBooks

    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 cfwAddressBooks(args: CfwAddressBooksArgs, opts?: InvokeOptions): Promise<CfwAddressBooksResult>
    function cfwAddressBooksOutput(args: CfwAddressBooksOutputArgs, opts?: InvokeOptions): Output<CfwAddressBooksResult>
    def cfw_address_books(address: Optional[str] = None,
                          description: Optional[str] = None,
                          group_name: Optional[str] = None,
                          group_type: Optional[str] = None,
                          name_regex: Optional[str] = None,
                          output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> CfwAddressBooksResult
    def cfw_address_books_output(address: Optional[pulumi.Input[str]] = None,
                          description: Optional[pulumi.Input[str]] = None,
                          group_name: Optional[pulumi.Input[str]] = None,
                          group_type: Optional[pulumi.Input[str]] = None,
                          name_regex: Optional[pulumi.Input[str]] = None,
                          output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[CfwAddressBooksResult]
    func CfwAddressBooks(ctx *Context, args *CfwAddressBooksArgs, opts ...InvokeOption) (*CfwAddressBooksResult, error)
    func CfwAddressBooksOutput(ctx *Context, args *CfwAddressBooksOutputArgs, opts ...InvokeOption) CfwAddressBooksResultOutput
    public static class CfwAddressBooks 
    {
        public static Task<CfwAddressBooksResult> InvokeAsync(CfwAddressBooksArgs args, InvokeOptions? opts = null)
        public static Output<CfwAddressBooksResult> Invoke(CfwAddressBooksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<CfwAddressBooksResult> cfwAddressBooks(CfwAddressBooksArgs args, InvokeOptions options)
    public static Output<CfwAddressBooksResult> cfwAddressBooks(CfwAddressBooksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:cloud_firewall:CfwAddressBooks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Address string
    The group type of address book. This field support fuzzy query.
    Description string
    The group type of address book. This field support fuzzy query.
    GroupName string
    The group name of address book. This field support fuzzy query.
    GroupType string
    The group type of address book. Valid values: ip, port, domain.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    Address string
    The group type of address book. This field support fuzzy query.
    Description string
    The group type of address book. This field support fuzzy query.
    GroupName string
    The group name of address book. This field support fuzzy query.
    GroupType string
    The group type of address book. Valid values: ip, port, domain.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    address String
    The group type of address book. This field support fuzzy query.
    description String
    The group type of address book. This field support fuzzy query.
    groupName String
    The group name of address book. This field support fuzzy query.
    groupType String
    The group type of address book. Valid values: ip, port, domain.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    address string
    The group type of address book. This field support fuzzy query.
    description string
    The group type of address book. This field support fuzzy query.
    groupName string
    The group name of address book. This field support fuzzy query.
    groupType string
    The group type of address book. Valid values: ip, port, domain.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    address str
    The group type of address book. This field support fuzzy query.
    description str
    The group type of address book. This field support fuzzy query.
    group_name str
    The group name of address book. This field support fuzzy query.
    group_type str
    The group type of address book. Valid values: ip, port, domain.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    address String
    The group type of address book. This field support fuzzy query.
    description String
    The group type of address book. This field support fuzzy query.
    groupName String
    The group name of address book. This field support fuzzy query.
    groupType String
    The group type of address book. Valid values: ip, port, domain.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.

    CfwAddressBooks Result

    The following output properties are available:

    AddressBooks List<CfwAddressBooksAddressBook>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Address string
    Description string
    The description of the address book.
    GroupName string
    The name of the address book.
    GroupType string
    The type of the address book.
    NameRegex string
    OutputFile string
    AddressBooks []CfwAddressBooksAddressBook
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Address string
    Description string
    The description of the address book.
    GroupName string
    The name of the address book.
    GroupType string
    The type of the address book.
    NameRegex string
    OutputFile string
    addressBooks List<CfwAddressBooksAddressBook>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    address String
    description String
    The description of the address book.
    groupName String
    The name of the address book.
    groupType String
    The type of the address book.
    nameRegex String
    outputFile String
    addressBooks CfwAddressBooksAddressBook[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    address string
    description string
    The description of the address book.
    groupName string
    The name of the address book.
    groupType string
    The type of the address book.
    nameRegex string
    outputFile string
    address_books Sequence[CfwAddressBooksAddressBook]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    address str
    description str
    The description of the address book.
    group_name str
    The name of the address book.
    group_type str
    The type of the address book.
    name_regex str
    output_file str
    addressBooks List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    address String
    description String
    The description of the address book.
    groupName String
    The name of the address book.
    groupType String
    The type of the address book.
    nameRegex String
    outputFile String

    Supporting Types

    CfwAddressBooksAddressBook

    AddressLists List<string>
    The address list of the address book.
    Description string
    The group type of address book. This field support fuzzy query.
    GroupName string
    The group name of address book. This field support fuzzy query.
    GroupType string
    The group type of address book. Valid values: ip, port, domain.
    GroupUuid string
    The uuid of the address book.
    Id string
    The uuid of the address book.
    RefCnt int
    The reference count of the address book.
    AddressLists []string
    The address list of the address book.
    Description string
    The group type of address book. This field support fuzzy query.
    GroupName string
    The group name of address book. This field support fuzzy query.
    GroupType string
    The group type of address book. Valid values: ip, port, domain.
    GroupUuid string
    The uuid of the address book.
    Id string
    The uuid of the address book.
    RefCnt int
    The reference count of the address book.
    addressLists List<String>
    The address list of the address book.
    description String
    The group type of address book. This field support fuzzy query.
    groupName String
    The group name of address book. This field support fuzzy query.
    groupType String
    The group type of address book. Valid values: ip, port, domain.
    groupUuid String
    The uuid of the address book.
    id String
    The uuid of the address book.
    refCnt Integer
    The reference count of the address book.
    addressLists string[]
    The address list of the address book.
    description string
    The group type of address book. This field support fuzzy query.
    groupName string
    The group name of address book. This field support fuzzy query.
    groupType string
    The group type of address book. Valid values: ip, port, domain.
    groupUuid string
    The uuid of the address book.
    id string
    The uuid of the address book.
    refCnt number
    The reference count of the address book.
    address_lists Sequence[str]
    The address list of the address book.
    description str
    The group type of address book. This field support fuzzy query.
    group_name str
    The group name of address book. This field support fuzzy query.
    group_type str
    The group type of address book. Valid values: ip, port, domain.
    group_uuid str
    The uuid of the address book.
    id str
    The uuid of the address book.
    ref_cnt int
    The reference count of the address book.
    addressLists List<String>
    The address list of the address book.
    description String
    The group type of address book. This field support fuzzy query.
    groupName String
    The group name of address book. This field support fuzzy query.
    groupType String
    The group type of address book. Valid values: ip, port, domain.
    groupUuid String
    The uuid of the address book.
    id String
    The uuid of the address book.
    refCnt Number
    The reference count of the address book.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine