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 org role with a given role ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
const myRole = cloudfoundry.getOrgRole({
id: "233959b9-c1fe-428d-8b53-5c903e5bd66b",
});
export const roleObject = myRoleCloudfoundrySpaceRole;
import pulumi
import pulumi_cloudfoundry as cloudfoundry
my_role = cloudfoundry.get_org_role(id="233959b9-c1fe-428d-8b53-5c903e5bd66b")
pulumi.export("roleObject", my_role_cloudfoundry_space_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 {
_, err := cloudfoundry.LookupOrgRole(ctx, &cloudfoundry.LookupOrgRoleArgs{
Id: "233959b9-c1fe-428d-8b53-5c903e5bd66b",
}, nil)
if err != nil {
return err
}
ctx.Export("roleObject", myRoleCloudfoundrySpaceRole)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudfoundry = Pulumi.Cloudfoundry;
return await Deployment.RunAsync(() =>
{
var myRole = Cloudfoundry.GetOrgRole.Invoke(new()
{
Id = "233959b9-c1fe-428d-8b53-5c903e5bd66b",
});
return new Dictionary<string, object?>
{
["roleObject"] = myRoleCloudfoundrySpaceRole,
};
});
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.GetOrgRoleArgs;
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.getOrgRole(GetOrgRoleArgs.builder()
.id("233959b9-c1fe-428d-8b53-5c903e5bd66b")
.build());
ctx.export("roleObject", myRoleCloudfoundrySpaceRole);
}
}
variables:
myRole:
fn::invoke:
function: cloudfoundry:getOrgRole
arguments:
id: 233959b9-c1fe-428d-8b53-5c903e5bd66b
outputs:
roleObject: ${myRoleCloudfoundrySpaceRole}
Example coming soon!
Using getOrgRole
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 getOrgRole(args: GetOrgRoleArgs, opts?: InvokeOptions): Promise<GetOrgRoleResult>
function getOrgRoleOutput(args: GetOrgRoleOutputArgs, opts?: InvokeOutputOptions): Output<GetOrgRoleResult>def get_org_role(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrgRoleResult
def get_org_role_output(id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetOrgRoleResult]func LookupOrgRole(ctx *Context, args *LookupOrgRoleArgs, opts ...InvokeOption) (*LookupOrgRoleResult, error)
func LookupOrgRoleOutput(ctx *Context, args *LookupOrgRoleOutputArgs, opts ...InvokeOption) LookupOrgRoleResultOutput> Note: This function is named LookupOrgRole in the Go SDK.
public static class GetOrgRole
{
public static Task<GetOrgRoleResult> InvokeAsync(GetOrgRoleArgs args, InvokeOptions? opts = null)
public static Output<GetOrgRoleResult> Invoke(GetOrgRoleInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetOrgRoleResult> Invoke(GetOrgRoleInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetOrgRoleResult> getOrgRole(GetOrgRoleArgs args, InvokeOptions options)
public static Output<GetOrgRoleResult> getOrgRole(GetOrgRoleArgs args, InvokeOptions options)
public static Output<GetOrgRoleResult> getOrgRole(GetOrgRoleArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudfoundry:index/getOrgRole:getOrgRole
arguments:
# arguments dictionarydata "cloudfoundry_get_org_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
getOrgRole 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
- Org string
- The guid of the organization 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
- Org string
- The guid of the organization 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
- org string
- The guid of the organization 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
- org String
- The guid of the organization 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
- org string
- The guid of the organization 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
- org str
- The guid of the organization 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
- org String
- The guid of the organization 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