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

cloudfoundry.Space

Explore with Pulumi AI

Provides a Cloud Foundry resource for managing Cloud Foundry spaces within organizations.

NOTE: This resource requires the provider to be authenticated with an account granted org manager permissions. NOTE: Only modify users managed in the resource, and ignore any existing other users provisioned elsewhere.

Example Usage

The following is a Space created within the referenced Org. All referenced users must have been added as a member to the owning Org (see related CF doc for additional context)

import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";

const s1 = new cloudfoundry.Space("s1", {
    org: cloudfoundry_org.o1.id,
    quota: cloudfoundry_quota.dev.id,
    asgs: [cloudfoundry_asg.svc.id],
    allowSsh: true,
});
Copy
import pulumi
import pulumi_cloudfoundry as cloudfoundry

s1 = cloudfoundry.Space("s1",
    org=cloudfoundry_org["o1"]["id"],
    quota=cloudfoundry_quota["dev"]["id"],
    asgs=[cloudfoundry_asg["svc"]["id"]],
    allow_ssh=True)
Copy
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.NewSpace(ctx, "s1", &cloudfoundry.SpaceArgs{
			Org:   pulumi.Any(cloudfoundry_org.O1.Id),
			Quota: pulumi.Any(cloudfoundry_quota.Dev.Id),
			Asgs: pulumi.StringArray{
				cloudfoundry_asg.Svc.Id,
			},
			AllowSsh: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudfoundry = Pulumi.Cloudfoundry;

return await Deployment.RunAsync(() => 
{
    var s1 = new Cloudfoundry.Space("s1", new()
    {
        Org = cloudfoundry_org.O1.Id,
        Quota = cloudfoundry_quota.Dev.Id,
        Asgs = new[]
        {
            cloudfoundry_asg.Svc.Id,
        },
        AllowSsh = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudfoundry.Space;
import com.pulumi.cloudfoundry.SpaceArgs;
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) {
        var s1 = new Space("s1", SpaceArgs.builder()
            .org(cloudfoundry_org.o1().id())
            .quota(cloudfoundry_quota.dev().id())
            .asgs(cloudfoundry_asg.svc().id())
            .allowSsh(true)
            .build());

    }
}
Copy
resources:
  s1:
    type: cloudfoundry:Space
    properties:
      org: ${cloudfoundry_org.o1.id}
      quota: ${cloudfoundry_quota.dev.id}
      asgs:
        - ${cloudfoundry_asg.svc.id}
      allowSsh: true
Copy

Create Space Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Space(name: string, args: SpaceArgs, opts?: CustomResourceOptions);
@overload
def Space(resource_name: str,
          args: SpaceArgs,
          opts: Optional[ResourceOptions] = None)

@overload
def Space(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          org: Optional[str] = None,
          isolation_segment: Optional[str] = None,
          asgs: Optional[Sequence[str]] = None,
          auditors: Optional[Sequence[str]] = None,
          delete_recursive_allowed: Optional[bool] = None,
          developers: Optional[Sequence[str]] = None,
          allow_ssh: Optional[bool] = None,
          labels: Optional[Mapping[str, str]] = None,
          managers: Optional[Sequence[str]] = None,
          name: Optional[str] = None,
          annotations: Optional[Mapping[str, str]] = None,
          quota: Optional[str] = None,
          space_id: Optional[str] = None,
          staging_asgs: Optional[Sequence[str]] = None)
func NewSpace(ctx *Context, name string, args SpaceArgs, opts ...ResourceOption) (*Space, error)
public Space(string name, SpaceArgs args, CustomResourceOptions? opts = null)
public Space(String name, SpaceArgs args)
public Space(String name, SpaceArgs args, CustomResourceOptions options)
type: cloudfoundry:Space
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SpaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SpaceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SpaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SpaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SpaceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var spaceResource = new Cloudfoundry.Space("spaceResource", new()
{
    Org = "string",
    IsolationSegment = "string",
    Asgs = new[]
    {
        "string",
    },
    DeleteRecursiveAllowed = false,
    AllowSsh = false,
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    Annotations = 
    {
        { "string", "string" },
    },
    Quota = "string",
    SpaceId = "string",
    StagingAsgs = new[]
    {
        "string",
    },
});
Copy
example, err := cloudfoundry.NewSpace(ctx, "spaceResource", &cloudfoundry.SpaceArgs{
Org: pulumi.String("string"),
IsolationSegment: pulumi.String("string"),
Asgs: pulumi.StringArray{
pulumi.String("string"),
},
DeleteRecursiveAllowed: pulumi.Bool(false),
AllowSsh: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Quota: pulumi.String("string"),
SpaceId: pulumi.String("string"),
StagingAsgs: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var spaceResource = new Space("spaceResource", SpaceArgs.builder()
    .org("string")
    .isolationSegment("string")
    .asgs("string")
    .deleteRecursiveAllowed(false)
    .allowSsh(false)
    .labels(Map.of("string", "string"))
    .name("string")
    .annotations(Map.of("string", "string"))
    .quota("string")
    .spaceId("string")
    .stagingAsgs("string")
    .build());
Copy
space_resource = cloudfoundry.Space("spaceResource",
    org="string",
    isolation_segment="string",
    asgs=["string"],
    delete_recursive_allowed=False,
    allow_ssh=False,
    labels={
        "string": "string",
    },
    name="string",
    annotations={
        "string": "string",
    },
    quota="string",
    space_id="string",
    staging_asgs=["string"])
Copy
const spaceResource = new cloudfoundry.Space("spaceResource", {
    org: "string",
    isolationSegment: "string",
    asgs: ["string"],
    deleteRecursiveAllowed: false,
    allowSsh: false,
    labels: {
        string: "string",
    },
    name: "string",
    annotations: {
        string: "string",
    },
    quota: "string",
    spaceId: "string",
    stagingAsgs: ["string"],
});
Copy
type: cloudfoundry:Space
properties:
    allowSsh: false
    annotations:
        string: string
    asgs:
        - string
    deleteRecursiveAllowed: false
    isolationSegment: string
    labels:
        string: string
    name: string
    org: string
    quota: string
    spaceId: string
    stagingAsgs:
        - string
Copy

Space Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Space resource accepts the following input properties:

Org This property is required. string
The ID of the Org within which to create the space.
AllowSsh bool
Allows SSH to application containers via the CF CLI. Defaults to true.
Annotations Dictionary<string, string>
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
Asgs List<string>
List of running application security groups to apply to applications running within this space. Defaults to empty list.
Auditors List<string>

Deprecated: Deprecated

DeleteRecursiveAllowed bool
Allow recursive delete of apps, routes and service instances within the space. Default: true.
Developers List<string>

Deprecated: Deprecated

IsolationSegment string
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
Labels Dictionary<string, string>
Add labels as described here. Works only on cloud foundry with api >= v3.63.
Managers List<string>

Deprecated: Deprecated

Name string
The name of the Space in Cloud Foundry.
Quota string
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
SpaceId string
The GUID of the Space
StagingAsgs List<string>
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
Org This property is required. string
The ID of the Org within which to create the space.
AllowSsh bool
Allows SSH to application containers via the CF CLI. Defaults to true.
Annotations map[string]string
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
Asgs []string
List of running application security groups to apply to applications running within this space. Defaults to empty list.
Auditors []string

Deprecated: Deprecated

DeleteRecursiveAllowed bool
Allow recursive delete of apps, routes and service instances within the space. Default: true.
Developers []string

Deprecated: Deprecated

IsolationSegment string
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
Labels map[string]string
Add labels as described here. Works only on cloud foundry with api >= v3.63.
Managers []string

Deprecated: Deprecated

Name string
The name of the Space in Cloud Foundry.
Quota string
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
SpaceId string
The GUID of the Space
StagingAsgs []string
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
org This property is required. String
The ID of the Org within which to create the space.
allowSsh Boolean
Allows SSH to application containers via the CF CLI. Defaults to true.
annotations Map<String,String>
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
asgs List<String>
List of running application security groups to apply to applications running within this space. Defaults to empty list.
auditors List<String>

Deprecated: Deprecated

deleteRecursiveAllowed Boolean
Allow recursive delete of apps, routes and service instances within the space. Default: true.
developers List<String>

Deprecated: Deprecated

isolationSegment String
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
labels Map<String,String>
Add labels as described here. Works only on cloud foundry with api >= v3.63.
managers List<String>

Deprecated: Deprecated

name String
The name of the Space in Cloud Foundry.
quota String
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
spaceId String
The GUID of the Space
stagingAsgs List<String>
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
org This property is required. string
The ID of the Org within which to create the space.
allowSsh boolean
Allows SSH to application containers via the CF CLI. Defaults to true.
annotations {[key: string]: string}
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
asgs string[]
List of running application security groups to apply to applications running within this space. Defaults to empty list.
auditors string[]

Deprecated: Deprecated

deleteRecursiveAllowed boolean
Allow recursive delete of apps, routes and service instances within the space. Default: true.
developers string[]

Deprecated: Deprecated

isolationSegment string
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
labels {[key: string]: string}
Add labels as described here. Works only on cloud foundry with api >= v3.63.
managers string[]

Deprecated: Deprecated

name string
The name of the Space in Cloud Foundry.
quota string
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
spaceId string
The GUID of the Space
stagingAsgs string[]
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
org This property is required. str
The ID of the Org within which to create the space.
allow_ssh bool
Allows SSH to application containers via the CF CLI. Defaults to true.
annotations Mapping[str, str]
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
asgs Sequence[str]
List of running application security groups to apply to applications running within this space. Defaults to empty list.
auditors Sequence[str]

Deprecated: Deprecated

delete_recursive_allowed bool
Allow recursive delete of apps, routes and service instances within the space. Default: true.
developers Sequence[str]

Deprecated: Deprecated

isolation_segment str
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
labels Mapping[str, str]
Add labels as described here. Works only on cloud foundry with api >= v3.63.
managers Sequence[str]

Deprecated: Deprecated

name str
The name of the Space in Cloud Foundry.
quota str
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
space_id str
The GUID of the Space
staging_asgs Sequence[str]
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
org This property is required. String
The ID of the Org within which to create the space.
allowSsh Boolean
Allows SSH to application containers via the CF CLI. Defaults to true.
annotations Map<String>
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
asgs List<String>
List of running application security groups to apply to applications running within this space. Defaults to empty list.
auditors List<String>

Deprecated: Deprecated

deleteRecursiveAllowed Boolean
Allow recursive delete of apps, routes and service instances within the space. Default: true.
developers List<String>

Deprecated: Deprecated

isolationSegment String
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
labels Map<String>
Add labels as described here. Works only on cloud foundry with api >= v3.63.
managers List<String>

Deprecated: Deprecated

name String
The name of the Space in Cloud Foundry.
quota String
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
spaceId String
The GUID of the Space
stagingAsgs List<String>
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.

Outputs

All input properties are implicitly available as output properties. Additionally, the Space resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Space Resource

Get an existing Space resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SpaceState, opts?: CustomResourceOptions): Space
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allow_ssh: Optional[bool] = None,
        annotations: Optional[Mapping[str, str]] = None,
        asgs: Optional[Sequence[str]] = None,
        auditors: Optional[Sequence[str]] = None,
        delete_recursive_allowed: Optional[bool] = None,
        developers: Optional[Sequence[str]] = None,
        isolation_segment: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        managers: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        org: Optional[str] = None,
        quota: Optional[str] = None,
        space_id: Optional[str] = None,
        staging_asgs: Optional[Sequence[str]] = None) -> Space
func GetSpace(ctx *Context, name string, id IDInput, state *SpaceState, opts ...ResourceOption) (*Space, error)
public static Space Get(string name, Input<string> id, SpaceState? state, CustomResourceOptions? opts = null)
public static Space get(String name, Output<String> id, SpaceState state, CustomResourceOptions options)
resources:  _:    type: cloudfoundry:Space    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AllowSsh bool
Allows SSH to application containers via the CF CLI. Defaults to true.
Annotations Dictionary<string, string>
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
Asgs List<string>
List of running application security groups to apply to applications running within this space. Defaults to empty list.
Auditors List<string>

Deprecated: Deprecated

DeleteRecursiveAllowed bool
Allow recursive delete of apps, routes and service instances within the space. Default: true.
Developers List<string>

Deprecated: Deprecated

IsolationSegment string
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
Labels Dictionary<string, string>
Add labels as described here. Works only on cloud foundry with api >= v3.63.
Managers List<string>

Deprecated: Deprecated

Name string
The name of the Space in Cloud Foundry.
Org string
The ID of the Org within which to create the space.
Quota string
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
SpaceId string
The GUID of the Space
StagingAsgs List<string>
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
AllowSsh bool
Allows SSH to application containers via the CF CLI. Defaults to true.
Annotations map[string]string
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
Asgs []string
List of running application security groups to apply to applications running within this space. Defaults to empty list.
Auditors []string

Deprecated: Deprecated

DeleteRecursiveAllowed bool
Allow recursive delete of apps, routes and service instances within the space. Default: true.
Developers []string

Deprecated: Deprecated

IsolationSegment string
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
Labels map[string]string
Add labels as described here. Works only on cloud foundry with api >= v3.63.
Managers []string

Deprecated: Deprecated

Name string
The name of the Space in Cloud Foundry.
Org string
The ID of the Org within which to create the space.
Quota string
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
SpaceId string
The GUID of the Space
StagingAsgs []string
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
allowSsh Boolean
Allows SSH to application containers via the CF CLI. Defaults to true.
annotations Map<String,String>
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
asgs List<String>
List of running application security groups to apply to applications running within this space. Defaults to empty list.
auditors List<String>

Deprecated: Deprecated

deleteRecursiveAllowed Boolean
Allow recursive delete of apps, routes and service instances within the space. Default: true.
developers List<String>

Deprecated: Deprecated

isolationSegment String
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
labels Map<String,String>
Add labels as described here. Works only on cloud foundry with api >= v3.63.
managers List<String>

Deprecated: Deprecated

name String
The name of the Space in Cloud Foundry.
org String
The ID of the Org within which to create the space.
quota String
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
spaceId String
The GUID of the Space
stagingAsgs List<String>
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
allowSsh boolean
Allows SSH to application containers via the CF CLI. Defaults to true.
annotations {[key: string]: string}
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
asgs string[]
List of running application security groups to apply to applications running within this space. Defaults to empty list.
auditors string[]

Deprecated: Deprecated

deleteRecursiveAllowed boolean
Allow recursive delete of apps, routes and service instances within the space. Default: true.
developers string[]

Deprecated: Deprecated

isolationSegment string
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
labels {[key: string]: string}
Add labels as described here. Works only on cloud foundry with api >= v3.63.
managers string[]

Deprecated: Deprecated

name string
The name of the Space in Cloud Foundry.
org string
The ID of the Org within which to create the space.
quota string
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
spaceId string
The GUID of the Space
stagingAsgs string[]
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
allow_ssh bool
Allows SSH to application containers via the CF CLI. Defaults to true.
annotations Mapping[str, str]
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
asgs Sequence[str]
List of running application security groups to apply to applications running within this space. Defaults to empty list.
auditors Sequence[str]

Deprecated: Deprecated

delete_recursive_allowed bool
Allow recursive delete of apps, routes and service instances within the space. Default: true.
developers Sequence[str]

Deprecated: Deprecated

isolation_segment str
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
labels Mapping[str, str]
Add labels as described here. Works only on cloud foundry with api >= v3.63.
managers Sequence[str]

Deprecated: Deprecated

name str
The name of the Space in Cloud Foundry.
org str
The ID of the Org within which to create the space.
quota str
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
space_id str
The GUID of the Space
staging_asgs Sequence[str]
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.
allowSsh Boolean
Allows SSH to application containers via the CF CLI. Defaults to true.
annotations Map<String>
Add annotations as described here. Works only on cloud foundry with api >= v3.63.
asgs List<String>
List of running application security groups to apply to applications running within this space. Defaults to empty list.
auditors List<String>

Deprecated: Deprecated

deleteRecursiveAllowed Boolean
Allow recursive delete of apps, routes and service instances within the space. Default: true.
developers List<String>

Deprecated: Deprecated

isolationSegment String
The ID of the isolation segment to assign to the space. The segment must be entitled to the space's parent organization. If the isolation segment id is unspecified, then Cloud Foundry assigns the space to the org’s default isolation segment if any. Note that existing apps in the space will not run in a newly assigned isolation segment until they are restarted.
labels Map<String>
Add labels as described here. Works only on cloud foundry with api >= v3.63.
managers List<String>

Deprecated: Deprecated

name String
The name of the Space in Cloud Foundry.
org String
The ID of the Org within which to create the space.
quota String
The ID of the Space quota or plan defined for the owning Org. Specifying an empty string requests unassigns any space quota from the space. Defaults to empty string.
spaceId String
The GUID of the Space
stagingAsgs List<String>
List of staging application security groups to apply to applications being staged for this space. Defaults to empty list.

Import

An existing Space can be imported using its guid, e.g.

bash

$ pulumi import cloudfoundry:index/space:Space s1 a-guid
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
cloudfoundry cloudfoundry-community/terraform-provider-cloudfoundry
License
Notes
This Pulumi package is based on the cloudfoundry Terraform Provider.