Viewing docs for cloudfoundry 1.18.0
published on Monday, Nov 2, 2026 by cloudfoundry
published on Monday, Nov 2, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.18.0
published on Monday, Nov 2, 2026 by cloudfoundry
published on Monday, Nov 2, 2026 by cloudfoundry
Retrieves all users with a role in the specified space or organization
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudfoundry from "@pulumi/cloudfoundry";
const myUsers = cloudfoundry.getUsers({
org: "784b4cd0-4771-4e4d-9052-a07e178bae56",
});
export const users = myUsers;
import pulumi
import pulumi_cloudfoundry as cloudfoundry
my_users = cloudfoundry.get_users(org="784b4cd0-4771-4e4d-9052-a07e178bae56")
pulumi.export("users", my_users)
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 {
myUsers, err := cloudfoundry.GetUsers(ctx, &cloudfoundry.GetUsersArgs{
Org: pulumi.StringRef("784b4cd0-4771-4e4d-9052-a07e178bae56"),
}, nil)
if err != nil {
return err
}
ctx.Export("users", myUsers)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudfoundry = Pulumi.Cloudfoundry;
return await Deployment.RunAsync(() =>
{
var myUsers = Cloudfoundry.GetUsers.Invoke(new()
{
Org = "784b4cd0-4771-4e4d-9052-a07e178bae56",
});
return new Dictionary<string, object?>
{
["users"] = myUsers,
};
});
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.GetUsersArgs;
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 myUsers = CloudfoundryFunctions.getUsers(GetUsersArgs.builder()
.org("784b4cd0-4771-4e4d-9052-a07e178bae56")
.build());
ctx.export("users", myUsers);
}
}
variables:
myUsers:
fn::invoke:
function: cloudfoundry:getUsers
arguments:
org: 784b4cd0-4771-4e4d-9052-a07e178bae56
outputs:
users: ${myUsers}
Example coming soon!
Using getUsers
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 getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(args: GetUsersOutputArgs, opts?: InvokeOutputOptions): Output<GetUsersResult>def get_users(org: Optional[str] = None,
space: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(org: pulumi.Input[Optional[str]] = None,
space: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetUsersResult]func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, args *GetUsersOutputArgs, opts ...InvokeOption) GetUsersResultOutput> Note: This function is named GetUsers in the Go SDK.
public static class GetUsers
{
public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudfoundry:index/getUsers:getUsers
arguments:
# arguments dictionarydata "cloudfoundry_get_users" "name" {
# arguments
}The following arguments are supported:
getUsers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
List<Get
Users User> - The list of users containing a role in the specified space or organization.
- Org string
- The guid of the organization
- Space string
- The guid of the space
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
[]Get
Users User - The list of users containing a role in the specified space or organization.
- Org string
- The guid of the organization
- Space string
- The guid of the space
- id string
- The provider-assigned unique ID for this managed resource.
- users list(object)
- The list of users containing a role in the specified space or organization.
- org string
- The guid of the organization
- space string
- The guid of the space
- id String
- The provider-assigned unique ID for this managed resource.
- users
List<Get
Users User> - The list of users containing a role in the specified space or organization.
- org String
- The guid of the organization
- space String
- The guid of the space
- id string
- The provider-assigned unique ID for this managed resource.
- users
Get
Users User[] - The list of users containing a role in the specified space or organization.
- org string
- The guid of the organization
- space string
- The guid of the space
- id str
- The provider-assigned unique ID for this managed resource.
- users
Sequence[Get
Users User] - The list of users containing a role in the specified space or organization.
- org str
- The guid of the organization
- space str
- The guid of the space
- id String
- The provider-assigned unique ID for this managed resource.
- users List<Property Map>
- The list of users containing a role in the specified space or organization.
- org String
- The guid of the organization
- space String
- The guid of the space
Supporting Types
GetUsersUser
- Annotations Dictionary<string, 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.
- Labels Dictionary<string, string>
- The labels associated with Cloud Foundry resources.
- Origin string
- The identity provider for the UAA user; will be null for UAA clients
- Presentation
Name string - The name displayed for the user; for UAA users, this is the same as the username. For UAA clients, this is the UAA client ID
- Updated
At string - The date and time when the resource was updated in RFC3339 format.
- Username string
- The name registered in UAA; will be null for UAA clients and non-UAA users
- Annotations map[string]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.
- Labels map[string]string
- The labels associated with Cloud Foundry resources.
- Origin string
- The identity provider for the UAA user; will be null for UAA clients
- Presentation
Name string - The name displayed for the user; for UAA users, this is the same as the username. For UAA clients, this is the UAA client ID
- Updated
At string - The date and time when the resource was updated in RFC3339 format.
- Username string
- The name registered in UAA; will be null for UAA clients and non-UAA users
- 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.
- labels map(string)
- The labels associated with Cloud Foundry resources.
- origin string
- The identity provider for the UAA user; will be null for UAA clients
- presentation_
name string - The name displayed for the user; for UAA users, this is the same as the username. For UAA clients, this is the UAA client ID
- updated_
at string - The date and time when the resource was updated in RFC3339 format.
- username string
- The name registered in UAA; will be null for UAA clients and non-UAA users
- annotations Map<String,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.
- labels Map<String,String>
- The labels associated with Cloud Foundry resources.
- origin String
- The identity provider for the UAA user; will be null for UAA clients
- presentation
Name String - The name displayed for the user; for UAA users, this is the same as the username. For UAA clients, this is the UAA client ID
- updated
At String - The date and time when the resource was updated in RFC3339 format.
- username String
- The name registered in UAA; will be null for UAA clients and non-UAA users
- annotations {[key: string]: 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.
- labels {[key: string]: string}
- The labels associated with Cloud Foundry resources.
- origin string
- The identity provider for the UAA user; will be null for UAA clients
- presentation
Name string - The name displayed for the user; for UAA users, this is the same as the username. For UAA clients, this is the UAA client ID
- updated
At string - The date and time when the resource was updated in RFC3339 format.
- username string
- The name registered in UAA; will be null for UAA clients and non-UAA users
- 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.
- labels Mapping[str, str]
- The labels associated with Cloud Foundry resources.
- origin str
- The identity provider for the UAA user; will be null for UAA clients
- presentation_
name str - The name displayed for the user; for UAA users, this is the same as the username. For UAA clients, this is the UAA client ID
- updated_
at str - The date and time when the resource was updated in RFC3339 format.
- username str
- The name registered in UAA; will be null for UAA clients and non-UAA users
- 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.
- labels Map<String>
- The labels associated with Cloud Foundry resources.
- origin String
- The identity provider for the UAA user; will be null for UAA clients
- presentation
Name String - The name displayed for the user; for UAA users, this is the same as the username. For UAA clients, this is the UAA client ID
- updated
At String - The date and time when the resource was updated in RFC3339 format.
- username String
- The name registered in UAA; will be null for UAA clients and non-UAA users
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.18.0
published on Monday, Nov 2, 2026 by cloudfoundry
published on Monday, Nov 2, 2026 by cloudfoundry