OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.Me.getAPIOAuth2Clients
Explore with Pulumi AI
Use this data source to retrieve information the list of existing OAuth2 service account IDs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const myOauth2Clients = ovh.Me.getAPIOAuth2Client({});
import pulumi
import pulumi_ovh as ovh
my_oauth2_clients = ovh.Me.get_apio_auth2_client()
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/Me"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Me.GetAPIOAuth2Client(ctx, &me.GetAPIOAuth2ClientArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var myOauth2Clients = Ovh.Me.GetAPIOAuth2Client.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Me.MeFunctions;
import com.pulumi.ovh.Me.inputs.GetAPIOAuth2ClientArgs;
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 myOauth2Clients = MeFunctions.getAPIOAuth2Client();
}
}
variables:
myOauth2Clients:
fn::invoke:
Function: ovh:Me:getAPIOAuth2Client
Arguments: {}
Using getAPIOAuth2Clients
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 getAPIOAuth2Clients(opts?: InvokeOptions): Promise<GetAPIOAuth2ClientsResult>
function getAPIOAuth2ClientsOutput(opts?: InvokeOptions): Output<GetAPIOAuth2ClientsResult>
def get_apio_auth2_clients(opts: Optional[InvokeOptions] = None) -> GetAPIOAuth2ClientsResult
def get_apio_auth2_clients_output(opts: Optional[InvokeOptions] = None) -> Output[GetAPIOAuth2ClientsResult]
func GetAPIOAuth2Clients(ctx *Context, opts ...InvokeOption) (*GetAPIOAuth2ClientsResult, error)
func GetAPIOAuth2ClientsOutput(ctx *Context, opts ...InvokeOption) GetAPIOAuth2ClientsResultOutput
> Note: This function is named GetAPIOAuth2Clients
in the Go SDK.
public static class GetAPIOAuth2Clients
{
public static Task<GetAPIOAuth2ClientsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetAPIOAuth2ClientsResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetAPIOAuth2ClientsResult> getAPIOAuth2Clients(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:Me/getAPIOAuth2Clients:getAPIOAuth2Clients
arguments:
# arguments dictionary
getAPIOAuth2Clients Result
The following output properties are available:
- client_
ids Sequence[str] - The list of all the existing client IDs.
- id str
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.