HCP

v0.1.11 published on Monday, Jul 25, 2022 by Grapl Security

getConsulVersions

The Consul versions data source provides the Consul versions supported by HCP.

Example Usage

using Pulumi;
using Hcp = Pulumi.Hcp;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(Hcp.GetConsulVersions.InvokeAsync());
    }

}
package main

import (
	"github.com/grapl-security/pulumi-hcp/sdk/go/hcp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hcp.GetConsulVersions(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_hcp as hcp

default = hcp.get_consul_versions()
import * as pulumi from "@pulumi/pulumi";
import * as hcp from "@pulumi/hcp";

const defaultConsulVersions = pulumi.output(hcp.getConsulVersions());
variables:
  default:
    Fn::Invoke:
      Function: hcp:getConsulVersions
      Arguments: {}

Using getConsulVersions

function getConsulVersions(opts?: InvokeOptions): Promise<GetConsulVersionsResult>
def get_consul_versions(opts: Optional[InvokeOptions] = None) -> GetConsulVersionsResult
func GetConsulVersions(ctx *Context, opts ...InvokeOption) (*GetConsulVersionsResult, error)

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

public static class GetConsulVersions 
{
    public static Task<GetConsulVersionsResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetConsulVersionsResult> getConsulVersions(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: hcp:index/getConsulVersions:getConsulVersions
  Arguments:
    # Arguments dictionary

getConsulVersions Result

The following output properties are available:

Availables List<string>
Id string

The provider-assigned unique ID for this managed resource.

Previews List<string>
Recommended string
Availables []string
Id string

The provider-assigned unique ID for this managed resource.

Previews []string
Recommended string
availables List<String>
id String

The provider-assigned unique ID for this managed resource.

previews List<String>
recommended String
availables string[]
id string

The provider-assigned unique ID for this managed resource.

previews string[]
recommended string
availables Sequence[str]
id str

The provider-assigned unique ID for this managed resource.

previews Sequence[str]
recommended str
availables List<String>
id String

The provider-assigned unique ID for this managed resource.

previews List<String>
recommended String

Package Details

Repository
https://github.com/grapl-security/pulumi-hcp
License
Apache-2.0
Notes

This Pulumi package is based on the hcp Terraform Provider.