Uses Azure REST API version 2019-04-01. In version 2.x of the Azure Native provider, it used API version 2019-04-01.
Example Usage
ControllersCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var controller = new AzureNative.DevSpaces.Controller("controller", new()
{
Location = "eastus",
Name = "myControllerResource",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.DevSpaces.Inputs.SkuArgs
{
Name = AzureNative.DevSpaces.SkuName.S1,
Tier = AzureNative.DevSpaces.SkuTier.Standard,
},
Tags = new() { },
TargetContainerHostCredentialsBase64 = "QmFzZTY0IEVuY29kZWQgVmFsdWUK",
TargetContainerHostResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster",
});
});
package main
import (
devspaces "github.com/pulumi/pulumi-azure-native-sdk/devspaces/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devspaces.NewController(ctx, "controller", &devspaces.ControllerArgs{
Location: pulumi.String("eastus"),
Name: pulumi.String("myControllerResource"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &devspaces.SkuArgs{
Name: pulumi.String(devspaces.SkuNameS1),
Tier: pulumi.String(devspaces.SkuTierStandard),
},
Tags: pulumi.StringMap{},
TargetContainerHostCredentialsBase64: pulumi.String("QmFzZTY0IEVuY29kZWQgVmFsdWUK"),
TargetContainerHostResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_devspaces_controller" "controller" {
lifecycle {
create_before_destroy = true
}
location = "eastus"
name = "myControllerResource"
resource_group_name = "myResourceGroup"
sku = {
name = "S1"
tier = "Standard"
}
tags = {}
target_container_host_credentials_base64 = "QmFzZTY0IEVuY29kZWQgVmFsdWUK"
target_container_host_resource_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devspaces.Controller;
import com.pulumi.azurenative.devspaces.ControllerArgs;
import com.pulumi.azurenative.devspaces.inputs.SkuArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 controller = new Controller("controller", ControllerArgs.builder()
.location("eastus")
.name("myControllerResource")
.resourceGroupName("myResourceGroup")
.sku(SkuArgs.builder()
.name("S1")
.tier("Standard")
.build())
.tags(Map.ofEntries(
))
.targetContainerHostCredentialsBase64("QmFzZTY0IEVuY29kZWQgVmFsdWUK")
.targetContainerHostResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const controller = new azure_native.devspaces.Controller("controller", {
location: "eastus",
name: "myControllerResource",
resourceGroupName: "myResourceGroup",
sku: {
name: azure_native.devspaces.SkuName.S1,
tier: azure_native.devspaces.SkuTier.Standard,
},
tags: {},
targetContainerHostCredentialsBase64: "QmFzZTY0IEVuY29kZWQgVmFsdWUK",
targetContainerHostResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster",
});
import pulumi
import pulumi_azure_native as azure_native
controller = azure_native.devspaces.Controller("controller",
location="eastus",
name="myControllerResource",
resource_group_name="myResourceGroup",
sku={
"name": azure_native.devspaces.SkuName.S1,
"tier": azure_native.devspaces.SkuTier.STANDARD,
},
tags={},
target_container_host_credentials_base64="QmFzZTY0IEVuY29kZWQgVmFsdWUK",
target_container_host_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster")
resources:
controller:
type: azure-native:devspaces:Controller
properties:
location: eastus
name: myControllerResource
resourceGroupName: myResourceGroup
sku:
name: S1
tier: Standard
tags: {}
targetContainerHostCredentialsBase64: QmFzZTY0IEVuY29kZWQgVmFsdWUK
targetContainerHostResourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster
Create Controller Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def Controller(resource_name: str,
args: ControllerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Controller(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
sku: Optional[SkuArgs] = None,
target_container_host_credentials_base64: Optional[str] = None,
target_container_host_resource_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
type: azure-native:devspaces:Controller
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_devspaces_controller" "name" {
# resource properties
}
Parameters
- resource_name
str
- The unique name of the resource.
- args
ControllerArgs
- 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
ControllerArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
ControllerArgs
- 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 controllerResource = new AzureNative.DevSpaces.Controller("controllerResource", new()
{
ResourceGroupName = "string",
Sku = new AzureNative.DevSpaces.Inputs.SkuArgs
{
Name = "string",
Tier = "string",
},
TargetContainerHostCredentialsBase64 = "string",
TargetContainerHostResourceId = "string",
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := devspaces.NewController(ctx, "controllerResource", &devspaces.ControllerArgs{
ResourceGroupName: pulumi.String("string"),
Sku: &devspaces.SkuArgs{
Name: pulumi.String("string"),
Tier: pulumi.String("string"),
},
TargetContainerHostCredentialsBase64: pulumi.String("string"),
TargetContainerHostResourceId: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "azure-native_devspaces_controller" "controllerResource" {
lifecycle {
create_before_destroy = true
}
resource_group_name = "string"
sku = {
name = "string"
tier = "string"
}
target_container_host_credentials_base64 = "string"
target_container_host_resource_id = "string"
location = "string"
name = "string"
tags = {
"string" = "string"
}
}
var controllerResource = new Controller("controllerResource", ControllerArgs.builder()
.resourceGroupName("string")
.sku(com.pulumi.azurenative.devspaces.inputs.SkuArgs.builder()
.name("string")
.tier("string")
.build())
.targetContainerHostCredentialsBase64("string")
.targetContainerHostResourceId("string")
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
controller_resource = azure_native.devspaces.Controller("controllerResource",
resource_group_name="string",
sku={
"name": "string",
"tier": "string",
},
target_container_host_credentials_base64="string",
target_container_host_resource_id="string",
location="string",
name="string",
tags={
"string": "string",
})
const controllerResource = new azure_native.devspaces.Controller("controllerResource", {
resourceGroupName: "string",
sku: {
name: "string",
tier: "string",
},
targetContainerHostCredentialsBase64: "string",
targetContainerHostResourceId: "string",
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure-native:devspaces:Controller
properties:
location: string
name: string
resourceGroupName: string
sku:
name: string
tier: string
tags:
string: string
targetContainerHostCredentialsBase64: string
targetContainerHostResourceId: string
Controller Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Controller resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Controller resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- DataPlaneFqdn
string
- DNS name for accessing DataPlane services
- HostSuffix
string
- DNS suffix for public endpoints running in the Azure Dev Spaces Controller.
- Id
string
- The provider-assigned unique ID for this managed resource.
- ProvisioningState
string
- Provisioning state of the Azure Dev Spaces Controller.
- TargetContainerHostApiServerFqdn
string
- DNS of the target container host's API server
- Type
string
- The type of the resource.
- AzureApiVersion
string
- The Azure API version of the resource.
- DataPlaneFqdn
string
- DNS name for accessing DataPlane services
- HostSuffix
string
- DNS suffix for public endpoints running in the Azure Dev Spaces Controller.
- Id
string
- The provider-assigned unique ID for this managed resource.
- ProvisioningState
string
- Provisioning state of the Azure Dev Spaces Controller.
- TargetContainerHostApiServerFqdn
string
- DNS of the target container host's API server
- Type
string
- The type of the resource.
- azureApiVersion
String
- The Azure API version of the resource.
- dataPlaneFqdn
String
- DNS name for accessing DataPlane services
- hostSuffix
String
- DNS suffix for public endpoints running in the Azure Dev Spaces Controller.
- id
String
- The provider-assigned unique ID for this managed resource.
- provisioningState
String
- Provisioning state of the Azure Dev Spaces Controller.
- targetContainerHostApiServerFqdn
String
- DNS of the target container host's API server
- type
String
- The type of the resource.
- azureApiVersion
string
- The Azure API version of the resource.
- dataPlaneFqdn
string
- DNS name for accessing DataPlane services
- hostSuffix
string
- DNS suffix for public endpoints running in the Azure Dev Spaces Controller.
- id
string
- The provider-assigned unique ID for this managed resource.
- provisioningState
string
- Provisioning state of the Azure Dev Spaces Controller.
- targetContainerHostApiServerFqdn
string
- DNS of the target container host's API server
- type
string
- The type of the resource.
- azureApiVersion
String
- The Azure API version of the resource.
- dataPlaneFqdn
String
- DNS name for accessing DataPlane services
- hostSuffix
String
- DNS suffix for public endpoints running in the Azure Dev Spaces Controller.
- id
String
- The provider-assigned unique ID for this managed resource.
- provisioningState
String
- Provisioning state of the Azure Dev Spaces Controller.
- targetContainerHostApiServerFqdn
String
- DNS of the target container host's API server
- type
String
- The type of the resource.
Supporting Types
Sku, SkuArgs
Model representing SKU for Azure Dev Spaces Controller.- Name
string | SkuName
- The name of the SKU for Azure Dev Spaces Controller.
- Tier
string | SkuTier
- The tier of the SKU for Azure Dev Spaces Controller.
- name
string | "S1"
- The name of the SKU for Azure Dev Spaces Controller.
- tier
string | "Standard"
- The tier of the SKU for Azure Dev Spaces Controller.
- name
String | SkuName
- The name of the SKU for Azure Dev Spaces Controller.
- tier
String | SkuTier
- The tier of the SKU for Azure Dev Spaces Controller.
- name
string | SkuName
- The name of the SKU for Azure Dev Spaces Controller.
- tier
string | SkuTier
- The tier of the SKU for Azure Dev Spaces Controller.
- name
str | SkuName
- The name of the SKU for Azure Dev Spaces Controller.
- tier
str | SkuTier
- The tier of the SKU for Azure Dev Spaces Controller.
- name
String | "S1"
- The name of the SKU for Azure Dev Spaces Controller.
- tier
String | "Standard"
- The tier of the SKU for Azure Dev Spaces Controller.
SkuName, SkuNameArgs
SkuResponse, SkuResponseArgs
Model representing SKU for Azure Dev Spaces Controller.- Name
string
- The name of the SKU for Azure Dev Spaces Controller.
- Tier
string
- The tier of the SKU for Azure Dev Spaces Controller.
- Name
string
- The name of the SKU for Azure Dev Spaces Controller.
- Tier
string
- The tier of the SKU for Azure Dev Spaces Controller.
- name
string
- The name of the SKU for Azure Dev Spaces Controller.
- tier
string
- The tier of the SKU for Azure Dev Spaces Controller.
- name
String
- The name of the SKU for Azure Dev Spaces Controller.
- tier
String
- The tier of the SKU for Azure Dev Spaces Controller.
- name
string
- The name of the SKU for Azure Dev Spaces Controller.
- tier
string
- The tier of the SKU for Azure Dev Spaces Controller.
- name
str
- The name of the SKU for Azure Dev Spaces Controller.
- tier
str
- The tier of the SKU for Azure Dev Spaces Controller.
- name
String
- The name of the SKU for Azure Dev Spaces Controller.
- tier
String
- The tier of the SKU for Azure Dev Spaces Controller.
SkuTier, SkuTierArgs
| Name | Value |
|---|
| Standard | Standard |
| Name | Value |
|---|
| SkuTierStandard | Standard |
| Name | Value |
|---|
| Standard | Standard |
| Name | Value |
|---|
| Standard | Standard |
| Name | Value |
|---|
| STANDARD | Standard |
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devspaces:Controller myControllerResource /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0