1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getConnectivityDirectoryServices
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
cloudflare logo
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleConnectivityDirectoryServices = cloudflare.getConnectivityDirectoryServices({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        type: "http",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_connectivity_directory_services = cloudflare.get_connectivity_directory_services(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        type="http")
    
    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.LookupConnectivityDirectoryServices(ctx, &cloudflare.LookupConnectivityDirectoryServicesArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    			Type:      pulumi.StringRef("http"),
    		}, 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 exampleConnectivityDirectoryServices = Cloudflare.GetConnectivityDirectoryServices.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Type = "http",
        });
    
    });
    
    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.GetConnectivityDirectoryServicesArgs;
    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 exampleConnectivityDirectoryServices = CloudflareFunctions.getConnectivityDirectoryServices(GetConnectivityDirectoryServicesArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .type("http")
                .build());
    
        }
    }
    
    variables:
      exampleConnectivityDirectoryServices:
        fn::invoke:
          function: cloudflare:getConnectivityDirectoryServices
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            type: http
    

    Using getConnectivityDirectoryServices

    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 getConnectivityDirectoryServices(args: GetConnectivityDirectoryServicesArgs, opts?: InvokeOptions): Promise<GetConnectivityDirectoryServicesResult>
    function getConnectivityDirectoryServicesOutput(args: GetConnectivityDirectoryServicesOutputArgs, opts?: InvokeOptions): Output<GetConnectivityDirectoryServicesResult>
    def get_connectivity_directory_services(account_id: Optional[str] = None,
                                            max_items: Optional[int] = None,
                                            type: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetConnectivityDirectoryServicesResult
    def get_connectivity_directory_services_output(account_id: Optional[pulumi.Input[str]] = None,
                                            max_items: Optional[pulumi.Input[int]] = None,
                                            type: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetConnectivityDirectoryServicesResult]
    func LookupConnectivityDirectoryServices(ctx *Context, args *LookupConnectivityDirectoryServicesArgs, opts ...InvokeOption) (*LookupConnectivityDirectoryServicesResult, error)
    func LookupConnectivityDirectoryServicesOutput(ctx *Context, args *LookupConnectivityDirectoryServicesOutputArgs, opts ...InvokeOption) LookupConnectivityDirectoryServicesResultOutput

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

    public static class GetConnectivityDirectoryServices 
    {
        public static Task<GetConnectivityDirectoryServicesResult> InvokeAsync(GetConnectivityDirectoryServicesArgs args, InvokeOptions? opts = null)
        public static Output<GetConnectivityDirectoryServicesResult> Invoke(GetConnectivityDirectoryServicesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConnectivityDirectoryServicesResult> getConnectivityDirectoryServices(GetConnectivityDirectoryServicesArgs args, InvokeOptions options)
    public static Output<GetConnectivityDirectoryServicesResult> getConnectivityDirectoryServices(GetConnectivityDirectoryServicesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getConnectivityDirectoryServices:getConnectivityDirectoryServices
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier
    MaxItems int
    Max items to fetch, default: 1000
    Type string
    Available values: "http".
    AccountId string
    Account identifier
    MaxItems int
    Max items to fetch, default: 1000
    Type string
    Available values: "http".
    accountId String
    Account identifier
    maxItems Integer
    Max items to fetch, default: 1000
    type String
    Available values: "http".
    accountId string
    Account identifier
    maxItems number
    Max items to fetch, default: 1000
    type string
    Available values: "http".
    account_id str
    Account identifier
    max_items int
    Max items to fetch, default: 1000
    type str
    Available values: "http".
    accountId String
    Account identifier
    maxItems Number
    Max items to fetch, default: 1000
    type String
    Available values: "http".

    getConnectivityDirectoryServices Result

    The following output properties are available:

    AccountId string
    Account identifier
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetConnectivityDirectoryServicesResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    Type string
    Available values: "http".
    AccountId string
    Account identifier
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetConnectivityDirectoryServicesResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    Type string
    Available values: "http".
    accountId String
    Account identifier
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetConnectivityDirectoryServicesResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    type String
    Available values: "http".
    accountId string
    Account identifier
    id string
    The provider-assigned unique ID for this managed resource.
    results GetConnectivityDirectoryServicesResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    type string
    Available values: "http".
    account_id str
    Account identifier
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetConnectivityDirectoryServicesResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    type str
    Available values: "http".
    accountId String
    Account identifier
    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
    type String
    Available values: "http".

    Supporting Types

    GetConnectivityDirectoryServicesResult

    CreatedAt string
    Host GetConnectivityDirectoryServicesResultHost
    HttpPort int
    HttpsPort int
    Id string
    Name string
    ServiceId string
    Type string
    Available values: "http".
    UpdatedAt string
    CreatedAt string
    Host GetConnectivityDirectoryServicesResultHost
    HttpPort int
    HttpsPort int
    Id string
    Name string
    ServiceId string
    Type string
    Available values: "http".
    UpdatedAt string
    createdAt String
    host GetConnectivityDirectoryServicesResultHost
    httpPort Integer
    httpsPort Integer
    id String
    name String
    serviceId String
    type String
    Available values: "http".
    updatedAt String
    createdAt string
    host GetConnectivityDirectoryServicesResultHost
    httpPort number
    httpsPort number
    id string
    name string
    serviceId string
    type string
    Available values: "http".
    updatedAt string
    createdAt String
    host Property Map
    httpPort Number
    httpsPort Number
    id String
    name String
    serviceId String
    type String
    Available values: "http".
    updatedAt String

    GetConnectivityDirectoryServicesResultHost

    GetConnectivityDirectoryServicesResultHostNetwork

    TunnelId string
    TunnelId string
    tunnelId String
    tunnelId string
    tunnelId String

    GetConnectivityDirectoryServicesResultHostResolverNetwork

    ResolverIps List<string>
    TunnelId string
    ResolverIps []string
    TunnelId string
    resolverIps List<String>
    tunnelId String
    resolverIps string[]
    tunnelId string
    resolver_ips Sequence[str]
    tunnel_id str
    resolverIps List<String>
    tunnelId 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.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate