UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

70 lines (69 loc) 2.65 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets a resource group. * * Uses Azure REST API version 2024-03-01. * * Other available API versions: 2020-10-01, 2021-01-01, 2021-04-01, 2022-09-01, 2023-07-01, 2024-07-01, 2024-11-01, 2025-03-01, 2025-04-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native resources [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getResourceGroup(args: GetResourceGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetResourceGroupResult>; export interface GetResourceGroupArgs { /** * The name of the resource group to get. The name is case insensitive. */ resourceGroupName: string; } /** * Resource group information. */ export interface GetResourceGroupResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The ID of the resource group. */ readonly id: string; /** * The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations. */ readonly location: string; /** * The ID of the resource that manages this resource group. */ readonly managedBy?: string; /** * The name of the resource group. */ readonly name: string; /** * The resource group properties. */ readonly properties: outputs.resources.ResourceGroupPropertiesResponse; /** * The tags attached to the resource group. */ readonly tags?: { [key: string]: string; }; /** * The type of the resource group. */ readonly type: string; } /** * Gets a resource group. * * Uses Azure REST API version 2024-03-01. * * Other available API versions: 2020-10-01, 2021-01-01, 2021-04-01, 2022-09-01, 2023-07-01, 2024-07-01, 2024-11-01, 2025-03-01, 2025-04-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native resources [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getResourceGroupOutput(args: GetResourceGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetResourceGroupResult>; export interface GetResourceGroupOutputArgs { /** * The name of the resource group to get. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }