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 exampleShareResource = cloudflare.getShareResource({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
shareId: "3fd85f74b32742f1bff64a85009dda07",
shareResourceId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_share_resource = cloudflare.get_share_resource(account_id="023e105f4ecef8ad9ca31a8372d0c353",
share_id="3fd85f74b32742f1bff64a85009dda07",
share_resource_id="023e105f4ecef8ad9ca31a8372d0c353")
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.GetShareResource(ctx, &cloudflare.LookupShareResourceArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
ShareId: "3fd85f74b32742f1bff64a85009dda07",
ShareResourceId: pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
}, 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 exampleShareResource = Cloudflare.GetShareResource.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
ShareId = "3fd85f74b32742f1bff64a85009dda07",
ShareResourceId = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
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.GetShareResourceArgs;
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 exampleShareResource = CloudflareFunctions.getShareResource(GetShareResourceArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.shareId("3fd85f74b32742f1bff64a85009dda07")
.shareResourceId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleShareResource:
fn::invoke:
function: cloudflare:getShareResource
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
shareId: 3fd85f74b32742f1bff64a85009dda07
shareResourceId: 023e105f4ecef8ad9ca31a8372d0c353
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_getshareresource" "exampleShareResource" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
share_id = "3fd85f74b32742f1bff64a85009dda07"
share_resource_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
Using getShareResource
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 getShareResource(args: GetShareResourceArgs, opts?: InvokeOptions): Promise<GetShareResourceResult>
function getShareResourceOutput(args: GetShareResourceOutputArgs, opts?: InvokeOptions): Output<GetShareResourceResult>def get_share_resource(account_id: Optional[str] = None,
filter: Optional[GetShareResourceFilter] = None,
share_id: Optional[str] = None,
share_resource_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetShareResourceResult
def get_share_resource_output(account_id: pulumi.Input[Optional[str]] = None,
filter: pulumi.Input[Optional[GetShareResourceFilterArgs]] = None,
share_id: pulumi.Input[Optional[str]] = None,
share_resource_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetShareResourceResult]func LookupShareResource(ctx *Context, args *LookupShareResourceArgs, opts ...InvokeOption) (*LookupShareResourceResult, error)
func LookupShareResourceOutput(ctx *Context, args *LookupShareResourceOutputArgs, opts ...InvokeOption) LookupShareResourceResultOutput> Note: This function is named LookupShareResource in the Go SDK.
public static class GetShareResource
{
public static Task<GetShareResourceResult> InvokeAsync(GetShareResourceArgs args, InvokeOptions? opts = null)
public static Output<GetShareResourceResult> Invoke(GetShareResourceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetShareResourceResult> getShareResource(GetShareResourceArgs args, InvokeOptions options)
public static Output<GetShareResourceResult> getShareResource(GetShareResourceArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getShareResource:getShareResource
arguments:
# arguments dictionarydata "cloudflare_get_share_resource" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Account identifier.
- string
- Share identifier tag.
- Filter
Get
Share Resource Filter - string
- Share Resource identifier.
- Account
Id string - Account identifier.
- string
- Share identifier tag.
- Filter
Get
Share Resource Filter - string
- Share Resource identifier.
- account_
id string - Account identifier.
- string
- Share identifier tag.
- filter object
- string
- Share Resource identifier.
- account
Id String - Account identifier.
- String
- Share identifier tag.
- filter
Get
Share Resource Filter - String
- Share Resource identifier.
- account
Id string - Account identifier.
- string
- Share identifier tag.
- filter
Get
Share Resource Filter - string
- Share Resource identifier.
- account_
id str - Account identifier.
- str
- Share identifier tag.
- filter
Get
Share Resource Filter - str
- Share Resource identifier.
- account
Id String - Account identifier.
- String
- Share identifier tag.
- filter Property Map
- String
- Share Resource identifier.
getShareResource Result
The following output properties are available:
- Account
Id string - Account identifier.
- Created string
- When the share was created.
- Id string
- Share Resource identifier.
- Meta string
- Resource Metadata.
- Modified string
- When the share was modified.
- Resource
Account stringId - Account identifier.
- Resource
Id string - Share Resource identifier.
- Resource
Type string - Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- Resource
Version int - Resource Version.
- string
- Share identifier tag.
- Status string
- Resource Status. Available values: "active", "deleting", "deleted".
- Filter
Get
Share Resource Filter - string
- Share Resource identifier.
- Account
Id string - Account identifier.
- Created string
- When the share was created.
- Id string
- Share Resource identifier.
- Meta string
- Resource Metadata.
- Modified string
- When the share was modified.
- Resource
Account stringId - Account identifier.
- Resource
Id string - Share Resource identifier.
- Resource
Type string - Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- Resource
Version int - Resource Version.
- string
- Share identifier tag.
- Status string
- Resource Status. Available values: "active", "deleting", "deleted".
- Filter
Get
Share Resource Filter - string
- Share Resource identifier.
- account_
id string - Account identifier.
- created string
- When the share was created.
- id string
- Share Resource identifier.
- meta string
- Resource Metadata.
- modified string
- When the share was modified.
- resource_
account_ stringid - Account identifier.
- resource_
id string - Share Resource identifier.
- resource_
type string - Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- resource_
version number - Resource Version.
- string
- Share identifier tag.
- status string
- Resource Status. Available values: "active", "deleting", "deleted".
- filter object
- string
- Share Resource identifier.
- account
Id String - Account identifier.
- created String
- When the share was created.
- id String
- Share Resource identifier.
- meta String
- Resource Metadata.
- modified String
- When the share was modified.
- resource
Account StringId - Account identifier.
- resource
Id String - Share Resource identifier.
- resource
Type String - Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- resource
Version Integer - Resource Version.
- String
- Share identifier tag.
- status String
- Resource Status. Available values: "active", "deleting", "deleted".
- filter
Get
Share Resource Filter - String
- Share Resource identifier.
- account
Id string - Account identifier.
- created string
- When the share was created.
- id string
- Share Resource identifier.
- meta string
- Resource Metadata.
- modified string
- When the share was modified.
- resource
Account stringId - Account identifier.
- resource
Id string - Share Resource identifier.
- resource
Type string - Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- resource
Version number - Resource Version.
- string
- Share identifier tag.
- status string
- Resource Status. Available values: "active", "deleting", "deleted".
- filter
Get
Share Resource Filter - string
- Share Resource identifier.
- account_
id str - Account identifier.
- created str
- When the share was created.
- id str
- Share Resource identifier.
- meta str
- Resource Metadata.
- modified str
- When the share was modified.
- resource_
account_ strid - Account identifier.
- resource_
id str - Share Resource identifier.
- resource_
type str - Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- resource_
version int - Resource Version.
- str
- Share identifier tag.
- status str
- Resource Status. Available values: "active", "deleting", "deleted".
- filter
Get
Share Resource Filter - str
- Share Resource identifier.
- account
Id String - Account identifier.
- created String
- When the share was created.
- id String
- Share Resource identifier.
- meta String
- Resource Metadata.
- modified String
- When the share was modified.
- resource
Account StringId - Account identifier.
- resource
Id String - Share Resource identifier.
- resource
Type String - Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- resource
Version Number - Resource Version.
- String
- Share identifier tag.
- status String
- Resource Status. Available values: "active", "deleting", "deleted".
- filter Property Map
- String
- Share Resource identifier.
Supporting Types
GetShareResourceFilter
- Resource
Type string - Filter share resources by resource_type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- Status string
- Filter share resources by status. Available values: "active", "deleting", "deleted".
- Resource
Type string - Filter share resources by resource_type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- Status string
- Filter share resources by status. Available values: "active", "deleting", "deleted".
- resource_
type string - Filter share resources by resource_type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- status string
- Filter share resources by status. Available values: "active", "deleting", "deleted".
- resource
Type String - Filter share resources by resource_type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- status String
- Filter share resources by status. Available values: "active", "deleting", "deleted".
- resource
Type string - Filter share resources by resource_type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- status string
- Filter share resources by status. Available values: "active", "deleting", "deleted".
- resource_
type str - Filter share resources by resource_type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- status str
- Filter share resources by status. Available values: "active", "deleting", "deleted".
- resource
Type String - Filter share resources by resource_type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
- status String
- Filter share resources by status. Available values: "active", "deleting", "deleted".
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