Datadog v4.34.0 published on Friday, Oct 4, 2024 by Pulumi
datadog.getServiceAccount
Explore with Pulumi AI
Use this data source to retrieve information about an existing Datadog service account.
Using getServiceAccount
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 getServiceAccount(args: GetServiceAccountArgs, opts?: InvokeOptions): Promise<GetServiceAccountResult>
function getServiceAccountOutput(args: GetServiceAccountOutputArgs, opts?: InvokeOptions): Output<GetServiceAccountResult>
def get_service_account(exact_match: Optional[bool] = None,
filter: Optional[str] = None,
filter_status: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceAccountResult
def get_service_account_output(exact_match: Optional[pulumi.Input[bool]] = None,
filter: Optional[pulumi.Input[str]] = None,
filter_status: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceAccountResult]
func LookupServiceAccount(ctx *Context, args *LookupServiceAccountArgs, opts ...InvokeOption) (*LookupServiceAccountResult, error)
func LookupServiceAccountOutput(ctx *Context, args *LookupServiceAccountOutputArgs, opts ...InvokeOption) LookupServiceAccountResultOutput
> Note: This function is named LookupServiceAccount
in the Go SDK.
public static class GetServiceAccount
{
public static Task<GetServiceAccountResult> InvokeAsync(GetServiceAccountArgs args, InvokeOptions? opts = null)
public static Output<GetServiceAccountResult> Invoke(GetServiceAccountInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceAccountResult> getServiceAccount(GetServiceAccountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: datadog:index/getServiceAccount:getServiceAccount
arguments:
# arguments dictionary
The following arguments are supported:
- Exact
Match bool - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - Filter string
- Filter all users and service accounts by name, email, or role.
- Filter
Status string - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
. - Id string
- The service account's ID.
- Exact
Match bool - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - Filter string
- Filter all users and service accounts by name, email, or role.
- Filter
Status string - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
. - Id string
- The service account's ID.
- exact
Match Boolean - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - filter String
- Filter all users and service accounts by name, email, or role.
- filter
Status String - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
. - id String
- The service account's ID.
- exact
Match boolean - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - filter string
- Filter all users and service accounts by name, email, or role.
- filter
Status string - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
. - id string
- The service account's ID.
- exact_
match bool - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - filter str
- Filter all users and service accounts by name, email, or role.
- filter_
status str - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
. - id str
- The service account's ID.
- exact
Match Boolean - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - filter String
- Filter all users and service accounts by name, email, or role.
- filter
Status String - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
. - id String
- The service account's ID.
getServiceAccount Result
The following output properties are available:
- Disabled bool
- Whether the user is disabled.
- Email string
- Email of the user.
- Handle string
- Handle of the user.
- Icon string
- URL of the user's icon.
- Id string
- The service account's ID.
- Name string
- Name of the user.
- Roles List<string>
- Roles assigned to this service account.
- Status string
- Status of the user.
- Title string
- Title of the user.
- Verified bool
- Whether the user is verified.
- Exact
Match bool - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - Filter string
- Filter all users and service accounts by name, email, or role.
- Filter
Status string - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
.
- Disabled bool
- Whether the user is disabled.
- Email string
- Email of the user.
- Handle string
- Handle of the user.
- Icon string
- URL of the user's icon.
- Id string
- The service account's ID.
- Name string
- Name of the user.
- Roles []string
- Roles assigned to this service account.
- Status string
- Status of the user.
- Title string
- Title of the user.
- Verified bool
- Whether the user is verified.
- Exact
Match bool - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - Filter string
- Filter all users and service accounts by name, email, or role.
- Filter
Status string - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
.
- disabled Boolean
- Whether the user is disabled.
- email String
- Email of the user.
- handle String
- Handle of the user.
- icon String
- URL of the user's icon.
- id String
- The service account's ID.
- name String
- Name of the user.
- roles List<String>
- Roles assigned to this service account.
- status String
- Status of the user.
- title String
- Title of the user.
- verified Boolean
- Whether the user is verified.
- exact
Match Boolean - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - filter String
- Filter all users and service accounts by name, email, or role.
- filter
Status String - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
.
- disabled boolean
- Whether the user is disabled.
- email string
- Email of the user.
- handle string
- Handle of the user.
- icon string
- URL of the user's icon.
- id string
- The service account's ID.
- name string
- Name of the user.
- roles string[]
- Roles assigned to this service account.
- status string
- Status of the user.
- title string
- Title of the user.
- verified boolean
- Whether the user is verified.
- exact
Match boolean - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - filter string
- Filter all users and service accounts by name, email, or role.
- filter
Status string - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
.
- disabled bool
- Whether the user is disabled.
- email str
- Email of the user.
- handle str
- Handle of the user.
- icon str
- URL of the user's icon.
- id str
- The service account's ID.
- name str
- Name of the user.
- roles Sequence[str]
- Roles assigned to this service account.
- status str
- Status of the user.
- title str
- Title of the user.
- verified bool
- Whether the user is verified.
- exact_
match bool - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - filter str
- Filter all users and service accounts by name, email, or role.
- filter_
status str - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
.
- disabled Boolean
- Whether the user is disabled.
- email String
- Email of the user.
- handle String
- Handle of the user.
- icon String
- URL of the user's icon.
- id String
- The service account's ID.
- name String
- Name of the user.
- roles List<String>
- Roles assigned to this service account.
- status String
- Status of the user.
- title String
- Title of the user.
- verified Boolean
- Whether the user is verified.
- exact
Match Boolean - When true,
filter
string is exact matched against the user'semail
, followed byname
attribute. - filter String
- Filter all users and service accounts by name, email, or role.
- filter
Status String - Filter on status attribute. Comma separated list, with possible values
Active
,Pending
, andDisabled
.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.