OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi
openstack.containerinfra.getNodeGroup
Explore with Pulumi AI
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:
- 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.
getNodeGroup Result
The following output properties are available:
- Cluster
Id string - Created
At string - The time at which the node group was created.
- Docker
Volume intSize - 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.
- Max
Node intCount - The maximum number of nodes for the node group.
- Min
Node intCount - The minimum number of nodes for the node group.
- Name string
- See Argument Reference above.
- Node
Count int - The number of nodes for the node group.
- Project
Id string - The project of the node group.
- Region string
- See Argument Reference above.
- Role string
- The role of the node group.
- Updated
At string - The time at which the node group was updated.
- Cluster
Id string - Created
At string - The time at which the node group was created.
- Docker
Volume intSize - 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.
- Max
Node intCount - The maximum number of nodes for the node group.
- Min
Node intCount - The minimum number of nodes for the node group.
- Name string
- See Argument Reference above.
- Node
Count int - The number of nodes for the node group.
- Project
Id string - The project of the node group.
- Region string
- See Argument Reference above.
- Role string
- The role of the node group.
- Updated
At string - The time at which the node group was updated.
- cluster
Id String - created
At String - The time at which the node group was created.
- docker
Volume IntegerSize - 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.
- max
Node IntegerCount - The maximum number of nodes for the node group.
- min
Node IntegerCount - The minimum number of nodes for the node group.
- name String
- See Argument Reference above.
- node
Count Integer - The number of nodes for the node group.
- project
Id String - The project of the node group.
- region String
- See Argument Reference above.
- role String
- The role of the node group.
- updated
At String - The time at which the node group was updated.
- cluster
Id string - created
At string - The time at which the node group was created.
- docker
Volume numberSize - 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.
- max
Node numberCount - The maximum number of nodes for the node group.
- min
Node numberCount - The minimum number of nodes for the node group.
- name string
- See Argument Reference above.
- node
Count number - The number of nodes for the node group.
- project
Id string - The project of the node group.
- region string
- See Argument Reference above.
- role string
- The role of the node group.
- updated
At 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_ intsize - 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_ intcount - The maximum number of nodes for the node group.
- min_
node_ intcount - 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.
- cluster
Id String - created
At String - The time at which the node group was created.
- docker
Volume NumberSize - 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.
- max
Node NumberCount - The maximum number of nodes for the node group.
- min
Node NumberCount - The minimum number of nodes for the node group.
- name String
- See Argument Reference above.
- node
Count Number - The number of nodes for the node group.
- project
Id String - The project of the node group.
- region String
- See Argument Reference above.
- role String
- The role of the node group.
- updated
At 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.