1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getResourceGroup
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getResourceGroup

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleResourceGroup = cloudflare.getResourceGroup({
        accountId: "eb78d65290b24279ba6f44721b3ea3c4",
        resourceGroupId: "6d7f2f5f5b1d4a0e9081fdc98d432fd1",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_resource_group = cloudflare.get_resource_group(account_id="eb78d65290b24279ba6f44721b3ea3c4",
        resource_group_id="6d7f2f5f5b1d4a0e9081fdc98d432fd1")
    
    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.GetResourceGroup(ctx, &cloudflare.GetResourceGroupArgs{
    			AccountId:       "eb78d65290b24279ba6f44721b3ea3c4",
    			ResourceGroupId: "6d7f2f5f5b1d4a0e9081fdc98d432fd1",
    		}, 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 exampleResourceGroup = Cloudflare.GetResourceGroup.Invoke(new()
        {
            AccountId = "eb78d65290b24279ba6f44721b3ea3c4",
            ResourceGroupId = "6d7f2f5f5b1d4a0e9081fdc98d432fd1",
        });
    
    });
    
    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.GetResourceGroupArgs;
    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 exampleResourceGroup = CloudflareFunctions.getResourceGroup(GetResourceGroupArgs.builder()
                .accountId("eb78d65290b24279ba6f44721b3ea3c4")
                .resourceGroupId("6d7f2f5f5b1d4a0e9081fdc98d432fd1")
                .build());
    
        }
    }
    
    variables:
      exampleResourceGroup:
        fn::invoke:
          function: cloudflare:getResourceGroup
          arguments:
            accountId: eb78d65290b24279ba6f44721b3ea3c4
            resourceGroupId: 6d7f2f5f5b1d4a0e9081fdc98d432fd1
    

    Using getResourceGroup

    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 getResourceGroup(args: GetResourceGroupArgs, opts?: InvokeOptions): Promise<GetResourceGroupResult>
    function getResourceGroupOutput(args: GetResourceGroupOutputArgs, opts?: InvokeOptions): Output<GetResourceGroupResult>
    def get_resource_group(account_id: Optional[str] = None,
                           resource_group_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetResourceGroupResult
    def get_resource_group_output(account_id: Optional[pulumi.Input[str]] = None,
                           resource_group_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetResourceGroupResult]
    func GetResourceGroup(ctx *Context, args *GetResourceGroupArgs, opts ...InvokeOption) (*GetResourceGroupResult, error)
    func GetResourceGroupOutput(ctx *Context, args *GetResourceGroupOutputArgs, opts ...InvokeOption) GetResourceGroupResultOutput

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

    public static class GetResourceGroup 
    {
        public static Task<GetResourceGroupResult> InvokeAsync(GetResourceGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceGroupResult> Invoke(GetResourceGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceGroupResult> getResourceGroup(GetResourceGroupArgs args, InvokeOptions options)
    public static Output<GetResourceGroupResult> getResourceGroup(GetResourceGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getResourceGroup:getResourceGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier tag.
    ResourceGroupId string
    Resource Group identifier tag.
    AccountId string
    Account identifier tag.
    ResourceGroupId string
    Resource Group identifier tag.
    accountId String
    Account identifier tag.
    resourceGroupId String
    Resource Group identifier tag.
    accountId string
    Account identifier tag.
    resourceGroupId string
    Resource Group identifier tag.
    account_id str
    Account identifier tag.
    resource_group_id str
    Resource Group identifier tag.
    accountId String
    Account identifier tag.
    resourceGroupId String
    Resource Group identifier tag.

    getResourceGroup Result

    The following output properties are available:

    AccountId string
    Account identifier tag.
    Id string
    Identifier of the group.
    Meta GetResourceGroupMeta
    Attributes associated to the resource group.
    Name string
    Name of the resource group.
    ResourceGroupId string
    Resource Group identifier tag.
    Scopes List<GetResourceGroupScope>
    The scope associated to the resource group
    AccountId string
    Account identifier tag.
    Id string
    Identifier of the group.
    Meta GetResourceGroupMeta
    Attributes associated to the resource group.
    Name string
    Name of the resource group.
    ResourceGroupId string
    Resource Group identifier tag.
    Scopes []GetResourceGroupScope
    The scope associated to the resource group
    accountId String
    Account identifier tag.
    id String
    Identifier of the group.
    meta GetResourceGroupMeta
    Attributes associated to the resource group.
    name String
    Name of the resource group.
    resourceGroupId String
    Resource Group identifier tag.
    scopes List<GetResourceGroupScope>
    The scope associated to the resource group
    accountId string
    Account identifier tag.
    id string
    Identifier of the group.
    meta GetResourceGroupMeta
    Attributes associated to the resource group.
    name string
    Name of the resource group.
    resourceGroupId string
    Resource Group identifier tag.
    scopes GetResourceGroupScope[]
    The scope associated to the resource group
    account_id str
    Account identifier tag.
    id str
    Identifier of the group.
    meta GetResourceGroupMeta
    Attributes associated to the resource group.
    name str
    Name of the resource group.
    resource_group_id str
    Resource Group identifier tag.
    scopes Sequence[GetResourceGroupScope]
    The scope associated to the resource group
    accountId String
    Account identifier tag.
    id String
    Identifier of the group.
    meta Property Map
    Attributes associated to the resource group.
    name String
    Name of the resource group.
    resourceGroupId String
    Resource Group identifier tag.
    scopes List<Property Map>
    The scope associated to the resource group

    Supporting Types

    GetResourceGroupMeta

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    GetResourceGroupScope

    Key string
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    Objects List<GetResourceGroupScopeObject>
    A list of scope objects for additional context.
    Key string
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    Objects []GetResourceGroupScopeObject
    A list of scope objects for additional context.
    key String
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    objects List<GetResourceGroupScopeObject>
    A list of scope objects for additional context.
    key string
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    objects GetResourceGroupScopeObject[]
    A list of scope objects for additional context.
    key str
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    objects Sequence[GetResourceGroupScopeObject]
    A list of scope objects for additional context.
    key String
    This is a combination of pre-defined resource name and identifier (like Account ID etc.)
    objects List<Property Map>
    A list of scope objects for additional context.

    GetResourceGroupScopeObject

    Key string
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    Key string
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    key String
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    key string
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    key str
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)
    key String
    This is a combination of pre-defined resource name and identifier (like Zone ID etc.)

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi