Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Azure Native

v1.47.0 published on Saturday, Nov 20, 2021 by Pulumi

Snapshot

A node pool snapshot resource. API Version: 2021-08-01.

Example Usage

Create/Update Snapshot

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var snapshot = new AzureNative.ContainerService.Snapshot("snapshot", new AzureNative.ContainerService.SnapshotArgs
        {
            CreationData = new AzureNative.ContainerService.Inputs.CreationDataArgs
            {
                SourceResourceId = "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0",
            },
            Location = "westus",
            ResourceGroupName = "rg1",
            ResourceName = "snapshot1",
            Tags = 
            {
                { "key1", "val1" },
                { "key2", "val2" },
            },
        });
    }

}

package main

import (
	containerservice "github.com/pulumi/pulumi-azure-native/sdk/go/azure/containerservice"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerservice.NewSnapshot(ctx, "snapshot", &containerservice.SnapshotArgs{
			CreationData: &containerservice.CreationDataArgs{
				SourceResourceId: pulumi.String("/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"),
			},
			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
	})
}

import pulumi
import pulumi_azure_native as azure_native

snapshot = azure_native.containerservice.Snapshot("snapshot",
    creation_data=azure_native.containerservice.CreationDataArgs(
        source_resource_id="/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0",
    ),
    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 snapshot = new azure_native.containerservice.Snapshot("snapshot", {
    creationData: {
        sourceResourceId: "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0",
    },
    location: "westus",
    resourceGroupName: "rg1",
    resourceName: "snapshot1",
    tags: {
        key1: "val1",
        key2: "val2",
    },
});

Create a Snapshot Resource

new Snapshot(name: string, args: SnapshotArgs, opts?: CustomResourceOptions);
@overload
def Snapshot(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 Snapshot(resource_name: str,
             args: SnapshotArgs,
             opts: Optional[ResourceOptions] = None)
func NewSnapshot(ctx *Context, name string, args SnapshotArgs, opts ...ResourceOption) (*Snapshot, error)
public Snapshot(string name, SnapshotArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SnapshotArgs
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 SnapshotArgs
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 SnapshotArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SnapshotArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Snapshot 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 Snapshot resource accepts the following input properties:

ResourceGroupName string
The name of the resource group.
CreationData Pulumi.AzureNative.ContainerService.Inputs.CreationDataArgs
CreationData to be used to specify the source agent pool resource ID to create this snapshot.
Location string
Resource location
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.
CreationData CreationDataArgs
CreationData to be used to specify the source agent pool resource ID to create this snapshot.
Location string
Resource location
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.
creationData CreationDataArgs
CreationData to be used to specify the source agent pool resource ID to create this snapshot.
location string
Resource location
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.
creation_data CreationDataArgs
CreationData to be used to specify the source agent pool 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.
tags Mapping[str, str]
Resource tags

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name
SystemData Pulumi.AzureNative.ContainerService.Outputs.SystemDataResponse
The system metadata relating to this snapshot.
Type string
Resource type
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name
SystemData SystemDataResponse
The system metadata relating to this snapshot.
Type string
Resource type
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name
systemData SystemDataResponse
The system metadata relating to this snapshot.
type string
Resource type
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name
system_data SystemDataResponse
The system metadata relating to this snapshot.
type str
Resource type

Supporting Types

CreationData

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.

CreationDataResponse

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.

SnapshotType

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.
NODE_POOL
NodePoolThe snapshot is a snapshot of a node pool.

SystemDataResponse

CreatedAt string
The UTC timestamp of resource creation.
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The UTC timestamp of resource creation.
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt string
The UTC timestamp of resource creation.
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The type of identity that last modified the resource.
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The UTC timestamp of resource creation.
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 type of identity that last modified the resource.
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.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:containerservice:Snapshot snapshot1 /subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0