-
Notifications
You must be signed in to change notification settings - Fork 8
/
getUser.go
65 lines (60 loc) · 2.29 KB
/
getUser.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package identity
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Use this data source to get the ID of an OpenStack user.
func LookupUser(ctx *pulumi.Context, args *LookupUserArgs, opts ...pulumi.InvokeOption) (*LookupUserResult, error) {
var rv LookupUserResult
err := ctx.Invoke("openstack:identity/getUser:getUser", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getUser.
type LookupUserArgs struct {
// The domain this user belongs to.
DomainId *string `pulumi:"domainId"`
// Whether the user is enabled or disabled. Valid
// values are `true` and `false`.
Enabled *bool `pulumi:"enabled"`
// The identity provider ID of the user.
IdpId *string `pulumi:"idpId"`
// The name of the user.
Name *string `pulumi:"name"`
// Query for expired passwords. See the [OpenStack API docs](https://developer.openstack.org/api-ref/identity/v3/#list-users) for more information on the query format.
PasswordExpiresAt *string `pulumi:"passwordExpiresAt"`
// The protocol ID of the user.
ProtocolId *string `pulumi:"protocolId"`
// The region the user is located in.
Region *string `pulumi:"region"`
// The unique ID of the user.
UniqueId *string `pulumi:"uniqueId"`
}
// A collection of values returned by getUser.
type LookupUserResult struct {
// See Argument Reference above.
DefaultProjectId string `pulumi:"defaultProjectId"`
// A description of the user.
Description string `pulumi:"description"`
// See Argument Reference above.
DomainId string `pulumi:"domainId"`
// See Argument Reference above.
Enabled *bool `pulumi:"enabled"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// See Argument Reference above.
IdpId *string `pulumi:"idpId"`
// See Argument Reference above.
Name *string `pulumi:"name"`
// See Argument Reference above.
PasswordExpiresAt *string `pulumi:"passwordExpiresAt"`
// See Argument Reference above.
ProtocolId *string `pulumi:"protocolId"`
// The region the user is located in.
Region string `pulumi:"region"`
// See Argument Reference above.
UniqueId *string `pulumi:"uniqueId"`
}