Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry
Gets information on a Cloud Foundry space role with a given role ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
const myRole = cloudfoundry.getSpaceRole({
id: "4c6849f2-6407-4385-a556-0840369f336b",
});
export const roleObject = myRole;
import pulumi
import pulumi_cloudfoundry as cloudfoundry
my_role = cloudfoundry.get_space_role(id="4c6849f2-6407-4385-a556-0840369f336b")
pulumi.export("roleObject", my_role)
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 {
myRole, err := cloudfoundry.LookupSpaceRole(ctx, &cloudfoundry.LookupSpaceRoleArgs{
Id: "4c6849f2-6407-4385-a556-0840369f336b",
}, nil)
if err != nil {
return err
}
ctx.Export("roleObject", myRole)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudfoundry = Pulumi.Cloudfoundry;
return await Deployment.RunAsync(() =>
{
var myRole = Cloudfoundry.GetSpaceRole.Invoke(new()
{
Id = "4c6849f2-6407-4385-a556-0840369f336b",
});
return new Dictionary<string, object?>
{
["roleObject"] = myRole,
};
});
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.GetSpaceRoleArgs;
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 myRole = CloudfoundryFunctions.getSpaceRole(GetSpaceRoleArgs.builder()
.id("4c6849f2-6407-4385-a556-0840369f336b")
.build());
ctx.export("roleObject", myRole);
}
}
variables:
myRole:
fn::invoke:
function: cloudfoundry:getSpaceRole
arguments:
id: 4c6849f2-6407-4385-a556-0840369f336b
outputs:
roleObject: ${myRole}
Example coming soon!
Using getSpaceRole
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 getSpaceRole(args: GetSpaceRoleArgs, opts?: InvokeOptions): Promise<GetSpaceRoleResult>
function getSpaceRoleOutput(args: GetSpaceRoleOutputArgs, opts?: InvokeOutputOptions): Output<GetSpaceRoleResult>def get_space_role(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSpaceRoleResult
def get_space_role_output(id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetSpaceRoleResult]func LookupSpaceRole(ctx *Context, args *LookupSpaceRoleArgs, opts ...InvokeOption) (*LookupSpaceRoleResult, error)
func LookupSpaceRoleOutput(ctx *Context, args *LookupSpaceRoleOutputArgs, opts ...InvokeOption) LookupSpaceRoleResultOutput> Note: This function is named LookupSpaceRole in the Go SDK.
public static class GetSpaceRole
{
public static Task<GetSpaceRoleResult> InvokeAsync(GetSpaceRoleArgs args, InvokeOptions? opts = null)
public static Output<GetSpaceRoleResult> Invoke(GetSpaceRoleInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetSpaceRoleResult> Invoke(GetSpaceRoleInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetSpaceRoleResult> getSpaceRole(GetSpaceRoleArgs args, InvokeOptions options)
public static Output<GetSpaceRoleResult> getSpaceRole(GetSpaceRoleArgs args, InvokeOptions options)
public static Output<GetSpaceRoleResult> getSpaceRole(GetSpaceRoleArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudfoundry:index/getSpaceRole:getSpaceRole
arguments:
# arguments dictionarydata "cloudfoundry_get_space_role" "name" {
# arguments
}The following arguments are supported:
- Id string
- The guid for the role
- Id string
- The guid for the role
- id string
- The guid for the role
- id String
- The guid for the role
- id string
- The guid for the role
- id str
- The guid for the role
- id String
- The guid for the role
getSpaceRole Result
The following output properties are available:
- Created
At string - The date and time when the resource was created in RFC3339 format.
- Id string
- The guid for the role
- Space string
- The guid of the space the role is assigned to
- Type string
- Role type; see Valid role types
- Updated
At string - The date and time when the resource was updated in RFC3339 format.
- User string
- The guid of the cloudfoundry user the role is assigned to
- Created
At string - The date and time when the resource was created in RFC3339 format.
- Id string
- The guid for the role
- Space string
- The guid of the space the role is assigned to
- Type string
- Role type; see Valid role types
- Updated
At string - The date and time when the resource was updated in RFC3339 format.
- User string
- The guid of the cloudfoundry user the role is assigned to
- created_
at string - The date and time when the resource was created in RFC3339 format.
- id string
- The guid for the role
- space string
- The guid of the space the role is assigned to
- type string
- Role type; see Valid role types
- updated_
at string - The date and time when the resource was updated in RFC3339 format.
- user string
- The guid of the cloudfoundry user the role is assigned to
- created
At String - The date and time when the resource was created in RFC3339 format.
- id String
- The guid for the role
- space String
- The guid of the space the role is assigned to
- type String
- Role type; see Valid role types
- updated
At String - The date and time when the resource was updated in RFC3339 format.
- user String
- The guid of the cloudfoundry user the role is assigned to
- created
At string - The date and time when the resource was created in RFC3339 format.
- id string
- The guid for the role
- space string
- The guid of the space the role is assigned to
- type string
- Role type; see Valid role types
- updated
At string - The date and time when the resource was updated in RFC3339 format.
- user string
- The guid of the cloudfoundry user the role is assigned to
- created_
at str - The date and time when the resource was created in RFC3339 format.
- id str
- The guid for the role
- space str
- The guid of the space the role is assigned to
- type str
- Role type; see Valid role types
- updated_
at str - The date and time when the resource was updated in RFC3339 format.
- user str
- The guid of the cloudfoundry user the role is assigned to
- created
At String - The date and time when the resource was created in RFC3339 format.
- id String
- The guid for the role
- space String
- The guid of the space the role is assigned to
- type String
- Role type; see Valid role types
- updated
At String - The date and time when the resource was updated in RFC3339 format.
- user String
- The guid of the cloudfoundry user the role is assigned to
Package Details
- Repository
- cloudfoundry cloudfoundry/terraform-provider-cloudfoundry
- License
- Notes
- This Pulumi package is based on the
cloudfoundryTerraform Provider.
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
published on Friday, Nov 13, 2026 by cloudfoundry