1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getConnectivityDirectoryServices
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Example Usage

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

    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: pulumi.Input[Optional[str]] = None,
                                            max_items: pulumi.Input[Optional[int]] = None,
                                            type: pulumi.Input[Optional[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: "tcp", "http".
    AccountId string
    Account identifier
    MaxItems int
    Max items to fetch, default: 1000
    Type string
    Available values: "tcp", "http".
    accountId String
    Account identifier
    maxItems Integer
    Max items to fetch, default: 1000
    type String
    Available values: "tcp", "http".
    accountId string
    Account identifier
    maxItems number
    Max items to fetch, default: 1000
    type string
    Available values: "tcp", "http".
    account_id str
    Account identifier
    max_items int
    Max items to fetch, default: 1000
    type str
    Available values: "tcp", "http".
    accountId String
    Account identifier
    maxItems Number
    Max items to fetch, default: 1000
    type String
    Available values: "tcp", "http".

    getConnectivityDirectoryServices Result

    The following output properties are available:

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

    Supporting Types

    GetConnectivityDirectoryServicesResult

    AppProtocol string
    Available values: "postgresql", "mysql".
    CreatedAt string
    Host GetConnectivityDirectoryServicesResultHost
    HttpPort int
    HttpsPort int
    Name string
    ServiceId string
    TcpPort int
    TlsSettings GetConnectivityDirectoryServicesResultTlsSettings
    TLS settings for a connectivity service.
    Type string
    Available values: "tcp", "http".
    UpdatedAt string
    AppProtocol string
    Available values: "postgresql", "mysql".
    CreatedAt string
    Host GetConnectivityDirectoryServicesResultHost
    HttpPort int
    HttpsPort int
    Name string
    ServiceId string
    TcpPort int
    TlsSettings GetConnectivityDirectoryServicesResultTlsSettings
    TLS settings for a connectivity service.
    Type string
    Available values: "tcp", "http".
    UpdatedAt string
    appProtocol String
    Available values: "postgresql", "mysql".
    createdAt String
    host GetConnectivityDirectoryServicesResultHost
    httpPort Integer
    httpsPort Integer
    name String
    serviceId String
    tcpPort Integer
    tlsSettings GetConnectivityDirectoryServicesResultTlsSettings
    TLS settings for a connectivity service.
    type String
    Available values: "tcp", "http".
    updatedAt String
    appProtocol string
    Available values: "postgresql", "mysql".
    createdAt string
    host GetConnectivityDirectoryServicesResultHost
    httpPort number
    httpsPort number
    name string
    serviceId string
    tcpPort number
    tlsSettings GetConnectivityDirectoryServicesResultTlsSettings
    TLS settings for a connectivity service.
    type string
    Available values: "tcp", "http".
    updatedAt string
    app_protocol str
    Available values: "postgresql", "mysql".
    created_at str
    host GetConnectivityDirectoryServicesResultHost
    http_port int
    https_port int
    name str
    service_id str
    tcp_port int
    tls_settings GetConnectivityDirectoryServicesResultTlsSettings
    TLS settings for a connectivity service.
    type str
    Available values: "tcp", "http".
    updated_at str
    appProtocol String
    Available values: "postgresql", "mysql".
    createdAt String
    host Property Map
    httpPort Number
    httpsPort Number
    name String
    serviceId String
    tcpPort Number
    tlsSettings Property Map
    TLS settings for a connectivity service.
    type String
    Available values: "tcp", "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

    GetConnectivityDirectoryServicesResultTlsSettings

    CertVerificationMode string
    TLS certificate verification mode for the connection to the origin.
    CertVerificationMode string
    TLS certificate verification mode for the connection to the origin.
    certVerificationMode String
    TLS certificate verification mode for the connection to the origin.
    certVerificationMode string
    TLS certificate verification mode for the connection to the origin.
    cert_verification_mode str
    TLS certificate verification mode for the connection to the origin.
    certVerificationMode String
    TLS certificate verification mode for the connection to the origin.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.