Aiven v6.28.0 published on Friday, Nov 15, 2024 by Pulumi
aiven.getOrganizationUserGroup
Explore with Pulumi AI
Gets information about an existing user group in an organization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const example = aiven.getOrganizationUserGroup({
name: "Example group",
organizationId: main.id,
});
import pulumi
import pulumi_aiven as aiven
example = aiven.get_organization_user_group(name="Example group",
organization_id=main["id"])
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupOrganizationUserGroup(ctx, &aiven.LookupOrganizationUserGroupArgs{
Name: "Example group",
OrganizationId: main.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var example = Aiven.GetOrganizationUserGroup.Invoke(new()
{
Name = "Example group",
OrganizationId = main.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AivenFunctions;
import com.pulumi.aiven.inputs.GetOrganizationUserGroupArgs;
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 example = AivenFunctions.getOrganizationUserGroup(GetOrganizationUserGroupArgs.builder()
.name("Example group")
.organizationId(main.id())
.build());
}
}
variables:
example:
fn::invoke:
Function: aiven:getOrganizationUserGroup
Arguments:
name: Example group
organizationId: ${main.id}
Using getOrganizationUserGroup
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 getOrganizationUserGroup(args: GetOrganizationUserGroupArgs, opts?: InvokeOptions): Promise<GetOrganizationUserGroupResult>
function getOrganizationUserGroupOutput(args: GetOrganizationUserGroupOutputArgs, opts?: InvokeOptions): Output<GetOrganizationUserGroupResult>
def get_organization_user_group(name: Optional[str] = None,
organization_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrganizationUserGroupResult
def get_organization_user_group_output(name: Optional[pulumi.Input[str]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationUserGroupResult]
func LookupOrganizationUserGroup(ctx *Context, args *LookupOrganizationUserGroupArgs, opts ...InvokeOption) (*LookupOrganizationUserGroupResult, error)
func LookupOrganizationUserGroupOutput(ctx *Context, args *LookupOrganizationUserGroupOutputArgs, opts ...InvokeOption) LookupOrganizationUserGroupResultOutput
> Note: This function is named LookupOrganizationUserGroup
in the Go SDK.
public static class GetOrganizationUserGroup
{
public static Task<GetOrganizationUserGroupResult> InvokeAsync(GetOrganizationUserGroupArgs args, InvokeOptions? opts = null)
public static Output<GetOrganizationUserGroupResult> Invoke(GetOrganizationUserGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOrganizationUserGroupResult> getOrganizationUserGroup(GetOrganizationUserGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aiven:index/getOrganizationUserGroup:getOrganizationUserGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the user group. Changing this property forces recreation of the resource.
- Organization
Id string - The ID of the organization. Changing this property forces recreation of the resource.
- Name string
- The name of the user group. Changing this property forces recreation of the resource.
- Organization
Id string - The ID of the organization. Changing this property forces recreation of the resource.
- name String
- The name of the user group. Changing this property forces recreation of the resource.
- organization
Id String - The ID of the organization. Changing this property forces recreation of the resource.
- name string
- The name of the user group. Changing this property forces recreation of the resource.
- organization
Id string - The ID of the organization. Changing this property forces recreation of the resource.
- name str
- The name of the user group. Changing this property forces recreation of the resource.
- organization_
id str - The ID of the organization. Changing this property forces recreation of the resource.
- name String
- The name of the user group. Changing this property forces recreation of the resource.
- organization
Id String - The ID of the organization. Changing this property forces recreation of the resource.
getOrganizationUserGroup Result
The following output properties are available:
- Create
Time string - Time of creation.
- Description string
- The description of the user group. Changing this property forces recreation of the resource.
- Group
Id string - The ID of the user group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the user group. Changing this property forces recreation of the resource.
- Organization
Id string - The ID of the organization. Changing this property forces recreation of the resource.
- Update
Time string - Time of last update.
- Create
Time string - Time of creation.
- Description string
- The description of the user group. Changing this property forces recreation of the resource.
- Group
Id string - The ID of the user group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the user group. Changing this property forces recreation of the resource.
- Organization
Id string - The ID of the organization. Changing this property forces recreation of the resource.
- Update
Time string - Time of last update.
- create
Time String - Time of creation.
- description String
- The description of the user group. Changing this property forces recreation of the resource.
- group
Id String - The ID of the user group.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the user group. Changing this property forces recreation of the resource.
- organization
Id String - The ID of the organization. Changing this property forces recreation of the resource.
- update
Time String - Time of last update.
- create
Time string - Time of creation.
- description string
- The description of the user group. Changing this property forces recreation of the resource.
- group
Id string - The ID of the user group.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the user group. Changing this property forces recreation of the resource.
- organization
Id string - The ID of the organization. Changing this property forces recreation of the resource.
- update
Time string - Time of last update.
- create_
time str - Time of creation.
- description str
- The description of the user group. Changing this property forces recreation of the resource.
- group_
id str - The ID of the user group.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the user group. Changing this property forces recreation of the resource.
- organization_
id str - The ID of the organization. Changing this property forces recreation of the resource.
- update_
time str - Time of last update.
- create
Time String - Time of creation.
- description String
- The description of the user group. Changing this property forces recreation of the resource.
- group
Id String - The ID of the user group.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the user group. Changing this property forces recreation of the resource.
- organization
Id String - The ID of the organization. Changing this property forces recreation of the resource.
- update
Time String - Time of last update.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.