1. Packages
  2. Azure Native
  3. API Docs
  4. apimanagement
  5. WorkspaceApiVersionSet
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.apimanagement.WorkspaceApiVersionSet

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    API Version Set Contract details. 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.

    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",
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    workspace_api_version_set = azure_native.apimanagement.WorkspaceApiVersionSet("workspaceApiVersionSet",
        description="Version configuration",
        display_name="api set 1",
        resource_group_name="rg1",
        service_name="apimService1",
        version_set_id="api1",
        versioning_scheme=azure_native.apimanagement.VersioningScheme.SEGMENT,
        workspace_id="wks1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const workspaceApiVersionSet = new azure_native.apimanagement.WorkspaceApiVersionSet("workspaceApiVersionSet", {
        description: "Version configuration",
        displayName: "api set 1",
        resourceGroupName: "rg1",
        serviceName: "apimService1",
        versionSetId: "api1",
        versioningScheme: azure_native.apimanagement.VersioningScheme.Segment,
        workspaceId: "wks1",
    });
    
    resources:
      workspaceApiVersionSet:
        type: azure-native:apimanagement:WorkspaceApiVersionSet
        properties:
          description: Version configuration
          displayName: api set 1
          resourceGroupName: rg1
          serviceName: apimService1
          versionSetId: api1
          versioningScheme: Segment
          workspaceId: wks1
    

    Create WorkspaceApiVersionSet Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WorkspaceApiVersionSet(name: string, args: WorkspaceApiVersionSetArgs, opts?: CustomResourceOptions);
    @overload
    def WorkspaceApiVersionSet(resource_name: str,
                               args: WorkspaceApiVersionSetArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def WorkspaceApiVersionSet(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               display_name: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               service_name: Optional[str] = None,
                               versioning_scheme: Optional[Union[str, VersioningScheme]] = None,
                               workspace_id: Optional[str] = None,
                               description: Optional[str] = None,
                               version_header_name: Optional[str] = None,
                               version_query_name: Optional[str] = None,
                               version_set_id: Optional[str] = None)
    func NewWorkspaceApiVersionSet(ctx *Context, name string, args WorkspaceApiVersionSetArgs, opts ...ResourceOption) (*WorkspaceApiVersionSet, error)
    public WorkspaceApiVersionSet(string name, WorkspaceApiVersionSetArgs args, CustomResourceOptions? opts = null)
    public WorkspaceApiVersionSet(String name, WorkspaceApiVersionSetArgs args)
    public WorkspaceApiVersionSet(String name, WorkspaceApiVersionSetArgs args, CustomResourceOptions options)
    
    type: azure-native:apimanagement:WorkspaceApiVersionSet
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args WorkspaceApiVersionSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args WorkspaceApiVersionSetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args WorkspaceApiVersionSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkspaceApiVersionSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkspaceApiVersionSetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var workspaceApiVersionSetResource = new AzureNative.ApiManagement.WorkspaceApiVersionSet("workspaceApiVersionSetResource", new()
    {
        DisplayName = "string",
        ResourceGroupName = "string",
        ServiceName = "string",
        VersioningScheme = "string",
        WorkspaceId = "string",
        Description = "string",
        VersionHeaderName = "string",
        VersionQueryName = "string",
        VersionSetId = "string",
    });
    
    example, err := apimanagement.NewWorkspaceApiVersionSet(ctx, "workspaceApiVersionSetResource", &apimanagement.WorkspaceApiVersionSetArgs{
    	DisplayName:       pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	ServiceName:       pulumi.String("string"),
    	VersioningScheme:  pulumi.String("string"),
    	WorkspaceId:       pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	VersionHeaderName: pulumi.String("string"),
    	VersionQueryName:  pulumi.String("string"),
    	VersionSetId:      pulumi.String("string"),
    })
    
    var workspaceApiVersionSetResource = new WorkspaceApiVersionSet("workspaceApiVersionSetResource", WorkspaceApiVersionSetArgs.builder()
        .displayName("string")
        .resourceGroupName("string")
        .serviceName("string")
        .versioningScheme("string")
        .workspaceId("string")
        .description("string")
        .versionHeaderName("string")
        .versionQueryName("string")
        .versionSetId("string")
        .build());
    
    workspace_api_version_set_resource = azure_native.apimanagement.WorkspaceApiVersionSet("workspaceApiVersionSetResource",
        display_name="string",
        resource_group_name="string",
        service_name="string",
        versioning_scheme="string",
        workspace_id="string",
        description="string",
        version_header_name="string",
        version_query_name="string",
        version_set_id="string")
    
    const workspaceApiVersionSetResource = new azure_native.apimanagement.WorkspaceApiVersionSet("workspaceApiVersionSetResource", {
        displayName: "string",
        resourceGroupName: "string",
        serviceName: "string",
        versioningScheme: "string",
        workspaceId: "string",
        description: "string",
        versionHeaderName: "string",
        versionQueryName: "string",
        versionSetId: "string",
    });
    
    type: azure-native:apimanagement:WorkspaceApiVersionSet
    properties:
        description: string
        displayName: string
        resourceGroupName: string
        serviceName: string
        versionHeaderName: string
        versionQueryName: string
        versionSetId: string
        versioningScheme: string
        workspaceId: string
    

    WorkspaceApiVersionSet Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The WorkspaceApiVersionSet resource accepts the following input properties:

    DisplayName string
    Name of API Version Set
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServiceName string
    The name of the API Management service.
    VersioningScheme string | Pulumi.AzureNative.ApiManagement.VersioningScheme
    An value that determines where the API Version identifier will be located in a HTTP request.
    WorkspaceId string
    Workspace identifier. Must be unique in the current API Management service instance.
    Description string
    Description of API Version Set.
    VersionHeaderName string
    Name of HTTP header parameter that indicates the API Version if versioningScheme is set to header.
    VersionQueryName string
    Name of query parameter that indicates the API Version if versioningScheme is set to query.
    VersionSetId string
    Api Version Set identifier. Must be unique in the current API Management service instance.
    DisplayName string
    Name of API Version Set
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServiceName string
    The name of the API Management service.
    VersioningScheme string | VersioningScheme
    An value that determines where the API Version identifier will be located in a HTTP request.
    WorkspaceId string
    Workspace identifier. Must be unique in the current API Management service instance.
    Description string
    Description of API Version Set.
    VersionHeaderName string
    Name of HTTP header parameter that indicates the API Version if versioningScheme is set to header.
    VersionQueryName string
    Name of query parameter that indicates the API Version if versioningScheme is set to query.
    VersionSetId string
    Api Version Set identifier. Must be unique in the current API Management service instance.
    displayName String
    Name of API Version Set
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serviceName String
    The name of the API Management service.
    versioningScheme String | VersioningScheme
    An value that determines where the API Version identifier will be located in a HTTP request.
    workspaceId String
    Workspace identifier. Must be unique in the current API Management service instance.
    description String
    Description of API Version Set.
    versionHeaderName String
    Name of HTTP header parameter that indicates the API Version if versioningScheme is set to header.
    versionQueryName String
    Name of query parameter that indicates the API Version if versioningScheme is set to query.
    versionSetId String
    Api Version Set identifier. Must be unique in the current API Management service instance.
    displayName string
    Name of API Version Set
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    serviceName string
    The name of the API Management service.
    versioningScheme string | VersioningScheme
    An value that determines where the API Version identifier will be located in a HTTP request.
    workspaceId string
    Workspace identifier. Must be unique in the current API Management service instance.
    description string
    Description of API Version Set.
    versionHeaderName string
    Name of HTTP header parameter that indicates the API Version if versioningScheme is set to header.
    versionQueryName string
    Name of query parameter that indicates the API Version if versioningScheme is set to query.
    versionSetId string
    Api Version Set identifier. Must be unique in the current API Management service instance.
    display_name str
    Name of API Version Set
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    service_name str
    The name of the API Management service.
    versioning_scheme str | VersioningScheme
    An value that determines where the API Version identifier will be located in a HTTP request.
    workspace_id str
    Workspace identifier. Must be unique in the current API Management service instance.
    description str
    Description of API Version Set.
    version_header_name str
    Name of HTTP header parameter that indicates the API Version if versioningScheme is set to header.
    version_query_name str
    Name of query parameter that indicates the API Version if versioningScheme is set to query.
    version_set_id str
    Api Version Set identifier. Must be unique in the current API Management service instance.
    displayName String
    Name of API Version Set
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serviceName String
    The name of the API Management service.
    versioningScheme String | "Segment" | "Query" | "Header"
    An value that determines where the API Version identifier will be located in a HTTP request.
    workspaceId String
    Workspace identifier. Must be unique in the current API Management service instance.
    description String
    Description of API Version Set.
    versionHeaderName String
    Name of HTTP header parameter that indicates the API Version if versioningScheme is set to header.
    versionQueryName String
    Name of query parameter that indicates the API Version if versioningScheme is set to query.
    versionSetId String
    Api Version Set identifier. Must be unique in the current API Management service instance.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WorkspaceApiVersionSet resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    VersioningScheme, VersioningSchemeArgs

    Segment
    SegmentThe API Version is passed in a path segment.
    Query
    QueryThe API Version is passed in a query parameter.
    Header
    HeaderThe API Version is passed in a HTTP header.
    VersioningSchemeSegment
    SegmentThe API Version is passed in a path segment.
    VersioningSchemeQuery
    QueryThe API Version is passed in a query parameter.
    VersioningSchemeHeader
    HeaderThe API Version is passed in a HTTP header.
    Segment
    SegmentThe API Version is passed in a path segment.
    Query
    QueryThe API Version is passed in a query parameter.
    Header
    HeaderThe API Version is passed in a HTTP header.
    Segment
    SegmentThe API Version is passed in a path segment.
    Query
    QueryThe API Version is passed in a query parameter.
    Header
    HeaderThe API Version is passed in a HTTP header.
    SEGMENT
    SegmentThe API Version is passed in a path segment.
    QUERY
    QueryThe API Version is passed in a query parameter.
    HEADER
    HeaderThe API Version is passed in a HTTP header.
    "Segment"
    SegmentThe API Version is passed in a path segment.
    "Query"
    QueryThe API Version is passed in a query parameter.
    "Header"
    HeaderThe API Version is passed in a HTTP header.

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi