1. Packages
  2. Azure Classic
  3. API Docs
  4. containerservice
  5. getKubernetesNodePoolSnapshot

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.containerservice.getKubernetesNodePoolSnapshot

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Use this data source to access information about an existing Kubernetes Node Pool Snapshot.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.containerservice.getKubernetesNodePoolSnapshot({
        name: "example",
        resourceGroupName: "example-resources",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.containerservice.get_kubernetes_node_pool_snapshot(name="example",
        resource_group_name="example-resources")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := containerservice.GetKubernetesNodePoolSnapshot(ctx, &containerservice.GetKubernetesNodePoolSnapshotArgs{
    			Name:              "example",
    			ResourceGroupName: "example-resources",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.ContainerService.GetKubernetesNodePoolSnapshot.Invoke(new()
        {
            Name = "example",
            ResourceGroupName = "example-resources",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.containerservice.ContainerserviceFunctions;
    import com.pulumi.azure.containerservice.inputs.GetKubernetesNodePoolSnapshotArgs;
    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) {
            final var example = ContainerserviceFunctions.getKubernetesNodePoolSnapshot(GetKubernetesNodePoolSnapshotArgs.builder()
                .name("example")
                .resourceGroupName("example-resources")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:containerservice:getKubernetesNodePoolSnapshot
          Arguments:
            name: example
            resourceGroupName: example-resources
    

    Using getKubernetesNodePoolSnapshot

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getKubernetesNodePoolSnapshot(args: GetKubernetesNodePoolSnapshotArgs, opts?: InvokeOptions): Promise<GetKubernetesNodePoolSnapshotResult>
    function getKubernetesNodePoolSnapshotOutput(args: GetKubernetesNodePoolSnapshotOutputArgs, opts?: InvokeOptions): Output<GetKubernetesNodePoolSnapshotResult>
    def get_kubernetes_node_pool_snapshot(name: Optional[str] = None,
                                          resource_group_name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetKubernetesNodePoolSnapshotResult
    def get_kubernetes_node_pool_snapshot_output(name: Optional[pulumi.Input[str]] = None,
                                          resource_group_name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesNodePoolSnapshotResult]
    func GetKubernetesNodePoolSnapshot(ctx *Context, args *GetKubernetesNodePoolSnapshotArgs, opts ...InvokeOption) (*GetKubernetesNodePoolSnapshotResult, error)
    func GetKubernetesNodePoolSnapshotOutput(ctx *Context, args *GetKubernetesNodePoolSnapshotOutputArgs, opts ...InvokeOption) GetKubernetesNodePoolSnapshotResultOutput

    > Note: This function is named GetKubernetesNodePoolSnapshot in the Go SDK.

    public static class GetKubernetesNodePoolSnapshot 
    {
        public static Task<GetKubernetesNodePoolSnapshotResult> InvokeAsync(GetKubernetesNodePoolSnapshotArgs args, InvokeOptions? opts = null)
        public static Output<GetKubernetesNodePoolSnapshotResult> Invoke(GetKubernetesNodePoolSnapshotInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesNodePoolSnapshotResult> getKubernetesNodePoolSnapshot(GetKubernetesNodePoolSnapshotArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:containerservice/getKubernetesNodePoolSnapshot:getKubernetesNodePoolSnapshot
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Kubernetes Node Pool Snapshot.
    ResourceGroupName string
    The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
    Name string
    The name of the Kubernetes Node Pool Snapshot.
    ResourceGroupName string
    The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
    name String
    The name of the Kubernetes Node Pool Snapshot.
    resourceGroupName String
    The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
    name string
    The name of the Kubernetes Node Pool Snapshot.
    resourceGroupName string
    The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
    name str
    The name of the Kubernetes Node Pool Snapshot.
    resource_group_name str
    The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
    name String
    The name of the Kubernetes Node Pool Snapshot.
    resourceGroupName String
    The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.

    getKubernetesNodePoolSnapshot Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ResourceGroupName string
    SourceNodePoolId string
    The ID of the source Node Pool.
    Tags Dictionary<string, string>
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ResourceGroupName string
    SourceNodePoolId string
    The ID of the source Node Pool.
    Tags map[string]string
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    resourceGroupName String
    sourceNodePoolId String
    The ID of the source Node Pool.
    tags Map<String,String>
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    resourceGroupName string
    sourceNodePoolId string
    The ID of the source Node Pool.
    tags {[key: string]: string}
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    resource_group_name str
    source_node_pool_id str
    The ID of the source Node Pool.
    tags Mapping[str, str]
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    resourceGroupName String
    sourceNodePoolId String
    The ID of the source Node Pool.
    tags Map<String>

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi