HCP
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());
Coming soon!
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>
The Consul versions available on HCP.
- Id string
The provider-assigned unique ID for this managed resource.
- Previews List<string>
The preview versions of Consul available on HCP.
- Recommended string
The recommended Consul version for HCP clusters.
- Availables []string
The Consul versions available on HCP.
- Id string
The provider-assigned unique ID for this managed resource.
- Previews []string
The preview versions of Consul available on HCP.
- Recommended string
The recommended Consul version for HCP clusters.
- availables
List
The Consul versions available on HCP.
- id String
The provider-assigned unique ID for this managed resource.
- previews
List
The preview versions of Consul available on HCP.
- recommended String
The recommended Consul version for HCP clusters.
- availables string[]
The Consul versions available on HCP.
- id string
The provider-assigned unique ID for this managed resource.
- previews string[]
The preview versions of Consul available on HCP.
- recommended string
The recommended Consul version for HCP clusters.
- availables Sequence[str]
The Consul versions available on HCP.
- id str
The provider-assigned unique ID for this managed resource.
- previews Sequence[str]
The preview versions of Consul available on HCP.
- recommended str
The recommended Consul version for HCP clusters.
- availables
List
The Consul versions available on HCP.
- id String
The provider-assigned unique ID for this managed resource.
- previews
List
The preview versions of Consul available on HCP.
- recommended String
The recommended Consul version for HCP clusters.
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.