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
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleOauthScopes = cloudflare.getOauthScopes({});
import pulumi
import pulumi_cloudflare as cloudflare
example_oauth_scopes = cloudflare.get_oauth_scopes()
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.GetOauthScopes(ctx, &cloudflare.LookupOauthScopesArgs{}, 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 exampleOauthScopes = Cloudflare.GetOauthScopes.Invoke();
});
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.GetOauthScopesArgs;
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 exampleOauthScopes = CloudflareFunctions.getOauthScopes(GetOauthScopesArgs.builder()
.build());
}
}
variables:
exampleOauthScopes:
fn::invoke:
function: cloudflare:getOauthScopes
arguments: {}
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_getoauthscopes" "exampleOauthScopes" {
}
Using getOauthScopes
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 getOauthScopes(args: GetOauthScopesArgs, opts?: InvokeOptions): Promise<GetOauthScopesResult>
function getOauthScopesOutput(args: GetOauthScopesOutputArgs, opts?: InvokeOptions): Output<GetOauthScopesResult>def get_oauth_scopes(max_items: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetOauthScopesResult
def get_oauth_scopes_output(max_items: pulumi.Input[Optional[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOauthScopesResult]func LookupOauthScopes(ctx *Context, args *LookupOauthScopesArgs, opts ...InvokeOption) (*LookupOauthScopesResult, error)
func LookupOauthScopesOutput(ctx *Context, args *LookupOauthScopesOutputArgs, opts ...InvokeOption) LookupOauthScopesResultOutput> Note: This function is named LookupOauthScopes in the Go SDK.
public static class GetOauthScopes
{
public static Task<GetOauthScopesResult> InvokeAsync(GetOauthScopesArgs args, InvokeOptions? opts = null)
public static Output<GetOauthScopesResult> Invoke(GetOauthScopesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOauthScopesResult> getOauthScopes(GetOauthScopesArgs args, InvokeOptions options)
public static Output<GetOauthScopesResult> getOauthScopes(GetOauthScopesArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getOauthScopes:getOauthScopes
arguments:
# arguments dictionarydata "cloudflare_get_oauth_scopes" "name" {
# arguments
}The following arguments are supported:
- Max
Items int - Max items to fetch, default: 1000
- Max
Items int - Max items to fetch, default: 1000
- max_
items number - Max items to fetch, default: 1000
- max
Items Integer - Max items to fetch, default: 1000
- max
Items number - Max items to fetch, default: 1000
- max_
items int - Max items to fetch, default: 1000
- max
Items Number - Max items to fetch, default: 1000
getOauthScopes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Oauth Scopes Result> - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Oauth Scopes Result - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- id string
- The provider-assigned unique ID for this managed resource.
- results list(object)
- The items returned by the data source
- max_
items number - Max items to fetch, default: 1000
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Oauth Scopes Result> - The items returned by the data source
- max
Items Integer - Max items to fetch, default: 1000
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Oauth Scopes Result[] - The items returned by the data source
- max
Items number - Max items to fetch, default: 1000
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Oauth Scopes Result] - The items returned by the data source
- max_
items int - Max items to fetch, default: 1000
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetOauthScopesResult
- Category string
- Category for grouping scopes in the UI.
- Id string
- The scope label to use in the scopes array when creating or updating an OAuth client.
- Name string
- Human-readable name of the OAuth scope.
- Scopes List<string>
- The underlying resource scopes (Bach scopes) that define which resources this OAuth scope can act upon.
- Category string
- Category for grouping scopes in the UI.
- Id string
- The scope label to use in the scopes array when creating or updating an OAuth client.
- Name string
- Human-readable name of the OAuth scope.
- Scopes []string
- The underlying resource scopes (Bach scopes) that define which resources this OAuth scope can act upon.
- category string
- Category for grouping scopes in the UI.
- id string
- The scope label to use in the scopes array when creating or updating an OAuth client.
- name string
- Human-readable name of the OAuth scope.
- scopes list(string)
- The underlying resource scopes (Bach scopes) that define which resources this OAuth scope can act upon.
- category String
- Category for grouping scopes in the UI.
- id String
- The scope label to use in the scopes array when creating or updating an OAuth client.
- name String
- Human-readable name of the OAuth scope.
- scopes List<String>
- The underlying resource scopes (Bach scopes) that define which resources this OAuth scope can act upon.
- category string
- Category for grouping scopes in the UI.
- id string
- The scope label to use in the scopes array when creating or updating an OAuth client.
- name string
- Human-readable name of the OAuth scope.
- scopes string[]
- The underlying resource scopes (Bach scopes) that define which resources this OAuth scope can act upon.
- category str
- Category for grouping scopes in the UI.
- id str
- The scope label to use in the scopes array when creating or updating an OAuth client.
- name str
- Human-readable name of the OAuth scope.
- scopes Sequence[str]
- The underlying resource scopes (Bach scopes) that define which resources this OAuth scope can act upon.
- category String
- Category for grouping scopes in the UI.
- id String
- The scope label to use in the scopes array when creating or updating an OAuth client.
- name String
- Human-readable name of the OAuth scope.
- scopes List<String>
- The underlying resource scopes (Bach scopes) that define which resources this OAuth scope can act upon.
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