GetApiVersionSet
Uses this data source to access information about an API Version Set within an API Management Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.ApiManagement.GetApiVersionSet.InvokeAsync(new Azure.ApiManagement.GetApiVersionSetArgs
{
ResourceGroupName = "example-resources",
ApiManagementName = "example-api",
Name = "example-api-version-set",
}));
this.ApiManagementApiVersionSetId = example.Apply(example => example.Id);
}
[Output("apiManagementApiVersionSetId")]
public Output<string> ApiManagementApiVersionSetId { 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.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
})
}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)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);Using GetApiVersionSet
function getApiVersionSet(args: GetApiVersionSetArgs, opts?: InvokeOptions): Promise<GetApiVersionSetResult>function get_api_version_set(api_management_name=None, name=None, resource_group_name=None, opts=None)func LookupApiVersionSet(ctx *Context, args *LookupApiVersionSetArgs, opts ...InvokeOption) (*LookupApiVersionSetResult, error)Note: This function is named
LookupApiVersionSetin the Go SDK.
public static class GetApiVersionSet {
public static Task<GetApiVersionSetResult> InvokeAsync(GetApiVersionSetArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Api
Management stringName The name of the API Management Service where the API Version Set exists.
- Name string
The name of the API Version Set.
- Resource
Group stringName The name of the Resource Group in which the parent API Management Service exists.
- Api
Management stringName The name of the API Management Service where the API Version Set exists.
- Name string
The name of the API Version Set.
- Resource
Group stringName The name of the Resource Group in which the parent API Management Service exists.
- api
Management stringName The name of the API Management Service where the API Version Set exists.
- name string
The name of the API Version Set.
- resource
Group stringName The name of the Resource Group in which the parent API Management Service exists.
- api_
management_ strname The name of the API Management Service where the API Version Set exists.
- name str
The name of the API Version Set.
- resource_
group_ strname The name of the Resource Group in which the parent API Management Service exists.
GetApiVersionSet Result
The following output properties are available:
- Api
Management stringName - Description string
The description of API Version Set.
- Display
Name string The display name of this API Version Set.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Resource
Group stringName - Version
Header stringName The name of the Header which should be read from Inbound Requests which defines the API Version.
- Version
Query stringName The name of the Query String which should be read from Inbound Requests which defines the API Version.
- Versioning
Scheme string
- Api
Management stringName - Description string
The description of API Version Set.
- Display
Name string The display name of this API Version Set.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Resource
Group stringName - Version
Header stringName The name of the Header which should be read from Inbound Requests which defines the API Version.
- Version
Query stringName The name of the Query String which should be read from Inbound Requests which defines the API Version.
- Versioning
Scheme string
- api
Management stringName - description string
The description of API Version Set.
- display
Name string The display name of this API Version Set.
- id string
The provider-assigned unique ID for this managed resource.
- name string
- resource
Group stringName - version
Header stringName The name of the Header which should be read from Inbound Requests which defines the API Version.
- version
Query stringName The name of the Query String which should be read from Inbound Requests which defines the API Version.
- versioning
Scheme string
- api_
management_ strname - description str
The description of API Version Set.
- display_
name str The display name of this API Version Set.
- id str
The provider-assigned unique ID for this managed resource.
- name str
- resource_
group_ strname - version_
header_ strname The name of the Header which should be read from Inbound Requests which defines the API Version.
- version_
query_ strname The name of the Query String which should be read from Inbound Requests which defines the API Version.
- versioning_
scheme str
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.