getApiVersionSet

Uses this data source to access information about an API Version Set within an API Management Service.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.apimanagement.getApiVersionSet({
resourceGroupName: "example-resources",
apiManagementName: "example-api",
name: "example-api-version-set",
});
export const apiManagementApiVersionSetId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.apimanagement.get_api_version_set(resource_group_name="example-resources",
api_management_name="example-api",
name="example-api-version-set")
pulumi.export("apiManagementApiVersionSetId", example.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.ApiManagement.GetApiVersionSet.Invoke(new()
{
ResourceGroupName = "example-resources",
ApiManagementName = "example-api",
Name = "example-api-version-set",
});
return new Dictionary<string, object?>
{
["apiManagementApiVersionSetId"] = example.Apply(getApiVersionSetResult => getApiVersionSetResult.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := apimanagement.LookupApiVersionSet(ctx, &apimanagement.LookupApiVersionSetArgs{
ResourceGroupName: "example-resources",
ApiManagementName: "example-api",
Name: "example-api-version-set",
}, nil)
if err != nil {
return err
}
ctx.Export("apiManagementApiVersionSetId", example.Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.apimanagement.ApimanagementFunctions;
import com.pulumi.azure.apimanagement.inputs.GetApiVersionSetArgs;
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 example = ApimanagementFunctions.getApiVersionSet(GetApiVersionSetArgs.builder()
.resourceGroupName("example-resources")
.apiManagementName("example-api")
.name("example-api-version-set")
.build());
ctx.export("apiManagementApiVersionSetId", example.applyValue(getApiVersionSetResult -> getApiVersionSetResult.id()));
}
}
variables:
example:
fn::invoke:
function: azure:apimanagement:getApiVersionSet
arguments:
resourceGroupName: example-resources
apiManagementName: example-api
name: example-api-version-set
outputs:
apiManagementApiVersionSetId: ${example.id}

Return

A collection of values returned by getApiVersionSet.

Parameters

argument

A collection of arguments for invoking getApiVersionSet.


suspend fun getApiVersionSet(apiManagementName: String, name: String, resourceGroupName: String): GetApiVersionSetResult

Return

A collection of values returned by getApiVersionSet.

Parameters

apiManagementName

The name of the API Management Service where the API Version Set exists.

name

The name of the API Version Set.

resourceGroupName

The name of the Resource Group in which the parent API Management Service exists.

See also


Return

A collection of values returned by getApiVersionSet.

Parameters

argument

Builder for com.pulumi.azure.apimanagement.kotlin.inputs.GetApiVersionSetPlainArgs.

See also