1. Packages
  2. Cloudfoundry Provider
  3. API Docs
  4. getSpace
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community

cloudfoundry.getSpace

Explore with Pulumi AI

cloudfoundry logo
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community

    Using getSpace

    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 getSpace(args: GetSpaceArgs, opts?: InvokeOptions): Promise<GetSpaceResult>
    function getSpaceOutput(args: GetSpaceOutputArgs, opts?: InvokeOptions): Output<GetSpaceResult>
    def get_space(annotations: Optional[Mapping[str, str]] = None,
                  id: Optional[str] = None,
                  labels: Optional[Mapping[str, str]] = None,
                  name: Optional[str] = None,
                  org: Optional[str] = None,
                  org_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetSpaceResult
    def get_space_output(annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                  id: Optional[pulumi.Input[str]] = None,
                  labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  org: Optional[pulumi.Input[str]] = None,
                  org_name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetSpaceResult]
    func LookupSpace(ctx *Context, args *LookupSpaceArgs, opts ...InvokeOption) (*LookupSpaceResult, error)
    func LookupSpaceOutput(ctx *Context, args *LookupSpaceOutputArgs, opts ...InvokeOption) LookupSpaceResultOutput

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

    public static class GetSpace 
    {
        public static Task<GetSpaceResult> InvokeAsync(GetSpaceArgs args, InvokeOptions? opts = null)
        public static Output<GetSpaceResult> Invoke(GetSpaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSpaceResult> getSpace(GetSpaceArgs args, InvokeOptions options)
    public static Output<GetSpaceResult> getSpace(GetSpaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getSpace:getSpace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string

    The name of the space to look up.

    One of the following arguments must be provided.

    Annotations Dictionary<string, string>
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    Id string
    The GUID of the space
    Labels Dictionary<string, string>
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    Org string
    GUID of the organization the space belongs to. Conflicts with org_name.
    OrgName string
    Name of the organization the space belongs to. Conflicts with org.
    Name string

    The name of the space to look up.

    One of the following arguments must be provided.

    Annotations map[string]string
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    Id string
    The GUID of the space
    Labels map[string]string
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    Org string
    GUID of the organization the space belongs to. Conflicts with org_name.
    OrgName string
    Name of the organization the space belongs to. Conflicts with org.
    name String

    The name of the space to look up.

    One of the following arguments must be provided.

    annotations Map<String,String>
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    id String
    The GUID of the space
    labels Map<String,String>
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    org String
    GUID of the organization the space belongs to. Conflicts with org_name.
    orgName String
    Name of the organization the space belongs to. Conflicts with org.
    name string

    The name of the space to look up.

    One of the following arguments must be provided.

    annotations {[key: string]: string}
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    id string
    The GUID of the space
    labels {[key: string]: string}
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    org string
    GUID of the organization the space belongs to. Conflicts with org_name.
    orgName string
    Name of the organization the space belongs to. Conflicts with org.
    name str

    The name of the space to look up.

    One of the following arguments must be provided.

    annotations Mapping[str, str]
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    id str
    The GUID of the space
    labels Mapping[str, str]
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    org str
    GUID of the organization the space belongs to. Conflicts with org_name.
    org_name str
    Name of the organization the space belongs to. Conflicts with org.
    name String

    The name of the space to look up.

    One of the following arguments must be provided.

    annotations Map<String>
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    id String
    The GUID of the space
    labels Map<String>
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    org String
    GUID of the organization the space belongs to. Conflicts with org_name.
    orgName String
    Name of the organization the space belongs to. Conflicts with org.

    getSpace Result

    The following output properties are available:

    Id string
    The GUID of the space
    Name string
    Org string
    The GUID of the org the space belongs to
    OrgName string
    The name of the org the space belongs to
    Quota string
    The GUID of the space's quota
    Annotations Dictionary<string, string>
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    Labels Dictionary<string, string>
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    Id string
    The GUID of the space
    Name string
    Org string
    The GUID of the org the space belongs to
    OrgName string
    The name of the org the space belongs to
    Quota string
    The GUID of the space's quota
    Annotations map[string]string
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    Labels map[string]string
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    id String
    The GUID of the space
    name String
    org String
    The GUID of the org the space belongs to
    orgName String
    The name of the org the space belongs to
    quota String
    The GUID of the space's quota
    annotations Map<String,String>
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    labels Map<String,String>
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    id string
    The GUID of the space
    name string
    org string
    The GUID of the org the space belongs to
    orgName string
    The name of the org the space belongs to
    quota string
    The GUID of the space's quota
    annotations {[key: string]: string}
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    labels {[key: string]: string}
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    id str
    The GUID of the space
    name str
    org str
    The GUID of the org the space belongs to
    org_name str
    The name of the org the space belongs to
    quota str
    The GUID of the space's quota
    annotations Mapping[str, str]
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    labels Mapping[str, str]
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.
    id String
    The GUID of the space
    name String
    org String
    The GUID of the org the space belongs to
    orgName String
    The name of the org the space belongs to
    quota String
    The GUID of the space's quota
    annotations Map<String>
    Map of annotations as described here. Works only on cloud foundry with api >= v3.63.
    labels Map<String>
    Map of labels as described here. Works only on cloud foundry with api >= v3.63.

    Package Details

    Repository
    cloudfoundry cloudfoundry-community/terraform-provider-cloudfoundry
    License
    Notes
    This Pulumi package is based on the cloudfoundry Terraform Provider.
    cloudfoundry logo
    cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community