1. Packages
  2. OpenStack
  3. API Docs
  4. containerinfra
  5. getNodeGroup
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

openstack.containerinfra.getNodeGroup

Explore with Pulumi AI

openstack logo
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

    Use this data source to get information of an available OpenStack Magnum node group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const nodegroup1 = openstack.containerinfra.getNodeGroup({
        clusterId: "cluster_1",
        name: "nodegroup_1",
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    nodegroup1 = openstack.containerinfra.get_node_group(cluster_id="cluster_1",
        name="nodegroup_1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/containerinfra"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := containerinfra.LookupNodeGroup(ctx, &containerinfra.LookupNodeGroupArgs{
    			ClusterId: "cluster_1",
    			Name:      pulumi.StringRef("nodegroup_1"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var nodegroup1 = OpenStack.ContainerInfra.GetNodeGroup.Invoke(new()
        {
            ClusterId = "cluster_1",
            Name = "nodegroup_1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.containerinfra.ContainerinfraFunctions;
    import com.pulumi.openstack.containerinfra.inputs.GetNodeGroupArgs;
    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 nodegroup1 = ContainerinfraFunctions.getNodeGroup(GetNodeGroupArgs.builder()
                .clusterId("cluster_1")
                .name("nodegroup_1")
                .build());
    
        }
    }
    
    variables:
      nodegroup1:
        fn::invoke:
          Function: openstack:containerinfra:getNodeGroup
          Arguments:
            clusterId: cluster_1
            name: nodegroup_1
    

    Using getNodeGroup

    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 getNodeGroup(args: GetNodeGroupArgs, opts?: InvokeOptions): Promise<GetNodeGroupResult>
    function getNodeGroupOutput(args: GetNodeGroupOutputArgs, opts?: InvokeOptions): Output<GetNodeGroupResult>
    def get_node_group(cluster_id: Optional[str] = None,
                       name: Optional[str] = None,
                       region: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetNodeGroupResult
    def get_node_group_output(cluster_id: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       region: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetNodeGroupResult]
    func LookupNodeGroup(ctx *Context, args *LookupNodeGroupArgs, opts ...InvokeOption) (*LookupNodeGroupResult, error)
    func LookupNodeGroupOutput(ctx *Context, args *LookupNodeGroupOutputArgs, opts ...InvokeOption) LookupNodeGroupResultOutput

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

    public static class GetNodeGroup 
    {
        public static Task<GetNodeGroupResult> InvokeAsync(GetNodeGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetNodeGroupResult> Invoke(GetNodeGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNodeGroupResult> getNodeGroup(GetNodeGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: openstack:containerinfra/getNodeGroup:getNodeGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The name of the OpenStack Magnum cluster.
    Name string
    The name of the node group.
    Region string
    The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
    ClusterId string
    The name of the OpenStack Magnum cluster.
    Name string
    The name of the node group.
    Region string
    The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
    clusterId String
    The name of the OpenStack Magnum cluster.
    name String
    The name of the node group.
    region String
    The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
    clusterId string
    The name of the OpenStack Magnum cluster.
    name string
    The name of the node group.
    region string
    The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
    cluster_id str
    The name of the OpenStack Magnum cluster.
    name str
    The name of the node group.
    region str
    The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.
    clusterId String
    The name of the OpenStack Magnum cluster.
    name String
    The name of the node group.
    region String
    The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.

    getNodeGroup Result

    The following output properties are available:

    ClusterId string
    CreatedAt string
    The time at which the node group was created.
    DockerVolumeSize int
    The size (in GB) of the Docker volume.
    Flavor string
    The flavor for the nodes of the node group.
    Id string
    The provider-assigned unique ID for this managed resource.
    Image string
    The reference to an image that is used for nodes of the node group.
    Labels Dictionary<string, object>
    The list of key value pairs representing additional properties of the node group.
    MaxNodeCount int
    The maximum number of nodes for the node group.
    MinNodeCount int
    The minimum number of nodes for the node group.
    Name string
    See Argument Reference above.
    NodeCount int
    The number of nodes for the node group.
    ProjectId string
    The project of the node group.
    Region string
    See Argument Reference above.
    Role string
    The role of the node group.
    UpdatedAt string
    The time at which the node group was updated.
    ClusterId string
    CreatedAt string
    The time at which the node group was created.
    DockerVolumeSize int
    The size (in GB) of the Docker volume.
    Flavor string
    The flavor for the nodes of the node group.
    Id string
    The provider-assigned unique ID for this managed resource.
    Image string
    The reference to an image that is used for nodes of the node group.
    Labels map[string]interface{}
    The list of key value pairs representing additional properties of the node group.
    MaxNodeCount int
    The maximum number of nodes for the node group.
    MinNodeCount int
    The minimum number of nodes for the node group.
    Name string
    See Argument Reference above.
    NodeCount int
    The number of nodes for the node group.
    ProjectId string
    The project of the node group.
    Region string
    See Argument Reference above.
    Role string
    The role of the node group.
    UpdatedAt string
    The time at which the node group was updated.
    clusterId String
    createdAt String
    The time at which the node group was created.
    dockerVolumeSize Integer
    The size (in GB) of the Docker volume.
    flavor String
    The flavor for the nodes of the node group.
    id String
    The provider-assigned unique ID for this managed resource.
    image String
    The reference to an image that is used for nodes of the node group.
    labels Map<String,Object>
    The list of key value pairs representing additional properties of the node group.
    maxNodeCount Integer
    The maximum number of nodes for the node group.
    minNodeCount Integer
    The minimum number of nodes for the node group.
    name String
    See Argument Reference above.
    nodeCount Integer
    The number of nodes for the node group.
    projectId String
    The project of the node group.
    region String
    See Argument Reference above.
    role String
    The role of the node group.
    updatedAt String
    The time at which the node group was updated.
    clusterId string
    createdAt string
    The time at which the node group was created.
    dockerVolumeSize number
    The size (in GB) of the Docker volume.
    flavor string
    The flavor for the nodes of the node group.
    id string
    The provider-assigned unique ID for this managed resource.
    image string
    The reference to an image that is used for nodes of the node group.
    labels {[key: string]: any}
    The list of key value pairs representing additional properties of the node group.
    maxNodeCount number
    The maximum number of nodes for the node group.
    minNodeCount number
    The minimum number of nodes for the node group.
    name string
    See Argument Reference above.
    nodeCount number
    The number of nodes for the node group.
    projectId string
    The project of the node group.
    region string
    See Argument Reference above.
    role string
    The role of the node group.
    updatedAt string
    The time at which the node group was updated.
    cluster_id str
    created_at str
    The time at which the node group was created.
    docker_volume_size int
    The size (in GB) of the Docker volume.
    flavor str
    The flavor for the nodes of the node group.
    id str
    The provider-assigned unique ID for this managed resource.
    image str
    The reference to an image that is used for nodes of the node group.
    labels Mapping[str, Any]
    The list of key value pairs representing additional properties of the node group.
    max_node_count int
    The maximum number of nodes for the node group.
    min_node_count int
    The minimum number of nodes for the node group.
    name str
    See Argument Reference above.
    node_count int
    The number of nodes for the node group.
    project_id str
    The project of the node group.
    region str
    See Argument Reference above.
    role str
    The role of the node group.
    updated_at str
    The time at which the node group was updated.
    clusterId String
    createdAt String
    The time at which the node group was created.
    dockerVolumeSize Number
    The size (in GB) of the Docker volume.
    flavor String
    The flavor for the nodes of the node group.
    id String
    The provider-assigned unique ID for this managed resource.
    image String
    The reference to an image that is used for nodes of the node group.
    labels Map<Any>
    The list of key value pairs representing additional properties of the node group.
    maxNodeCount Number
    The maximum number of nodes for the node group.
    minNodeCount Number
    The minimum number of nodes for the node group.
    name String
    See Argument Reference above.
    nodeCount Number
    The number of nodes for the node group.
    projectId String
    The project of the node group.
    region String
    See Argument Reference above.
    role String
    The role of the node group.
    updatedAt String
    The time at which the node group was updated.

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi