Workspace Api Version Set
API Version Set Contract details. Uses Azure REST API version 2022-09-01-preview. Other available API versions: 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01, 2024-06-01-preview.
Example Usage
ApiManagementCreateWorkspaceApiVersionSet
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspaceApiVersionSet = new AzureNative.ApiManagement.WorkspaceApiVersionSet("workspaceApiVersionSet", new()
{
Description = "Version configuration",
DisplayName = "api set 1",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
VersionSetId = "api1",
VersioningScheme = AzureNative.ApiManagement.VersioningScheme.Segment,
WorkspaceId = "wks1",
});
});
Content copied to clipboard
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewWorkspaceApiVersionSet(ctx, "workspaceApiVersionSet", &apimanagement.WorkspaceApiVersionSetArgs{
Description: pulumi.String("Version configuration"),
DisplayName: pulumi.String("api set 1"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
VersionSetId: pulumi.String("api1"),
VersioningScheme: pulumi.String(apimanagement.VersioningSchemeSegment),
WorkspaceId: pulumi.String("wks1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.WorkspaceApiVersionSet;
import com.pulumi.azurenative.apimanagement.WorkspaceApiVersionSetArgs;
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) {
var workspaceApiVersionSet = new WorkspaceApiVersionSet("workspaceApiVersionSet", WorkspaceApiVersionSetArgs.builder()
.description("Version configuration")
.displayName("api set 1")
.resourceGroupName("rg1")
.serviceName("apimService1")
.versionSetId("api1")
.versioningScheme("Segment")
.workspaceId("wks1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:WorkspaceApiVersionSet api1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}
Content copied to clipboard
Properties
Link copied to clipboard
Description of API Version Set.
Link copied to clipboard
Name of API Version Set
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Name of HTTP header parameter that indicates the API Version if versioningScheme is set to header
.
Link copied to clipboard
An value that determines where the API Version identifier will be located in a HTTP request.
Link copied to clipboard
Name of query parameter that indicates the API Version if versioningScheme is set to query
.