azure-native.containerservice.ManagedClusterSnapshot
Explore with Pulumi AI
A managed cluster snapshot resource. API Version: 2022-02-02-preview.
Example Usage
Create/Update Managed Cluster Snapshot
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managedClusterSnapshot = new AzureNative.ContainerService.ManagedClusterSnapshot("managedClusterSnapshot", new()
{
CreationData = new AzureNative.ContainerService.Inputs.CreationDataArgs
{
SourceResourceId = "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1",
},
Location = "westus",
ResourceGroupName = "rg1",
ResourceName = "snapshot1",
Tags =
{
{ "key1", "val1" },
{ "key2", "val2" },
},
});
});
package main
import (
containerservice "github.com/pulumi/pulumi-azure-native-sdk/containerservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerservice.NewManagedClusterSnapshot(ctx, "managedClusterSnapshot", &containerservice.ManagedClusterSnapshotArgs{
CreationData: &containerservice.CreationDataArgs{
SourceResourceId: pulumi.String("/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1"),
},
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("rg1"),
ResourceName: pulumi.String("snapshot1"),
Tags: pulumi.StringMap{
"key1": pulumi.String("val1"),
"key2": pulumi.String("val2"),
},
})
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.containerservice.ManagedClusterSnapshot;
import com.pulumi.azurenative.containerservice.ManagedClusterSnapshotArgs;
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 managedClusterSnapshot = new ManagedClusterSnapshot("managedClusterSnapshot", ManagedClusterSnapshotArgs.builder()
.creationData(Map.of("sourceResourceId", "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1"))
.location("westus")
.resourceGroupName("rg1")
.resourceName("snapshot1")
.tags(Map.ofEntries(
Map.entry("key1", "val1"),
Map.entry("key2", "val2")
))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
managed_cluster_snapshot = azure_native.containerservice.ManagedClusterSnapshot("managedClusterSnapshot",
creation_data=azure_native.containerservice.CreationDataArgs(
source_resource_id="/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1",
),
location="westus",
resource_group_name="rg1",
resource_name_="snapshot1",
tags={
"key1": "val1",
"key2": "val2",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managedClusterSnapshot = new azure_native.containerservice.ManagedClusterSnapshot("managedClusterSnapshot", {
creationData: {
sourceResourceId: "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1",
},
location: "westus",
resourceGroupName: "rg1",
resourceName: "snapshot1",
tags: {
key1: "val1",
key2: "val2",
},
});
resources:
managedClusterSnapshot:
type: azure-native:containerservice:ManagedClusterSnapshot
properties:
creationData:
sourceResourceId: /subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1
location: westus
resourceGroupName: rg1
resourceName: snapshot1
tags:
key1: val1
key2: val2
Create ManagedClusterSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedClusterSnapshot(name: string, args: ManagedClusterSnapshotArgs, opts?: CustomResourceOptions);
@overload
def ManagedClusterSnapshot(resource_name: str,
args: ManagedClusterSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedClusterSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
creation_data: Optional[CreationDataArgs] = None,
location: Optional[str] = None,
resource_name_: Optional[str] = None,
snapshot_type: Optional[Union[str, SnapshotType]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewManagedClusterSnapshot(ctx *Context, name string, args ManagedClusterSnapshotArgs, opts ...ResourceOption) (*ManagedClusterSnapshot, error)
public ManagedClusterSnapshot(string name, ManagedClusterSnapshotArgs args, CustomResourceOptions? opts = null)
public ManagedClusterSnapshot(String name, ManagedClusterSnapshotArgs args)
public ManagedClusterSnapshot(String name, ManagedClusterSnapshotArgs args, CustomResourceOptions options)
type: azure-native:containerservice:ManagedClusterSnapshot
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 ManagedClusterSnapshotArgs
- 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 ManagedClusterSnapshotArgs
- 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 ManagedClusterSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedClusterSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedClusterSnapshotArgs
- 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 managedClusterSnapshotResource = new AzureNative.Containerservice.ManagedClusterSnapshot("managedClusterSnapshotResource", new()
{
ResourceGroupName = "string",
CreationData =
{
{ "sourceResourceId", "string" },
},
Location = "string",
ResourceName = "string",
SnapshotType = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := containerservice.NewManagedClusterSnapshot(ctx, "managedClusterSnapshotResource", &containerservice.ManagedClusterSnapshotArgs{
ResourceGroupName: "string",
CreationData: map[string]interface{}{
"sourceResourceId": "string",
},
Location: "string",
ResourceName: "string",
SnapshotType: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var managedClusterSnapshotResource = new ManagedClusterSnapshot("managedClusterSnapshotResource", ManagedClusterSnapshotArgs.builder()
.resourceGroupName("string")
.creationData(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.resourceName("string")
.snapshotType("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
managed_cluster_snapshot_resource = azure_native.containerservice.ManagedClusterSnapshot("managedClusterSnapshotResource",
resource_group_name=string,
creation_data={
sourceResourceId: string,
},
location=string,
resource_name_=string,
snapshot_type=string,
tags={
string: string,
})
const managedClusterSnapshotResource = new azure_native.containerservice.ManagedClusterSnapshot("managedClusterSnapshotResource", {
resourceGroupName: "string",
creationData: {
sourceResourceId: "string",
},
location: "string",
resourceName: "string",
snapshotType: "string",
tags: {
string: "string",
},
});
type: azure-native:containerservice:ManagedClusterSnapshot
properties:
creationData:
sourceResourceId: string
location: string
resourceGroupName: string
resourceName: string
snapshotType: string
tags:
string: string
ManagedClusterSnapshot Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ManagedClusterSnapshot resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Creation
Data Pulumi.Azure Native. Container Service. Inputs. Creation Data - CreationData to be used to specify the source resource ID to create this snapshot.
- Location string
- Resource location
- Resource
Name string - The name of the managed cluster resource.
- Snapshot
Type string | Pulumi.Azure Native. Container Service. Snapshot Type - The type of a snapshot. The default is NodePool.
- Dictionary<string, string>
- Resource tags
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Creation
Data CreationData Args - CreationData to be used to specify the source resource ID to create this snapshot.
- Location string
- Resource location
- Resource
Name string - The name of the managed cluster resource.
- Snapshot
Type string | SnapshotType - The type of a snapshot. The default is NodePool.
- map[string]string
- Resource tags
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- creation
Data CreationData - CreationData to be used to specify the source resource ID to create this snapshot.
- location String
- Resource location
- resource
Name String - The name of the managed cluster resource.
- snapshot
Type String | SnapshotType - The type of a snapshot. The default is NodePool.
- Map<String,String>
- Resource tags
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- creation
Data CreationData - CreationData to be used to specify the source resource ID to create this snapshot.
- location string
- Resource location
- resource
Name string - The name of the managed cluster resource.
- snapshot
Type string | SnapshotType - The type of a snapshot. The default is NodePool.
- {[key: string]: string}
- Resource tags
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- creation_
data CreationData Args - CreationData to be used to specify the source resource ID to create this snapshot.
- location str
- Resource location
- resource_
name str - The name of the managed cluster resource.
- snapshot_
type str | SnapshotType - The type of a snapshot. The default is NodePool.
- Mapping[str, str]
- Resource tags
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- creation
Data Property Map - CreationData to be used to specify the source resource ID to create this snapshot.
- location String
- Resource location
- resource
Name String - The name of the managed cluster resource.
- snapshot
Type String | "NodePool" - The type of a snapshot. The default is NodePool.
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedClusterSnapshot resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Cluster Pulumi.Properties Read Only Azure Native. Container Service. Outputs. Managed Cluster Properties For Snapshot Response - What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Container Service. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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.
- Managed
Cluster ManagedProperties Read Only Cluster Properties For Snapshot Response - What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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.
- managed
Cluster ManagedProperties Read Only Cluster Properties For Snapshot Response - What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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.
- managed
Cluster ManagedProperties Read Only Cluster Properties For Snapshot Response - What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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.
- managed_
cluster_ Managedproperties_ read_ only Cluster Properties For Snapshot Response - What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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.
- managed
Cluster Property MapProperties Read Only - What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
CreationData, CreationDataArgs
- Source
Resource stringId - This is the ARM ID of the source object to be used to create the target object.
- Source
Resource stringId - This is the ARM ID of the source object to be used to create the target object.
- source
Resource StringId - This is the ARM ID of the source object to be used to create the target object.
- source
Resource stringId - This is the ARM ID of the source object to be used to create the target object.
- source_
resource_ strid - This is the ARM ID of the source object to be used to create the target object.
- source
Resource StringId - This is the ARM ID of the source object to be used to create the target object.
CreationDataResponse, CreationDataResponseArgs
- Source
Resource stringId - This is the ARM ID of the source object to be used to create the target object.
- Source
Resource stringId - This is the ARM ID of the source object to be used to create the target object.
- source
Resource StringId - This is the ARM ID of the source object to be used to create the target object.
- source
Resource stringId - This is the ARM ID of the source object to be used to create the target object.
- source_
resource_ strid - This is the ARM ID of the source object to be used to create the target object.
- source
Resource StringId - This is the ARM ID of the source object to be used to create the target object.
ManagedClusterPropertiesForSnapshotResponse, ManagedClusterPropertiesForSnapshotResponseArgs
- Network
Profile Pulumi.Azure Native. Container Service. Inputs. Network Profile For Snapshot Response - The current network profile.
- Enable
Rbac bool - Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
- Kubernetes
Version string - The current kubernetes version.
- Sku
Pulumi.
Azure Native. Container Service. Inputs. Managed Cluster SKUResponse - The current managed cluster sku.
- Network
Profile NetworkProfile For Snapshot Response - The current network profile.
- Enable
Rbac bool - Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
- Kubernetes
Version string - The current kubernetes version.
- Sku
Managed
Cluster SKUResponse - The current managed cluster sku.
- network
Profile NetworkProfile For Snapshot Response - The current network profile.
- enable
Rbac Boolean - Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
- kubernetes
Version String - The current kubernetes version.
- sku
Managed
Cluster SKUResponse - The current managed cluster sku.
- network
Profile NetworkProfile For Snapshot Response - The current network profile.
- enable
Rbac boolean - Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
- kubernetes
Version string - The current kubernetes version.
- sku
Managed
Cluster SKUResponse - The current managed cluster sku.
- network_
profile NetworkProfile For Snapshot Response - The current network profile.
- enable_
rbac bool - Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
- kubernetes_
version str - The current kubernetes version.
- sku
Managed
Cluster SKUResponse - The current managed cluster sku.
- network
Profile Property Map - The current network profile.
- enable
Rbac Boolean - Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
- kubernetes
Version String - The current kubernetes version.
- sku Property Map
- The current managed cluster sku.
ManagedClusterSKUResponse, ManagedClusterSKUResponseArgs
- Name string
- The name of a managed cluster SKU.
- Tier string
- If not specified, the default is 'Free'. See uptime SLA for more details.
- Name string
- The name of a managed cluster SKU.
- Tier string
- If not specified, the default is 'Free'. See uptime SLA for more details.
- name String
- The name of a managed cluster SKU.
- tier String
- If not specified, the default is 'Free'. See uptime SLA for more details.
- name string
- The name of a managed cluster SKU.
- tier string
- If not specified, the default is 'Free'. See uptime SLA for more details.
- name str
- The name of a managed cluster SKU.
- tier str
- If not specified, the default is 'Free'. See uptime SLA for more details.
- name String
- The name of a managed cluster SKU.
- tier String
- If not specified, the default is 'Free'. See uptime SLA for more details.
NetworkProfileForSnapshotResponse, NetworkProfileForSnapshotResponseArgs
- Load
Balancer stringSku - loadBalancerSku for managed cluster snapshot.
- Network
Mode string - networkMode for managed cluster snapshot.
- Network
Plugin string - networkPlugin for managed cluster snapshot.
- Network
Policy string - networkPolicy for managed cluster snapshot.
- Load
Balancer stringSku - loadBalancerSku for managed cluster snapshot.
- Network
Mode string - networkMode for managed cluster snapshot.
- Network
Plugin string - networkPlugin for managed cluster snapshot.
- Network
Policy string - networkPolicy for managed cluster snapshot.
- load
Balancer StringSku - loadBalancerSku for managed cluster snapshot.
- network
Mode String - networkMode for managed cluster snapshot.
- network
Plugin String - networkPlugin for managed cluster snapshot.
- network
Policy String - networkPolicy for managed cluster snapshot.
- load
Balancer stringSku - loadBalancerSku for managed cluster snapshot.
- network
Mode string - networkMode for managed cluster snapshot.
- network
Plugin string - networkPlugin for managed cluster snapshot.
- network
Policy string - networkPolicy for managed cluster snapshot.
- load_
balancer_ strsku - loadBalancerSku for managed cluster snapshot.
- network_
mode str - networkMode for managed cluster snapshot.
- network_
plugin str - networkPlugin for managed cluster snapshot.
- network_
policy str - networkPolicy for managed cluster snapshot.
- load
Balancer StringSku - loadBalancerSku for managed cluster snapshot.
- network
Mode String - networkMode for managed cluster snapshot.
- network
Plugin String - networkPlugin for managed cluster snapshot.
- network
Policy String - networkPolicy for managed cluster snapshot.
SnapshotType, SnapshotTypeArgs
- Node
Pool - NodePoolThe snapshot is a snapshot of a node pool.
- Snapshot
Type Node Pool - NodePoolThe snapshot is a snapshot of a node pool.
- Node
Pool - NodePoolThe snapshot is a snapshot of a node pool.
- Node
Pool - NodePoolThe snapshot is a snapshot of a node pool.
- NODE_POOL
- NodePoolThe snapshot is a snapshot of a node pool.
- "Node
Pool" - NodePoolThe snapshot is a snapshot of a node pool.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:containerservice:ManagedClusterSnapshot snapshot1 /subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedclustersnapshots/snapshot1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0