Exoscale

v0.42.0 published on Sunday, Nov 27, 2022 by Pulumiverse

getAffinity

!> WARNING: This data source is DEPRECATED and will be removed in the next major version. Please use exoscale.AntiAffinityGroup instead.

Using getAffinity

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 getAffinity(args: GetAffinityArgs, opts?: InvokeOptions): Promise<GetAffinityResult>
function getAffinityOutput(args: GetAffinityOutputArgs, opts?: InvokeOptions): Output<GetAffinityResult>
def get_affinity(id: Optional[str] = None,
                 name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetAffinityResult
def get_affinity_output(id: Optional[pulumi.Input[str]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetAffinityResult]
func LookupAffinity(ctx *Context, args *LookupAffinityArgs, opts ...InvokeOption) (*LookupAffinityResult, error)
func LookupAffinityOutput(ctx *Context, args *LookupAffinityOutputArgs, opts ...InvokeOption) LookupAffinityResultOutput

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

public static class GetAffinity 
{
    public static Task<GetAffinityResult> InvokeAsync(GetAffinityArgs args, InvokeOptions? opts = null)
    public static Output<GetAffinityResult> Invoke(GetAffinityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAffinityResult> getAffinity(GetAffinityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: exoscale:index/getAffinity:getAffinity
  arguments:
    # arguments dictionary

The following arguments are supported:

Id string

The anti-affinity group ID to match (conflicts with name)

Name string

The group name to match (conflicts with id)

Id string

The anti-affinity group ID to match (conflicts with name)

Name string

The group name to match (conflicts with id)

id String

The anti-affinity group ID to match (conflicts with name)

name String

The group name to match (conflicts with id)

id string

The anti-affinity group ID to match (conflicts with name)

name string

The group name to match (conflicts with id)

id str

The anti-affinity group ID to match (conflicts with name)

name str

The group name to match (conflicts with id)

id String

The anti-affinity group ID to match (conflicts with name)

name String

The group name to match (conflicts with id)

getAffinity Result

The following output properties are available:

Id string
Name string
Id string
Name string
id String
name String
id string
name string
id str
name str
id String
name String

Package Details

Repository
https://github.com/pulumiverse/pulumi-exoscale
License
Apache-2.0
Notes

This Pulumi package is based on the exoscale Terraform Provider.