1. Packages
  2. Planetscale Provider
  3. API Docs
  4. getOauthApplications
planetscale 0.4.1 published on Tuesday, Mar 11, 2025 by planetscale

planetscale.getOauthApplications

Explore with Pulumi AI

A list of PlanetScale OAuth applications. (requires feature flag)

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";

const example = planetscale.getOauthApplications({
    organization: data.planetscale_organization.example.name,
});
export const oauthApps = example;
Copy
import pulumi
import pulumi_planetscale as planetscale

example = planetscale.get_oauth_applications(organization=data["planetscale_organization"]["example"]["name"])
pulumi.export("oauthApps", example)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/planetscale/planetscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := planetscale.GetOauthApplications(ctx, &planetscale.GetOauthApplicationsArgs{
			Organization: data.Planetscale_organization.Example.Name,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("oauthApps", example)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Planetscale = Pulumi.Planetscale;

return await Deployment.RunAsync(() => 
{
    var example = Planetscale.GetOauthApplications.Invoke(new()
    {
        Organization = data.Planetscale_organization.Example.Name,
    });

    return new Dictionary<string, object?>
    {
        ["oauthApps"] = example,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.planetscale.PlanetscaleFunctions;
import com.pulumi.planetscale.inputs.GetOauthApplicationsArgs;
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 = PlanetscaleFunctions.getOauthApplications(GetOauthApplicationsArgs.builder()
            .organization(data.planetscale_organization().example().name())
            .build());

        ctx.export("oauthApps", example.applyValue(getOauthApplicationsResult -> getOauthApplicationsResult));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: planetscale:getOauthApplications
      arguments:
        organization: ${data.planetscale_organization.example.name}
outputs:
  oauthApps: ${example}
Copy

Using getOauthApplications

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 getOauthApplications(args: GetOauthApplicationsArgs, opts?: InvokeOptions): Promise<GetOauthApplicationsResult>
function getOauthApplicationsOutput(args: GetOauthApplicationsOutputArgs, opts?: InvokeOptions): Output<GetOauthApplicationsResult>
Copy
def get_oauth_applications(organization: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetOauthApplicationsResult
def get_oauth_applications_output(organization: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetOauthApplicationsResult]
Copy
func GetOauthApplications(ctx *Context, args *GetOauthApplicationsArgs, opts ...InvokeOption) (*GetOauthApplicationsResult, error)
func GetOauthApplicationsOutput(ctx *Context, args *GetOauthApplicationsOutputArgs, opts ...InvokeOption) GetOauthApplicationsResultOutput
Copy

> Note: This function is named GetOauthApplications in the Go SDK.

public static class GetOauthApplications 
{
    public static Task<GetOauthApplicationsResult> InvokeAsync(GetOauthApplicationsArgs args, InvokeOptions? opts = null)
    public static Output<GetOauthApplicationsResult> Invoke(GetOauthApplicationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOauthApplicationsResult> getOauthApplications(GetOauthApplicationsArgs args, InvokeOptions options)
public static Output<GetOauthApplicationsResult> getOauthApplications(GetOauthApplicationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: planetscale:index/getOauthApplications:getOauthApplications
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Organization This property is required. string
Organization This property is required. string
organization This property is required. String
organization This property is required. string
organization This property is required. str
organization This property is required. String

getOauthApplications Result

The following output properties are available:

Applications List<GetOauthApplicationsApplication>
Id string
The provider-assigned unique ID for this managed resource.
Organization string
Applications []GetOauthApplicationsApplication
Id string
The provider-assigned unique ID for this managed resource.
Organization string
applications List<GetOauthApplicationsApplication>
id String
The provider-assigned unique ID for this managed resource.
organization String
applications GetOauthApplicationsApplication[]
id string
The provider-assigned unique ID for this managed resource.
organization string
applications Sequence[GetOauthApplicationsApplication]
id str
The provider-assigned unique ID for this managed resource.
organization str
applications List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
organization String

Supporting Types

GetOauthApplicationsApplication

Avatar This property is required. string
The image source for the OAuth application's avatar.
ClientId This property is required. string
The OAuth application's unique client id.
CreatedAt This property is required. string
When the OAuth application was created.
Domain This property is required. string
The domain of the OAuth application. Used for verification of a valid redirect uri.
Id This property is required. string
The ID of the OAuth application.
Name This property is required. string
The name of the OAuth application.
RedirectUri This property is required. string
The redirect URI of the OAuth application.
Scopes This property is required. List<string>
The scopes that the OAuth application requires on a user's accout.
Tokens This property is required. double
The number of tokens issued by the OAuth application.
UpdatedAt This property is required. string
When the OAuth application was last updated.
Avatar This property is required. string
The image source for the OAuth application's avatar.
ClientId This property is required. string
The OAuth application's unique client id.
CreatedAt This property is required. string
When the OAuth application was created.
Domain This property is required. string
The domain of the OAuth application. Used for verification of a valid redirect uri.
Id This property is required. string
The ID of the OAuth application.
Name This property is required. string
The name of the OAuth application.
RedirectUri This property is required. string
The redirect URI of the OAuth application.
Scopes This property is required. []string
The scopes that the OAuth application requires on a user's accout.
Tokens This property is required. float64
The number of tokens issued by the OAuth application.
UpdatedAt This property is required. string
When the OAuth application was last updated.
avatar This property is required. String
The image source for the OAuth application's avatar.
clientId This property is required. String
The OAuth application's unique client id.
createdAt This property is required. String
When the OAuth application was created.
domain This property is required. String
The domain of the OAuth application. Used for verification of a valid redirect uri.
id This property is required. String
The ID of the OAuth application.
name This property is required. String
The name of the OAuth application.
redirectUri This property is required. String
The redirect URI of the OAuth application.
scopes This property is required. List<String>
The scopes that the OAuth application requires on a user's accout.
tokens This property is required. Double
The number of tokens issued by the OAuth application.
updatedAt This property is required. String
When the OAuth application was last updated.
avatar This property is required. string
The image source for the OAuth application's avatar.
clientId This property is required. string
The OAuth application's unique client id.
createdAt This property is required. string
When the OAuth application was created.
domain This property is required. string
The domain of the OAuth application. Used for verification of a valid redirect uri.
id This property is required. string
The ID of the OAuth application.
name This property is required. string
The name of the OAuth application.
redirectUri This property is required. string
The redirect URI of the OAuth application.
scopes This property is required. string[]
The scopes that the OAuth application requires on a user's accout.
tokens This property is required. number
The number of tokens issued by the OAuth application.
updatedAt This property is required. string
When the OAuth application was last updated.
avatar This property is required. str
The image source for the OAuth application's avatar.
client_id This property is required. str
The OAuth application's unique client id.
created_at This property is required. str
When the OAuth application was created.
domain This property is required. str
The domain of the OAuth application. Used for verification of a valid redirect uri.
id This property is required. str
The ID of the OAuth application.
name This property is required. str
The name of the OAuth application.
redirect_uri This property is required. str
The redirect URI of the OAuth application.
scopes This property is required. Sequence[str]
The scopes that the OAuth application requires on a user's accout.
tokens This property is required. float
The number of tokens issued by the OAuth application.
updated_at This property is required. str
When the OAuth application was last updated.
avatar This property is required. String
The image source for the OAuth application's avatar.
clientId This property is required. String
The OAuth application's unique client id.
createdAt This property is required. String
When the OAuth application was created.
domain This property is required. String
The domain of the OAuth application. Used for verification of a valid redirect uri.
id This property is required. String
The ID of the OAuth application.
name This property is required. String
The name of the OAuth application.
redirectUri This property is required. String
The redirect URI of the OAuth application.
scopes This property is required. List<String>
The scopes that the OAuth application requires on a user's accout.
tokens This property is required. Number
The number of tokens issued by the OAuth application.
updatedAt This property is required. String
When the OAuth application was last updated.

Package Details

Repository
planetscale planetscale/terraform-provider-planetscale
License
Notes
This Pulumi package is based on the planetscale Terraform Provider.