GetGroup
Use this data source to access information about an existing API Management Group.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.ApiManagement.GetGroup.InvokeAsync(new Azure.ApiManagement.GetGroupArgs
{
Name = "my-group",
ApiManagementName = "example-apim",
ResourceGroupName = "search-service",
}));
this.GroupType = example.Apply(example => example.Type);
}
[Output("groupType")]
public Output<string> GroupType { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/apimanagement"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := apimanagement.LookupGroup(ctx, &apimanagement.LookupGroupArgs{
Name: "my-group",
ApiManagementName: "example-apim",
ResourceGroupName: "search-service",
}, nil)
if err != nil {
return err
}
ctx.Export("groupType", example.Type)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.apimanagement.get_group(name="my-group",
api_management_name="example-apim",
resource_group_name="search-service")
pulumi.export("groupType", example.type)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.apimanagement.getGroup({
name: "my-group",
apiManagementName: "example-apim",
resourceGroupName: "search-service",
});
export const groupType = example.then(example => example.type);Using GetGroup
function getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>function get_group(api_management_name=None, name=None, resource_group_name=None, opts=None)func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)Note: This function is named
LookupGroupin the Go SDK.
public static class GetGroup {
public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Api
Management stringName The Name of the API Management Service in which this Group exists.
- Name string
The Name of the API Management Group.
- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists.
- Api
Management stringName The Name of the API Management Service in which this Group exists.
- Name string
The Name of the API Management Group.
- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists.
- api
Management stringName The Name of the API Management Service in which this Group exists.
- name string
The Name of the API Management Group.
- resource
Group stringName The Name of the Resource Group in which the API Management Service exists.
- api_
management_ strname The Name of the API Management Service in which this Group exists.
- name str
The Name of the API Management Group.
- resource_
group_ strname The Name of the Resource Group in which the API Management Service exists.
GetGroup Result
The following output properties are available:
- Api
Management stringName - Description string
The description of this API Management Group.
- Display
Name string The display name of this API Management Group.
- External
Id string The identifier of the external Group.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Resource
Group stringName - Type string
The type of this API Management Group, such as
customorexternal.
- Api
Management stringName - Description string
The description of this API Management Group.
- Display
Name string The display name of this API Management Group.
- External
Id string The identifier of the external Group.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Resource
Group stringName - Type string
The type of this API Management Group, such as
customorexternal.
- api
Management stringName - description string
The description of this API Management Group.
- display
Name string The display name of this API Management Group.
- external
Id string The identifier of the external Group.
- id string
The provider-assigned unique ID for this managed resource.
- name string
- resource
Group stringName - type string
The type of this API Management Group, such as
customorexternal.
- api_
management_ strname - description str
The description of this API Management Group.
- display_
name str The display name of this API Management Group.
- external_
id str The identifier of the external Group.
- id str
The provider-assigned unique ID for this managed resource.
- name str
- resource_
group_ strname - type str
The type of this API Management Group, such as
customorexternal.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.