Workspace Args
data class WorkspaceArgs(val description: Output<String>? = null, val displayName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val workspaceId: Output<String>? = null) : ConvertibleToJava<WorkspaceArgs>
Workspace 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
ApiManagementCreateWorkspace
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspace = new AzureNative.ApiManagement.Workspace("workspace", new()
{
Description = "workspace 1",
DisplayName = "my workspace",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
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.NewWorkspace(ctx, "workspace", &apimanagement.WorkspaceArgs{
Description: pulumi.String("workspace 1"),
DisplayName: pulumi.String("my workspace"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
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.Workspace;
import com.pulumi.azurenative.apimanagement.WorkspaceArgs;
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 workspace = new Workspace("workspace", WorkspaceArgs.builder()
.description("workspace 1")
.displayName("my workspace")
.resourceGroupName("rg1")
.serviceName("apimService1")
.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:Workspace wks1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
Description of the workspace.
Link copied to clipboard
Name of the workspace.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
The name of the API Management service.
Link copied to clipboard
Workspace identifier. Must be unique in the current API Management service instance.