Astra DB v1.0.42 published on Tuesday, Jun 6, 2023 by pulumiverse
astra.getUsers
Explore with Pulumi AI
astra.getUsers
provides a datasource for a list of Astra users. This can be used to select users within your Astra Organization.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Astra = Pulumi.Astra;
return await Deployment.RunAsync(() =>
{
var dev = Astra.GetUsers.Invoke();
});
package main
import (
"github.com/pulumi/pulumi-astra/sdk/go/astra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-astra/sdk/go/astra"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := astra.GetUsers(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.astra.AstraFunctions;
import com.pulumi.astra.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 dev = AstraFunctions.getUsers();
}
}
import pulumi
import pulumi_astra as astra
dev = astra.get_users()
import * as pulumi from "@pulumi/pulumi";
import * as astra from "@pulumi/astra";
const dev = pulumi.output(astra.getUsers());
variables:
dev:
Fn::Invoke:
Function: astra:getUsers
Arguments: {}
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?: InvokeOptions): Output<GetUsersResult>
def get_users(org_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(org_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = 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 CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: astra:index/getUsers:getUsers
arguments:
# arguments dictionary
The following arguments are supported:
- Org
Name string - Organization Name.
- Org
Name string - Organization Name.
- org
Name String - Organization Name.
- org
Name string - Organization Name.
- org_
name str - Organization Name.
- org
Name String - Organization Name.
getUsers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Organization ID.
- Users
List<Pulumiverse.
Astra. Outputs. Get Users User> - The list of Astra users.
- Org
Name string - Organization Name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Organization ID.
- Users
[]Get
Users User - The list of Astra users.
- Org
Name string - Organization Name.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Organization ID.
- users
List<Get
Users User> - The list of Astra users.
- org
Name String - Organization Name.
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - Organization ID.
- users
Get
Users User[] - The list of Astra users.
- org
Name string - Organization Name.
- id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - Organization ID.
- users
Sequence[Get
Users User] - The list of Astra users.
- org_
name str - Organization Name.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Organization ID.
- users List<Property Map>
- The list of Astra users.
- org
Name String - Organization Name.
Supporting Types
GetUsersUser
- Email string
- Roles
List<Pulumiverse.
Astra. Inputs. Get Users User Role> - Status string
- User
Id string
- Email string
- Roles
[]Get
Users User Role - Status string
- User
Id string
- email String
- roles
List<Get
Users User Role> - status String
- user
Id String
- email string
- roles
Get
Users User Role[] - status string
- user
Id string
- email str
- roles
Sequence[Get
Users User Role] - status str
- user_
id str
- email String
- roles List<Property Map>
- status String
- user
Id String
GetUsersUserRole
- Role
Id string
- Role
Id string
- role
Id String
- role
Id string
- role_
id str
- role
Id String
Package Details
- Repository
- astra pulumiverse/pulumi-astra
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
astra
Terraform Provider.