import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to retrieve information about an existing OAuth2 service account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myOauth2Client = ovh.Me.getAPIOAuth2Client({ * clientId: "5f8969a993ec8b4b", * }); * ``` */ export declare function getAPIOAuth2Client(args: GetAPIOAuth2ClientArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAPIOAuth2Client. */ export interface GetAPIOAuth2ClientArgs { /** * Client ID of an existing OAuth2 service account. */ clientId: string; } /** * A collection of values returned by getAPIOAuth2Client. */ export interface GetAPIOAuth2ClientResult { /** * List of callback urls when configuring the `AUTHORIZATION_CODE` flow. */ readonly callbackUrls: string[]; /** * Client ID of the created service account. */ readonly clientId: string; /** * OAuth2 client description. */ readonly description: string; /** * The OAuth2 flow to use. `AUTHORIZATION_CODE` or `CLIENT_CREDENTIALS` are supported at the moment. */ readonly flow: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Identity URN of the service account to be used inside an IAM policy. */ readonly identity: string; /** * OAuth2 client name. */ readonly name: string; } /** * Use this data source to retrieve information about an existing OAuth2 service account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myOauth2Client = ovh.Me.getAPIOAuth2Client({ * clientId: "5f8969a993ec8b4b", * }); * ``` */ export declare function getAPIOAuth2ClientOutput(args: GetAPIOAuth2ClientOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAPIOAuth2Client. */ export interface GetAPIOAuth2ClientOutputArgs { /** * Client ID of an existing OAuth2 service account. */ clientId: pulumi.Input; }