GetResources

Use this data source to access information about existing resources.

Example Usage

Coming soon!

Coming soon!

Coming soon!

Coming soon!

Using GetResources

function getResources(args: GetResourcesArgs, opts?: InvokeOptions): Promise<GetResourcesResult>
function  get_resources(name=None, required_tags=None, resource_group_name=None, type=None, opts=None)
func GetResources(ctx *Context, args *GetResourcesArgs, opts ...InvokeOption) (*GetResourcesResult, error)
public static class GetResources {
    public static Task<GetResourcesResult> InvokeAsync(GetResourcesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Resource.

RequiredTags Dictionary<string, string>

A mapping of tags which the resource has to have in order to be included in the result.

ResourceGroupName string

The name of the Resource group where the Resources are located.

Type string

The Resource Type of the Resources you want to list (e.g. Microsoft.Network/virtualNetworks). A full list of available Resource Types can be found here.

Name string

The name of the Resource.

RequiredTags map[string]string

A mapping of tags which the resource has to have in order to be included in the result.

ResourceGroupName string

The name of the Resource group where the Resources are located.

Type string

The Resource Type of the Resources you want to list (e.g. Microsoft.Network/virtualNetworks). A full list of available Resource Types can be found here.

name string

The name of the Resource.

requiredTags {[key: string]: string}

A mapping of tags which the resource has to have in order to be included in the result.

resourceGroupName string

The name of the Resource group where the Resources are located.

type string

The Resource Type of the Resources you want to list (e.g. Microsoft.Network/virtualNetworks). A full list of available Resource Types can be found here.

name str

The name of the Resource.

required_tags Dict[str, str]

A mapping of tags which the resource has to have in order to be included in the result.

resource_group_name str

The name of the Resource group where the Resources are located.

type str

The Resource Type of the Resources you want to list (e.g. Microsoft.Network/virtualNetworks). A full list of available Resource Types can be found here.

GetResources Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of this Resource.

ResourceGroupName string
Resources List<GetResourcesResource>

One or more resource blocks as defined below.

Type string

The type of this Resource. (e.g. Microsoft.Network/virtualNetworks).

RequiredTags Dictionary<string, string>
Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of this Resource.

ResourceGroupName string
Resources []GetResourcesResource

One or more resource blocks as defined below.

Type string

The type of this Resource. (e.g. Microsoft.Network/virtualNetworks).

RequiredTags map[string]string
id string

The provider-assigned unique ID for this managed resource.

name string

The name of this Resource.

resourceGroupName string
resources GetResourcesResource[]

One or more resource blocks as defined below.

type string

The type of this Resource. (e.g. Microsoft.Network/virtualNetworks).

requiredTags {[key: string]: string}
id str

The provider-assigned unique ID for this managed resource.

name str

The name of this Resource.

resource_group_name str
resources List[GetResourcesResource]

One or more resource blocks as defined below.

type str

The type of this Resource. (e.g. Microsoft.Network/virtualNetworks).

required_tags Dict[str, str]

Supporting Types

GetResourcesResource

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Id string

The ID of this Resource.

Location string

The Azure Region in which this Resource exists.

Name string

The name of the Resource.

Tags Dictionary<string, string>

A map of tags assigned to this Resource.

Type string

The Resource Type of the Resources you want to list (e.g. Microsoft.Network/virtualNetworks). A full list of available Resource Types can be found here.

Id string

The ID of this Resource.

Location string

The Azure Region in which this Resource exists.

Name string

The name of the Resource.

Tags map[string]string

A map of tags assigned to this Resource.

Type string

The Resource Type of the Resources you want to list (e.g. Microsoft.Network/virtualNetworks). A full list of available Resource Types can be found here.

id string

The ID of this Resource.

location string

The Azure Region in which this Resource exists.

name string

The name of the Resource.

tags {[key: string]: string}

A map of tags assigned to this Resource.

type string

The Resource Type of the Resources you want to list (e.g. Microsoft.Network/virtualNetworks). A full list of available Resource Types can be found here.

id str

The ID of this Resource.

location str

The Azure Region in which this Resource exists.

name str

The name of the Resource.

tags Dict[str, str]

A map of tags assigned to this Resource.

type str

The Resource Type of the Resources you want to list (e.g. Microsoft.Network/virtualNetworks). A full list of available Resource Types can be found here.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.