1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getAddressMaps
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getAddressMaps

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleAddressMaps = cloudflare.getAddressMaps({
        accountId: "258def64c72dae45f3e4c8516e2111f2",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_address_maps = cloudflare.get_address_maps(account_id="258def64c72dae45f3e4c8516e2111f2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.LookupAddressMaps(ctx, &cloudflare.LookupAddressMapsArgs{
    			AccountId: "258def64c72dae45f3e4c8516e2111f2",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleAddressMaps = Cloudflare.GetAddressMaps.Invoke(new()
        {
            AccountId = "258def64c72dae45f3e4c8516e2111f2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetAddressMapsArgs;
    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 exampleAddressMaps = CloudflareFunctions.getAddressMaps(GetAddressMapsArgs.builder()
                .accountId("258def64c72dae45f3e4c8516e2111f2")
                .build());
    
        }
    }
    
    variables:
      exampleAddressMaps:
        fn::invoke:
          function: cloudflare:getAddressMaps
          arguments:
            accountId: 258def64c72dae45f3e4c8516e2111f2
    

    Using getAddressMaps

    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 getAddressMaps(args: GetAddressMapsArgs, opts?: InvokeOptions): Promise<GetAddressMapsResult>
    function getAddressMapsOutput(args: GetAddressMapsOutputArgs, opts?: InvokeOptions): Output<GetAddressMapsResult>
    def get_address_maps(account_id: Optional[str] = None,
                         max_items: Optional[int] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAddressMapsResult
    def get_address_maps_output(account_id: Optional[pulumi.Input[str]] = None,
                         max_items: Optional[pulumi.Input[int]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetAddressMapsResult]
    func LookupAddressMaps(ctx *Context, args *LookupAddressMapsArgs, opts ...InvokeOption) (*LookupAddressMapsResult, error)
    func LookupAddressMapsOutput(ctx *Context, args *LookupAddressMapsOutputArgs, opts ...InvokeOption) LookupAddressMapsResultOutput

    > Note: This function is named LookupAddressMaps in the Go SDK.

    public static class GetAddressMaps 
    {
        public static Task<GetAddressMapsResult> InvokeAsync(GetAddressMapsArgs args, InvokeOptions? opts = null)
        public static Output<GetAddressMapsResult> Invoke(GetAddressMapsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAddressMapsResult> getAddressMaps(GetAddressMapsArgs args, InvokeOptions options)
    public static Output<GetAddressMapsResult> getAddressMaps(GetAddressMapsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAddressMaps:getAddressMaps
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier of a Cloudflare account.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier of a Cloudflare account.
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Identifier of a Cloudflare account.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier of a Cloudflare account.
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier of a Cloudflare account.
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier of a Cloudflare account.
    maxItems Number
    Max items to fetch, default: 1000

    getAddressMaps Result

    The following output properties are available:

    AccountId string
    Identifier of a Cloudflare account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetAddressMapsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier of a Cloudflare account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetAddressMapsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Identifier of a Cloudflare account.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetAddressMapsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier of a Cloudflare account.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetAddressMapsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier of a Cloudflare account.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetAddressMapsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier of a Cloudflare account.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetAddressMapsResult

    CanDelete bool
    If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.
    CanModifyIps bool
    If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.
    CreatedAt string
    DefaultSni string
    If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.
    Description string
    An optional description field which may be used to describe the types of IPs or zones on the map.
    Enabled bool
    Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.
    Id string
    Identifier of an Address Map.
    ModifiedAt string
    CanDelete bool
    If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.
    CanModifyIps bool
    If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.
    CreatedAt string
    DefaultSni string
    If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.
    Description string
    An optional description field which may be used to describe the types of IPs or zones on the map.
    Enabled bool
    Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.
    Id string
    Identifier of an Address Map.
    ModifiedAt string
    canDelete Boolean
    If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.
    canModifyIps Boolean
    If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.
    createdAt String
    defaultSni String
    If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.
    description String
    An optional description field which may be used to describe the types of IPs or zones on the map.
    enabled Boolean
    Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.
    id String
    Identifier of an Address Map.
    modifiedAt String
    canDelete boolean
    If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.
    canModifyIps boolean
    If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.
    createdAt string
    defaultSni string
    If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.
    description string
    An optional description field which may be used to describe the types of IPs or zones on the map.
    enabled boolean
    Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.
    id string
    Identifier of an Address Map.
    modifiedAt string
    can_delete bool
    If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.
    can_modify_ips bool
    If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.
    created_at str
    default_sni str
    If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.
    description str
    An optional description field which may be used to describe the types of IPs or zones on the map.
    enabled bool
    Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.
    id str
    Identifier of an Address Map.
    modified_at str
    canDelete Boolean
    If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.
    canModifyIps Boolean
    If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.
    createdAt String
    defaultSni String
    If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.
    description String
    An optional description field which may be used to describe the types of IPs or zones on the map.
    enabled Boolean
    Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.
    id String
    Identifier of an Address Map.
    modifiedAt String

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi