xenorchestra v1.5.0 published on Friday, Mar 7, 2025 by Vates
xenorchestra.getXoaHosts
Explore with Pulumi AI
Use this data source to filter Xenorchestra hosts by certain criteria (name_label, tags) for use in other resources.
Using getXoaHosts
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 getXoaHosts(args: GetXoaHostsArgs, opts?: InvokeOptions): Promise<GetXoaHostsResult>
function getXoaHostsOutput(args: GetXoaHostsOutputArgs, opts?: InvokeOptions): Output<GetXoaHostsResult>def get_xoa_hosts(pool_id: Optional[str] = None,
                  sort_by: Optional[str] = None,
                  sort_order: Optional[str] = None,
                  tags: Optional[Sequence[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> GetXoaHostsResult
def get_xoa_hosts_output(pool_id: Optional[pulumi.Input[str]] = None,
                  sort_by: Optional[pulumi.Input[str]] = None,
                  sort_order: Optional[pulumi.Input[str]] = None,
                  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetXoaHostsResult]func GetXoaHosts(ctx *Context, args *GetXoaHostsArgs, opts ...InvokeOption) (*GetXoaHostsResult, error)
func GetXoaHostsOutput(ctx *Context, args *GetXoaHostsOutputArgs, opts ...InvokeOption) GetXoaHostsResultOutput> Note: This function is named GetXoaHosts in the Go SDK.
public static class GetXoaHosts 
{
    public static Task<GetXoaHostsResult> InvokeAsync(GetXoaHostsArgs args, InvokeOptions? opts = null)
    public static Output<GetXoaHostsResult> Invoke(GetXoaHostsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetXoaHostsResult> getXoaHosts(GetXoaHostsArgs args, InvokeOptions options)
public static Output<GetXoaHostsResult> getXoaHosts(GetXoaHostsArgs args, InvokeOptions options)
fn::invoke:
  function: xenorchestra:index/getXoaHosts:getXoaHosts
  arguments:
    # arguments dictionaryThe following arguments are supported:
- pool_id str
- The pool id used to filter the resulting hosts by.
- sort_by str
- The host field to sort the results by (id and name_label are supported).
- sort_order str
- Valid options are ascordescand sort order is applied tosort_byargument.
- Sequence[str]
- The tags (labels) applied to the given entity.
getXoaHosts Result
The following output properties are available:
- Hosts
List<GetXoa Hosts Host> 
- The resulting hosts after applying the argument filtering.
- Id string
- The provider-assigned unique ID for this managed resource.
- Master string
- The primary host of the pool.
- PoolId string
- The pool id used to filter the resulting hosts by.
- SortBy string
- The host field to sort the results by (id and name_label are supported).
- SortOrder string
- Valid options are ascordescand sort order is applied tosort_byargument.
- List<string>
- The tags (labels) applied to the given entity.
- Hosts
[]GetXoa Hosts Host 
- The resulting hosts after applying the argument filtering.
- Id string
- The provider-assigned unique ID for this managed resource.
- Master string
- The primary host of the pool.
- PoolId string
- The pool id used to filter the resulting hosts by.
- SortBy string
- The host field to sort the results by (id and name_label are supported).
- SortOrder string
- Valid options are ascordescand sort order is applied tosort_byargument.
- []string
- The tags (labels) applied to the given entity.
- hosts
List<GetXoa Hosts Host> 
- The resulting hosts after applying the argument filtering.
- id String
- The provider-assigned unique ID for this managed resource.
- master String
- The primary host of the pool.
- poolId String
- The pool id used to filter the resulting hosts by.
- sortBy String
- The host field to sort the results by (id and name_label are supported).
- sortOrder String
- Valid options are ascordescand sort order is applied tosort_byargument.
- List<String>
- The tags (labels) applied to the given entity.
- hosts
GetXoa Hosts Host[] 
- The resulting hosts after applying the argument filtering.
- id string
- The provider-assigned unique ID for this managed resource.
- master string
- The primary host of the pool.
- poolId string
- The pool id used to filter the resulting hosts by.
- sortBy string
- The host field to sort the results by (id and name_label are supported).
- sortOrder string
- Valid options are ascordescand sort order is applied tosort_byargument.
- string[]
- The tags (labels) applied to the given entity.
- hosts
Sequence[GetXoa Hosts Host] 
- The resulting hosts after applying the argument filtering.
- id str
- The provider-assigned unique ID for this managed resource.
- master str
- The primary host of the pool.
- pool_id str
- The pool id used to filter the resulting hosts by.
- sort_by str
- The host field to sort the results by (id and name_label are supported).
- sort_order str
- Valid options are ascordescand sort order is applied tosort_byargument.
- Sequence[str]
- The tags (labels) applied to the given entity.
- hosts List<Property Map>
- The resulting hosts after applying the argument filtering.
- id String
- The provider-assigned unique ID for this managed resource.
- master String
- The primary host of the pool.
- poolId String
- The pool id used to filter the resulting hosts by.
- sortBy String
- The host field to sort the results by (id and name_label are supported).
- sortOrder String
- Valid options are ascordescand sort order is applied tosort_byargument.
- List<String>
- The tags (labels) applied to the given entity.
Supporting Types
GetXoaHostsHost   
- Cpus Dictionary<string, int>
- CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
- Id string
- Memory int
- The memory size of the host.
- MemoryUsage int
- The memory usage of the host.
- NameLabel string
- The name label of the host.
- PoolId string
- Id of the pool that the host belongs to.
- List<string>
- The tags (labels) applied to the given entity.
- Cpus map[string]int
- CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
- Id string
- Memory int
- The memory size of the host.
- MemoryUsage int
- The memory usage of the host.
- NameLabel string
- The name label of the host.
- PoolId string
- Id of the pool that the host belongs to.
- []string
- The tags (labels) applied to the given entity.
- cpus Map<String,Integer>
- CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
- id String
- memory Integer
- The memory size of the host.
- memoryUsage Integer
- The memory usage of the host.
- nameLabel String
- The name label of the host.
- poolId String
- Id of the pool that the host belongs to.
- List<String>
- The tags (labels) applied to the given entity.
- cpus {[key: string]: number}
- CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
- id string
- memory number
- The memory size of the host.
- memoryUsage number
- The memory usage of the host.
- nameLabel string
- The name label of the host.
- poolId string
- Id of the pool that the host belongs to.
- string[]
- The tags (labels) applied to the given entity.
- cpus Mapping[str, int]
- CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
- id str
- memory int
- The memory size of the host.
- memory_usage int
- The memory usage of the host.
- name_label str
- The name label of the host.
- pool_id str
- Id of the pool that the host belongs to.
- Sequence[str]
- The tags (labels) applied to the given entity.
- cpus Map<Number>
- CPU information about the host. The 'cores' key will contain the number of cpu cores and the 'sockets' key will contain the number of sockets.
- id String
- memory Number
- The memory size of the host.
- memoryUsage Number
- The memory usage of the host.
- nameLabel String
- The name label of the host.
- poolId String
- Id of the pool that the host belongs to.
- List<String>
- The tags (labels) applied to the given entity.
Package Details
- Repository
- xenorchestra vatesfr/pulumi-xenorchestra
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the xenorchestraTerraform Provider.
