planetscale 0.4.1 published on Tuesday, Mar 11, 2025 by planetscale
planetscale.getOauthApplications
Explore with Pulumi AI
planetscale 0.4.1 published on Tuesday, Mar 11, 2025 by planetscale
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;
import pulumi
import pulumi_planetscale as planetscale
example = planetscale.get_oauth_applications(organization=data["planetscale_organization"]["example"]["name"])
pulumi.export("oauthApps", example)
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
})
}
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,
};
});
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));
}
}
variables:
example:
fn::invoke:
function: planetscale:getOauthApplications
arguments:
organization: ${data.planetscale_organization.example.name}
outputs:
oauthApps: ${example}
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>
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]
func GetOauthApplications(ctx *Context, args *GetOauthApplicationsArgs, opts ...InvokeOption) (*GetOauthApplicationsResult, error)
func GetOauthApplicationsOutput(ctx *Context, args *GetOauthApplicationsOutputArgs, opts ...InvokeOption) GetOauthApplicationsResultOutput
> 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)
}
public static CompletableFuture<GetOauthApplicationsResult> getOauthApplications(GetOauthApplicationsArgs args, InvokeOptions options)
public static Output<GetOauthApplicationsResult> getOauthApplications(GetOauthApplicationsArgs args, InvokeOptions options)
fn::invoke:
function: planetscale:index/getOauthApplications:getOauthApplications
arguments:
# arguments dictionary
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<Get
Oauth Applications Application> - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- Applications
[]Get
Oauth Applications Application - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- applications
List<Get
Oauth Applications Application> - id String
- The provider-assigned unique ID for this managed resource.
- organization String
- applications
Get
Oauth Applications Application[] - id string
- The provider-assigned unique ID for this managed resource.
- organization string
- applications
Sequence[Get
Oauth Applications Application] - 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.
- Client
Id This property is required. string - The OAuth application's unique client id.
- Created
At 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.
- Redirect
Uri 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.
- Updated
At 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.
- Client
Id This property is required. string - The OAuth application's unique client id.
- Created
At 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.
- Redirect
Uri 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.
- Updated
At 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.
- client
Id This property is required. String - The OAuth application's unique client id.
- created
At 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.
- redirect
Uri 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.
- updated
At 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.
- client
Id This property is required. string - The OAuth application's unique client id.
- created
At 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.
- redirect
Uri 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.
- updated
At 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.
- client
Id This property is required. String - The OAuth application's unique client id.
- created
At 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.
- redirect
Uri 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.
- updated
At 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.
planetscale 0.4.1 published on Tuesday, Mar 11, 2025 by planetscale