1. Packages
  2. Azure Native
  3. API Docs
  4. containerservice
  5. ManagedClusterSnapshot
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.33.0 published on Friday, Mar 22, 2024 by Pulumi

azure-native.containerservice.ManagedClusterSnapshot

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.33.0 published on Friday, Mar 22, 2024 by Pulumi

    A managed cluster snapshot resource. Azure REST API version: 2023-05-02-preview. Prior API version in Azure Native 1.x: 2022-02-02-preview.

    Other available API versions: 2023-06-02-preview, 2023-07-02-preview, 2023-08-02-preview, 2023-09-02-preview, 2023-10-02-preview, 2023-11-02-preview, 2024-01-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 (
    	"github.com/pulumi/pulumi-azure-native-sdk/containerservice/v2"
    	"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 com.pulumi.azurenative.containerservice.inputs.CreationDataArgs;
    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(CreationDataArgs.builder()
                    .sourceResourceId("/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1")
                    .build())
                .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

    new ManagedClusterSnapshot(name: string, args: ManagedClusterSnapshotArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedClusterSnapshot(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               creation_data: Optional[CreationDataArgs] = None,
                               location: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               resource_name_: Optional[str] = None,
                               snapshot_type: Optional[Union[str, SnapshotType]] = None,
                               tags: Optional[Mapping[str, str]] = None)
    @overload
    def ManagedClusterSnapshot(resource_name: str,
                               args: ManagedClusterSnapshotArgs,
                               opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    CreationData Pulumi.AzureNative.ContainerService.Inputs.CreationData
    CreationData to be used to specify the source resource ID to create this snapshot.
    Location string
    The geo-location where the resource lives
    ResourceName string
    The name of the managed cluster resource.
    SnapshotType string | Pulumi.AzureNative.ContainerService.SnapshotType
    The type of a snapshot. The default is NodePool.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    CreationData CreationDataArgs
    CreationData to be used to specify the source resource ID to create this snapshot.
    Location string
    The geo-location where the resource lives
    ResourceName string
    The name of the managed cluster resource.
    SnapshotType string | SnapshotType
    The type of a snapshot. The default is NodePool.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    creationData CreationData
    CreationData to be used to specify the source resource ID to create this snapshot.
    location String
    The geo-location where the resource lives
    resourceName String
    The name of the managed cluster resource.
    snapshotType String | SnapshotType
    The type of a snapshot. The default is NodePool.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    creationData CreationData
    CreationData to be used to specify the source resource ID to create this snapshot.
    location string
    The geo-location where the resource lives
    resourceName string
    The name of the managed cluster resource.
    snapshotType string | SnapshotType
    The type of a snapshot. The default is NodePool.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    creation_data CreationDataArgs
    CreationData to be used to specify the source resource ID to create this snapshot.
    location str
    The geo-location where the resource lives
    resource_name str
    The name of the managed cluster resource.
    snapshot_type str | SnapshotType
    The type of a snapshot. The default is NodePool.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    creationData Property Map
    CreationData to be used to specify the source resource ID to create this snapshot.
    location String
    The geo-location where the resource lives
    resourceName String
    The name of the managed cluster resource.
    snapshotType String | "NodePool"
    The type of a snapshot. The default is NodePool.
    tags 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.
    ManagedClusterPropertiesReadOnly Pulumi.AzureNative.ContainerService.Outputs.ManagedClusterPropertiesForSnapshotResponse
    What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.ContainerService.Outputs.SystemDataResponse
    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.
    ManagedClusterPropertiesReadOnly ManagedClusterPropertiesForSnapshotResponse
    What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    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.
    managedClusterPropertiesReadOnly ManagedClusterPropertiesForSnapshotResponse
    What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
    name String
    The name of the resource
    systemData SystemDataResponse
    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.
    managedClusterPropertiesReadOnly ManagedClusterPropertiesForSnapshotResponse
    What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
    name string
    The name of the resource
    systemData SystemDataResponse
    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_properties_read_only ManagedClusterPropertiesForSnapshotResponse
    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 SystemDataResponse
    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.
    managedClusterPropertiesReadOnly Property Map
    What the properties will be showed when getting managed cluster snapshot. Those properties are read-only.
    name String
    The name of the resource
    systemData 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

    SourceResourceId string
    This is the ARM ID of the source object to be used to create the target object.
    SourceResourceId string
    This is the ARM ID of the source object to be used to create the target object.
    sourceResourceId String
    This is the ARM ID of the source object to be used to create the target object.
    sourceResourceId string
    This is the ARM ID of the source object to be used to create the target object.
    source_resource_id str
    This is the ARM ID of the source object to be used to create the target object.
    sourceResourceId String
    This is the ARM ID of the source object to be used to create the target object.

    CreationDataResponse, CreationDataResponseArgs

    SourceResourceId string
    This is the ARM ID of the source object to be used to create the target object.
    SourceResourceId string
    This is the ARM ID of the source object to be used to create the target object.
    sourceResourceId String
    This is the ARM ID of the source object to be used to create the target object.
    sourceResourceId string
    This is the ARM ID of the source object to be used to create the target object.
    source_resource_id str
    This is the ARM ID of the source object to be used to create the target object.
    sourceResourceId String
    This is the ARM ID of the source object to be used to create the target object.

    ManagedClusterPropertiesForSnapshotResponse, ManagedClusterPropertiesForSnapshotResponseArgs

    NetworkProfile Pulumi.AzureNative.ContainerService.Inputs.NetworkProfileForSnapshotResponse
    The current network profile.
    EnableRbac bool
    Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
    KubernetesVersion string
    The current kubernetes version.
    Sku Pulumi.AzureNative.ContainerService.Inputs.ManagedClusterSKUResponse
    The current managed cluster sku.
    NetworkProfile NetworkProfileForSnapshotResponse
    The current network profile.
    EnableRbac bool
    Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
    KubernetesVersion string
    The current kubernetes version.
    Sku ManagedClusterSKUResponse
    The current managed cluster sku.
    networkProfile NetworkProfileForSnapshotResponse
    The current network profile.
    enableRbac Boolean
    Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
    kubernetesVersion String
    The current kubernetes version.
    sku ManagedClusterSKUResponse
    The current managed cluster sku.
    networkProfile NetworkProfileForSnapshotResponse
    The current network profile.
    enableRbac boolean
    Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
    kubernetesVersion string
    The current kubernetes version.
    sku ManagedClusterSKUResponse
    The current managed cluster sku.
    network_profile NetworkProfileForSnapshotResponse
    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 ManagedClusterSKUResponse
    The current managed cluster sku.
    networkProfile Property Map
    The current network profile.
    enableRbac Boolean
    Whether the cluster has enabled Kubernetes Role-Based Access Control or not.
    kubernetesVersion 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 AKS Pricing Tier for more details.
    Name string
    The name of a managed cluster SKU.
    Tier string
    If not specified, the default is 'Free'. See AKS Pricing Tier for more details.
    name String
    The name of a managed cluster SKU.
    tier String
    If not specified, the default is 'Free'. See AKS Pricing Tier for more details.
    name string
    The name of a managed cluster SKU.
    tier string
    If not specified, the default is 'Free'. See AKS Pricing Tier for more details.
    name str
    The name of a managed cluster SKU.
    tier str
    If not specified, the default is 'Free'. See AKS Pricing Tier for more details.
    name String
    The name of a managed cluster SKU.
    tier String
    If not specified, the default is 'Free'. See AKS Pricing Tier for more details.

    NetworkProfileForSnapshotResponse, NetworkProfileForSnapshotResponseArgs

    LoadBalancerSku string
    loadBalancerSku for managed cluster snapshot.
    NetworkMode string
    networkMode for managed cluster snapshot.
    NetworkPlugin string
    networkPlugin for managed cluster snapshot.
    NetworkPluginMode string
    NetworkPluginMode for managed cluster snapshot.
    NetworkPolicy string
    networkPolicy for managed cluster snapshot.
    LoadBalancerSku string
    loadBalancerSku for managed cluster snapshot.
    NetworkMode string
    networkMode for managed cluster snapshot.
    NetworkPlugin string
    networkPlugin for managed cluster snapshot.
    NetworkPluginMode string
    NetworkPluginMode for managed cluster snapshot.
    NetworkPolicy string
    networkPolicy for managed cluster snapshot.
    loadBalancerSku String
    loadBalancerSku for managed cluster snapshot.
    networkMode String
    networkMode for managed cluster snapshot.
    networkPlugin String
    networkPlugin for managed cluster snapshot.
    networkPluginMode String
    NetworkPluginMode for managed cluster snapshot.
    networkPolicy String
    networkPolicy for managed cluster snapshot.
    loadBalancerSku string
    loadBalancerSku for managed cluster snapshot.
    networkMode string
    networkMode for managed cluster snapshot.
    networkPlugin string
    networkPlugin for managed cluster snapshot.
    networkPluginMode string
    NetworkPluginMode for managed cluster snapshot.
    networkPolicy string
    networkPolicy for managed cluster snapshot.
    load_balancer_sku str
    loadBalancerSku for managed cluster snapshot.
    network_mode str
    networkMode for managed cluster snapshot.
    network_plugin str
    networkPlugin for managed cluster snapshot.
    network_plugin_mode str
    NetworkPluginMode for managed cluster snapshot.
    network_policy str
    networkPolicy for managed cluster snapshot.
    loadBalancerSku String
    loadBalancerSku for managed cluster snapshot.
    networkMode String
    networkMode for managed cluster snapshot.
    networkPlugin String
    networkPlugin for managed cluster snapshot.
    networkPluginMode String
    NetworkPluginMode for managed cluster snapshot.
    networkPolicy String
    networkPolicy for managed cluster snapshot.

    SnapshotType, SnapshotTypeArgs

    NodePool
    NodePoolThe snapshot is a snapshot of a node pool.
    SnapshotTypeNodePool
    NodePoolThe snapshot is a snapshot of a node pool.
    NodePool
    NodePoolThe snapshot is a snapshot of a node pool.
    NodePool
    NodePoolThe snapshot is a snapshot of a node pool.
    NODE_POOL
    NodePoolThe snapshot is a snapshot of a node pool.
    "NodePool"
    NodePoolThe snapshot is a snapshot of a node pool.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName} 
    

    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.33.0 published on Friday, Mar 22, 2024 by Pulumi