1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getDomains
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry

    Gets information of Cloud Foundry domains. If an organization is specified, it will return the private domains associated with that cloud foundry organization.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const all = cloudfoundry.getDomains({
        org: "784b4cd0-4771-4e4d-9052-a07e178bae56",
    });
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    all = cloudfoundry.get_domains(org="784b4cd0-4771-4e4d-9052-a07e178bae56")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/cloudfoundry/cloudfoundry"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfoundry.GetDomains(ctx, &cloudfoundry.GetDomainsArgs{
    			Org: pulumi.StringRef("784b4cd0-4771-4e4d-9052-a07e178bae56"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Cloudfoundry.GetDomains.Invoke(new()
        {
            Org = "784b4cd0-4771-4e4d-9052-a07e178bae56",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudfoundry.CloudfoundryFunctions;
    import com.pulumi.cloudfoundry.inputs.GetDomainsArgs;
    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 all = CloudfoundryFunctions.getDomains(GetDomainsArgs.builder()
                .org("784b4cd0-4771-4e4d-9052-a07e178bae56")
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: cloudfoundry:getDomains
          arguments:
            org: 784b4cd0-4771-4e4d-9052-a07e178bae56
    
    Example coming soon!
    

    Using getDomains

    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 getDomains(args: GetDomainsArgs, opts?: InvokeOptions): Promise<GetDomainsResult>
    function getDomainsOutput(args: GetDomainsOutputArgs, opts?: InvokeOutputOptions): Output<GetDomainsResult>
    def get_domains(org: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDomainsResult
    def get_domains_output(org: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetDomainsResult]
    func GetDomains(ctx *Context, args *GetDomainsArgs, opts ...InvokeOption) (*GetDomainsResult, error)
    func GetDomainsOutput(ctx *Context, args *GetDomainsOutputArgs, opts ...InvokeOption) GetDomainsResultOutput

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

    public static class GetDomains 
    {
        public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args, InvokeOptions? opts = null)
        public static Output<GetDomainsResult> Invoke(GetDomainsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetDomainsResult> Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
    public static Output<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
    public static Output<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getDomains:getDomains
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_domains" "name" {
        # arguments
    }

    The following arguments are supported:

    Org string
    The ID of the Org within which to find the domains
    Org string
    The ID of the Org within which to find the domains
    org string
    The ID of the Org within which to find the domains
    org String
    The ID of the Org within which to find the domains
    org string
    The ID of the Org within which to find the domains
    org str
    The ID of the Org within which to find the domains
    org String
    The ID of the Org within which to find the domains

    getDomains Result

    The following output properties are available:

    Domains List<GetDomainsDomain>
    The domains the organization is scoped to
    Id string
    The provider-assigned unique ID for this managed resource.
    Org string
    The ID of the Org within which to find the domains
    Domains []GetDomainsDomain
    The domains the organization is scoped to
    Id string
    The provider-assigned unique ID for this managed resource.
    Org string
    The ID of the Org within which to find the domains
    domains list(object)
    The domains the organization is scoped to
    id string
    The provider-assigned unique ID for this managed resource.
    org string
    The ID of the Org within which to find the domains
    domains List<GetDomainsDomain>
    The domains the organization is scoped to
    id String
    The provider-assigned unique ID for this managed resource.
    org String
    The ID of the Org within which to find the domains
    domains GetDomainsDomain[]
    The domains the organization is scoped to
    id string
    The provider-assigned unique ID for this managed resource.
    org string
    The ID of the Org within which to find the domains
    domains Sequence[GetDomainsDomain]
    The domains the organization is scoped to
    id str
    The provider-assigned unique ID for this managed resource.
    org str
    The ID of the Org within which to find the domains
    domains List<Property Map>
    The domains the organization is scoped to
    id String
    The provider-assigned unique ID for this managed resource.
    org String
    The ID of the Org within which to find the domains

    Supporting Types

    GetDomainsDomain

    Annotations Dictionary<string, string>
    The annotations associated with Cloud Foundry resources.
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Id string
    The GUID of the object.
    Internal bool
    Whether the domain is used for internal (container-to-container) traffic, or external (user-to-container) traffic
    Labels Dictionary<string, string>
    The labels associated with Cloud Foundry resources.
    Name string
    The name of the cloud foundry domain.
    Org string
    The organization the domain is scoped to
    RouterGroup string
    The guid of the desired router group to route tcp traffic through.
    SharedOrgs List<string>
    Organizations the domain is shared with
    SupportedProtocols List<string>
    Available protocols for routes using the domain, currently http and tcp
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    Annotations map[string]string
    The annotations associated with Cloud Foundry resources.
    CreatedAt string
    The date and time when the resource was created in RFC3339 format.
    Id string
    The GUID of the object.
    Internal bool
    Whether the domain is used for internal (container-to-container) traffic, or external (user-to-container) traffic
    Labels map[string]string
    The labels associated with Cloud Foundry resources.
    Name string
    The name of the cloud foundry domain.
    Org string
    The organization the domain is scoped to
    RouterGroup string
    The guid of the desired router group to route tcp traffic through.
    SharedOrgs []string
    Organizations the domain is shared with
    SupportedProtocols []string
    Available protocols for routes using the domain, currently http and tcp
    UpdatedAt string
    The date and time when the resource was updated in RFC3339 format.
    annotations map(string)
    The annotations associated with Cloud Foundry resources.
    created_at string
    The date and time when the resource was created in RFC3339 format.
    id string
    The GUID of the object.
    internal bool
    Whether the domain is used for internal (container-to-container) traffic, or external (user-to-container) traffic
    labels map(string)
    The labels associated with Cloud Foundry resources.
    name string
    The name of the cloud foundry domain.
    org string
    The organization the domain is scoped to
    router_group string
    The guid of the desired router group to route tcp traffic through.
    shared_orgs list(string)
    Organizations the domain is shared with
    supported_protocols list(string)
    Available protocols for routes using the domain, currently http and tcp
    updated_at string
    The date and time when the resource was updated in RFC3339 format.
    annotations Map<String,String>
    The annotations associated with Cloud Foundry resources.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    id String
    The GUID of the object.
    internal Boolean
    Whether the domain is used for internal (container-to-container) traffic, or external (user-to-container) traffic
    labels Map<String,String>
    The labels associated with Cloud Foundry resources.
    name String
    The name of the cloud foundry domain.
    org String
    The organization the domain is scoped to
    routerGroup String
    The guid of the desired router group to route tcp traffic through.
    sharedOrgs List<String>
    Organizations the domain is shared with
    supportedProtocols List<String>
    Available protocols for routes using the domain, currently http and tcp
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.
    annotations {[key: string]: string}
    The annotations associated with Cloud Foundry resources.
    createdAt string
    The date and time when the resource was created in RFC3339 format.
    id string
    The GUID of the object.
    internal boolean
    Whether the domain is used for internal (container-to-container) traffic, or external (user-to-container) traffic
    labels {[key: string]: string}
    The labels associated with Cloud Foundry resources.
    name string
    The name of the cloud foundry domain.
    org string
    The organization the domain is scoped to
    routerGroup string
    The guid of the desired router group to route tcp traffic through.
    sharedOrgs string[]
    Organizations the domain is shared with
    supportedProtocols string[]
    Available protocols for routes using the domain, currently http and tcp
    updatedAt string
    The date and time when the resource was updated in RFC3339 format.
    annotations Mapping[str, str]
    The annotations associated with Cloud Foundry resources.
    created_at str
    The date and time when the resource was created in RFC3339 format.
    id str
    The GUID of the object.
    internal bool
    Whether the domain is used for internal (container-to-container) traffic, or external (user-to-container) traffic
    labels Mapping[str, str]
    The labels associated with Cloud Foundry resources.
    name str
    The name of the cloud foundry domain.
    org str
    The organization the domain is scoped to
    router_group str
    The guid of the desired router group to route tcp traffic through.
    shared_orgs Sequence[str]
    Organizations the domain is shared with
    supported_protocols Sequence[str]
    Available protocols for routes using the domain, currently http and tcp
    updated_at str
    The date and time when the resource was updated in RFC3339 format.
    annotations Map<String>
    The annotations associated with Cloud Foundry resources.
    createdAt String
    The date and time when the resource was created in RFC3339 format.
    id String
    The GUID of the object.
    internal Boolean
    Whether the domain is used for internal (container-to-container) traffic, or external (user-to-container) traffic
    labels Map<String>
    The labels associated with Cloud Foundry resources.
    name String
    The name of the cloud foundry domain.
    org String
    The organization the domain is scoped to
    routerGroup String
    The guid of the desired router group to route tcp traffic through.
    sharedOrgs List<String>
    Organizations the domain is shared with
    supportedProtocols List<String>
    Available protocols for routes using the domain, currently http and tcp
    updatedAt String
    The date and time when the resource was updated in RFC3339 format.

    Package Details

    Repository
    cloudfoundry cloudfoundry/terraform-provider-cloudfoundry
    License
    Notes
    This Pulumi package is based on the cloudfoundry Terraform Provider.
    cloudfoundry
    Viewing docs for cloudfoundry 1.19.0
    published on Friday, Nov 13, 2026 by cloudfoundry

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial