Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Accepted Permissions
OAuth Client Read
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleOauthClient = cloudflare.getOauthClient({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
oauthClientId: "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_oauth_client = cloudflare.get_oauth_client(account_id="023e105f4ecef8ad9ca31a8372d0c353",
oauth_client_id="a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.GetOauthClient(ctx, &cloudflare.LookupOauthClientArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
OauthClientId: "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleOauthClient = Cloudflare.GetOauthClient.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
OauthClientId = "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetOauthClientArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleOauthClient = CloudflareFunctions.getOauthClient(GetOauthClientArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.oauthClientId("a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4")
.build());
}
}
variables:
exampleOauthClient:
fn::invoke:
function: cloudflare:getOauthClient
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
oauthClientId: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_getoauthclient" "exampleOauthClient" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
oauth_client_id = "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4"
}
Using getOauthClient
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 getOauthClient(args: GetOauthClientArgs, opts?: InvokeOptions): Promise<GetOauthClientResult>
function getOauthClientOutput(args: GetOauthClientOutputArgs, opts?: InvokeOptions): Output<GetOauthClientResult>def get_oauth_client(account_id: Optional[str] = None,
oauth_client_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOauthClientResult
def get_oauth_client_output(account_id: pulumi.Input[Optional[str]] = None,
oauth_client_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOauthClientResult]func LookupOauthClient(ctx *Context, args *LookupOauthClientArgs, opts ...InvokeOption) (*LookupOauthClientResult, error)
func LookupOauthClientOutput(ctx *Context, args *LookupOauthClientOutputArgs, opts ...InvokeOption) LookupOauthClientResultOutput> Note: This function is named LookupOauthClient in the Go SDK.
public static class GetOauthClient
{
public static Task<GetOauthClientResult> InvokeAsync(GetOauthClientArgs args, InvokeOptions? opts = null)
public static Output<GetOauthClientResult> Invoke(GetOauthClientInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOauthClientResult> getOauthClient(GetOauthClientArgs args, InvokeOptions options)
public static Output<GetOauthClientResult> getOauthClient(GetOauthClientArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getOauthClient:getOauthClient
arguments:
# arguments dictionarydata "cloudflare_get_oauth_client" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Account identifier tag.
- Oauth
Client stringId - The unique identifier for an OAuth client.
- Account
Id string - Account identifier tag.
- Oauth
Client stringId - The unique identifier for an OAuth client.
- account_
id string - Account identifier tag.
- oauth_
client_ stringid - The unique identifier for an OAuth client.
- account
Id String - Account identifier tag.
- oauth
Client StringId - The unique identifier for an OAuth client.
- account
Id string - Account identifier tag.
- oauth
Client stringId - The unique identifier for an OAuth client.
- account_
id str - Account identifier tag.
- oauth_
client_ strid - The unique identifier for an OAuth client.
- account
Id String - Account identifier tag.
- oauth
Client StringId - The unique identifier for an OAuth client.
getOauthClient Result
The following output properties are available:
- Account
Id string - Account identifier tag.
- Allowed
Cors List<string>Origins - Array of allowed CORS origins.
- Client
Id string - The unique identifier for an OAuth client.
- Client
Name string - Human-readable name of the OAuth client.
- Client
Uri string - URL of the home page of the client.
- Client
Uri GetVerification Oauth Client Client Uri Verification - Client URI domain control verification state.
- Created
At string - Timestamp when the OAuth client was created.
- Grant
Types List<string> - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - Has
Rotated boolSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Logo
Uri string - URL of the client's logo.
- Oauth
Client stringId - The unique identifier for an OAuth client.
- Policy
Uri string - URL that points to a privacy policy document.
- Post
Logout List<string>Redirect Uris - Array of allowed post-logout redirect URIs.
- Promoted
At string - Timestamp when the OAuth client was promoted to public visibility.
- Redirect
Uris List<string> - Array of allowed redirect URIs for the client.
- Response
Types List<string> - Array of OAuth response types the client is allowed to use.
- Scopes List<string>
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - Token
Endpoint stringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- Tos
Uri string - URL that points to a terms of service document.
- Updated
At string - Timestamp when the OAuth client was last updated.
- Visibility string
- Visibility of the OAuth client. Available values: "public", "private".
- Account
Id string - Account identifier tag.
- Allowed
Cors []stringOrigins - Array of allowed CORS origins.
- Client
Id string - The unique identifier for an OAuth client.
- Client
Name string - Human-readable name of the OAuth client.
- Client
Uri string - URL of the home page of the client.
- Client
Uri GetVerification Oauth Client Client Uri Verification - Client URI domain control verification state.
- Created
At string - Timestamp when the OAuth client was created.
- Grant
Types []string - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - Has
Rotated boolSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Logo
Uri string - URL of the client's logo.
- Oauth
Client stringId - The unique identifier for an OAuth client.
- Policy
Uri string - URL that points to a privacy policy document.
- Post
Logout []stringRedirect Uris - Array of allowed post-logout redirect URIs.
- Promoted
At string - Timestamp when the OAuth client was promoted to public visibility.
- Redirect
Uris []string - Array of allowed redirect URIs for the client.
- Response
Types []string - Array of OAuth response types the client is allowed to use.
- Scopes []string
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - Token
Endpoint stringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- Tos
Uri string - URL that points to a terms of service document.
- Updated
At string - Timestamp when the OAuth client was last updated.
- Visibility string
- Visibility of the OAuth client. Available values: "public", "private".
- account_
id string - Account identifier tag.
- allowed_
cors_ list(string)origins - Array of allowed CORS origins.
- client_
id string - The unique identifier for an OAuth client.
- client_
name string - Human-readable name of the OAuth client.
- client_
uri string - URL of the home page of the client.
- client_
uri_ objectverification - Client URI domain control verification state.
- created_
at string - Timestamp when the OAuth client was created.
- grant_
types list(string) - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has_
rotated_ boolsecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id string
- The provider-assigned unique ID for this managed resource.
- logo_
uri string - URL of the client's logo.
- oauth_
client_ stringid - The unique identifier for an OAuth client.
- policy_
uri string - URL that points to a privacy policy document.
- post_
logout_ list(string)redirect_ uris - Array of allowed post-logout redirect URIs.
- promoted_
at string - Timestamp when the OAuth client was promoted to public visibility.
- redirect_
uris list(string) - Array of allowed redirect URIs for the client.
- response_
types list(string) - Array of OAuth response types the client is allowed to use.
- scopes list(string)
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token_
endpoint_ stringauth_ method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos_
uri string - URL that points to a terms of service document.
- updated_
at string - Timestamp when the OAuth client was last updated.
- visibility string
- Visibility of the OAuth client. Available values: "public", "private".
- account
Id String - Account identifier tag.
- allowed
Cors List<String>Origins - Array of allowed CORS origins.
- client
Id String - The unique identifier for an OAuth client.
- client
Name String - Human-readable name of the OAuth client.
- client
Uri String - URL of the home page of the client.
- client
Uri GetVerification Oauth Client Client Uri Verification - Client URI domain control verification state.
- created
At String - Timestamp when the OAuth client was created.
- grant
Types List<String> - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has
Rotated BooleanSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- logo
Uri String - URL of the client's logo.
- oauth
Client StringId - The unique identifier for an OAuth client.
- policy
Uri String - URL that points to a privacy policy document.
- post
Logout List<String>Redirect Uris - Array of allowed post-logout redirect URIs.
- promoted
At String - Timestamp when the OAuth client was promoted to public visibility.
- redirect
Uris List<String> - Array of allowed redirect URIs for the client.
- response
Types List<String> - Array of OAuth response types the client is allowed to use.
- scopes List<String>
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token
Endpoint StringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos
Uri String - URL that points to a terms of service document.
- updated
At String - Timestamp when the OAuth client was last updated.
- visibility String
- Visibility of the OAuth client. Available values: "public", "private".
- account
Id string - Account identifier tag.
- allowed
Cors string[]Origins - Array of allowed CORS origins.
- client
Id string - The unique identifier for an OAuth client.
- client
Name string - Human-readable name of the OAuth client.
- client
Uri string - URL of the home page of the client.
- client
Uri GetVerification Oauth Client Client Uri Verification - Client URI domain control verification state.
- created
At string - Timestamp when the OAuth client was created.
- grant
Types string[] - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has
Rotated booleanSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id string
- The provider-assigned unique ID for this managed resource.
- logo
Uri string - URL of the client's logo.
- oauth
Client stringId - The unique identifier for an OAuth client.
- policy
Uri string - URL that points to a privacy policy document.
- post
Logout string[]Redirect Uris - Array of allowed post-logout redirect URIs.
- promoted
At string - Timestamp when the OAuth client was promoted to public visibility.
- redirect
Uris string[] - Array of allowed redirect URIs for the client.
- response
Types string[] - Array of OAuth response types the client is allowed to use.
- scopes string[]
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token
Endpoint stringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos
Uri string - URL that points to a terms of service document.
- updated
At string - Timestamp when the OAuth client was last updated.
- visibility string
- Visibility of the OAuth client. Available values: "public", "private".
- account_
id str - Account identifier tag.
- allowed_
cors_ Sequence[str]origins - Array of allowed CORS origins.
- client_
id str - The unique identifier for an OAuth client.
- client_
name str - Human-readable name of the OAuth client.
- client_
uri str - URL of the home page of the client.
- client_
uri_ Getverification Oauth Client Client Uri Verification - Client URI domain control verification state.
- created_
at str - Timestamp when the OAuth client was created.
- grant_
types Sequence[str] - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has_
rotated_ boolsecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id str
- The provider-assigned unique ID for this managed resource.
- logo_
uri str - URL of the client's logo.
- oauth_
client_ strid - The unique identifier for an OAuth client.
- policy_
uri str - URL that points to a privacy policy document.
- post_
logout_ Sequence[str]redirect_ uris - Array of allowed post-logout redirect URIs.
- promoted_
at str - Timestamp when the OAuth client was promoted to public visibility.
- redirect_
uris Sequence[str] - Array of allowed redirect URIs for the client.
- response_
types Sequence[str] - Array of OAuth response types the client is allowed to use.
- scopes Sequence[str]
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token_
endpoint_ strauth_ method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos_
uri str - URL that points to a terms of service document.
- updated_
at str - Timestamp when the OAuth client was last updated.
- visibility str
- Visibility of the OAuth client. Available values: "public", "private".
- account
Id String - Account identifier tag.
- allowed
Cors List<String>Origins - Array of allowed CORS origins.
- client
Id String - The unique identifier for an OAuth client.
- client
Name String - Human-readable name of the OAuth client.
- client
Uri String - URL of the home page of the client.
- client
Uri Property MapVerification - Client URI domain control verification state.
- created
At String - Timestamp when the OAuth client was created.
- grant
Types List<String> - Array of OAuth grant types the client is allowed to use.
authorizationCodeis required;refreshTokenmay be included optionally. - has
Rotated BooleanSecret - Indicates whether the client has a rotated secret that has not yet been deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- logo
Uri String - URL of the client's logo.
- oauth
Client StringId - The unique identifier for an OAuth client.
- policy
Uri String - URL that points to a privacy policy document.
- post
Logout List<String>Redirect Uris - Array of allowed post-logout redirect URIs.
- promoted
At String - Timestamp when the OAuth client was promoted to public visibility.
- redirect
Uris List<String> - Array of allowed redirect URIs for the client.
- response
Types List<String> - Array of OAuth response types the client is allowed to use.
- scopes List<String>
- Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes
offlineAccessandopenidare added or removed automatically based ongrantTypesandresponseTypes. - token
Endpoint StringAuth Method - The authentication method the client uses at the token endpoint. Available values: "none", "clientsecretbasic", "clientsecretpost".
- tos
Uri String - URL that points to a terms of service document.
- updated
At String - Timestamp when the OAuth client was last updated.
- visibility String
- Visibility of the OAuth client. Available values: "public", "private".
Supporting Types
GetOauthClientClientUriVerification
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi