oci.Ocvp.getExsiHost
This data source provides details about a specific Esxi Host resource in Oracle Cloud Infrastructure Oracle Cloud VMware Solution service.
Gets the specified ESXi host’s information.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testEsxiHost = Oci.Ocvp.GetExsiHost.Invoke(new()
{
EsxiHostId = oci_ocvp_esxi_host.Test_esxi_host.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Ocvp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Ocvp.GetExsiHost(ctx, &ocvp.GetExsiHostArgs{
EsxiHostId: oci_ocvp_esxi_host.Test_esxi_host.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Ocvp.OcvpFunctions;
import com.pulumi.oci.Ocvp.inputs.GetExsiHostArgs;
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 testEsxiHost = OcvpFunctions.getExsiHost(GetExsiHostArgs.builder()
.esxiHostId(oci_ocvp_esxi_host.test_esxi_host().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_esxi_host = oci.Ocvp.get_exsi_host(esxi_host_id=oci_ocvp_esxi_host["test_esxi_host"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testEsxiHost = oci.Ocvp.getExsiHost({
esxiHostId: oci_ocvp_esxi_host.test_esxi_host.id,
});
variables:
testEsxiHost:
fn::invoke:
Function: oci:Ocvp:getExsiHost
Arguments:
esxiHostId: ${oci_ocvp_esxi_host.test_esxi_host.id}
Using getExsiHost
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 getExsiHost(args: GetExsiHostArgs, opts?: InvokeOptions): Promise<GetExsiHostResult>
function getExsiHostOutput(args: GetExsiHostOutputArgs, opts?: InvokeOptions): Output<GetExsiHostResult>
def get_exsi_host(esxi_host_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExsiHostResult
def get_exsi_host_output(esxi_host_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExsiHostResult]
func GetExsiHost(ctx *Context, args *GetExsiHostArgs, opts ...InvokeOption) (*GetExsiHostResult, error)
func GetExsiHostOutput(ctx *Context, args *GetExsiHostOutputArgs, opts ...InvokeOption) GetExsiHostResultOutput
> Note: This function is named GetExsiHost
in the Go SDK.
public static class GetExsiHost
{
public static Task<GetExsiHostResult> InvokeAsync(GetExsiHostArgs args, InvokeOptions? opts = null)
public static Output<GetExsiHostResult> Invoke(GetExsiHostInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExsiHostResult> getExsiHost(GetExsiHostArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Ocvp/getExsiHost:getExsiHost
arguments:
# arguments dictionary
The following arguments are supported:
- Esxi
Host stringId The OCID of the ESXi host.
- Esxi
Host stringId The OCID of the ESXi host.
- esxi
Host StringId The OCID of the ESXi host.
- esxi
Host stringId The OCID of the ESXi host.
- esxi_
host_ strid The OCID of the ESXi host.
- esxi
Host StringId The OCID of the ESXi host.
getExsiHost Result
The following output properties are available:
- Billing
Contract stringEnd Date Current billing cycle end date. If the value in
currentSku
andnextSku
are different, the value specified innextSku
becomes the newcurrentSKU
when thecontractEndDate
is reached. Example:2016-08-25T21:10:29.600Z
- Capacity
Reservation stringId The OCID of the Capacity Reservation.
- Compartment
Id string The OCID of the compartment that contains the SDDC.
- Compute
Availability stringDomain The availability domain of the ESXi host.
- Compute
Instance stringId In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. The
computeInstanceId
is the OCID of that Compute instance.- Current
Sku string The billing option currently used by the ESXi host. ListSupportedSkus.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Esxi
Host stringId - Failed
Esxi stringHost Id The OCID of the esxi host that is failed.
- Dictionary<string, object>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Grace
Period stringEnd Date The date and time when the new esxi host should start billing cycle. RFC3339. Example:
2021-07-25T21:10:29.600Z
- Host
Ocpu doubleCount The OCPU count of the ESXi host.
- Host
Shape stringName The compute shape name of the ESXi host. ListSupportedHostShapes.
- Id string
The OCID of the ESXi host.
- Next
Sku string The billing option to switch to after the current billing cycle ends. If
nextSku
is null or empty,currentSku
continues to the next billing cycle. ListSupportedSkus.- Non
Upgraded stringEsxi Host Id The OCID of the ESXi host that will be upgraded.
- Replacement
Esxi stringHost Id The OCID of the esxi host that is newly created to replace the failed node.
- Sddc
Id string The OCID of the SDDC that the ESXi host belongs to.
- State string
The current state of the ESXi host.
- Time
Created string The date and time the ESXi host was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string The date and time the ESXi host was updated, in the format defined by RFC3339.
- Upgraded
Replacement stringEsxi Host Id The OCID of the ESXi host that is newly created to upgrade the original host.
- Vmware
Software stringVersion The version of VMware software that the Oracle Cloud VMware Solution installed on the ESXi hosts.
- Billing
Contract stringEnd Date Current billing cycle end date. If the value in
currentSku
andnextSku
are different, the value specified innextSku
becomes the newcurrentSKU
when thecontractEndDate
is reached. Example:2016-08-25T21:10:29.600Z
- Capacity
Reservation stringId The OCID of the Capacity Reservation.
- Compartment
Id string The OCID of the compartment that contains the SDDC.
- Compute
Availability stringDomain The availability domain of the ESXi host.
- Compute
Instance stringId In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. The
computeInstanceId
is the OCID of that Compute instance.- Current
Sku string The billing option currently used by the ESXi host. ListSupportedSkus.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Esxi
Host stringId - Failed
Esxi stringHost Id The OCID of the esxi host that is failed.
- map[string]interface{}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Grace
Period stringEnd Date The date and time when the new esxi host should start billing cycle. RFC3339. Example:
2021-07-25T21:10:29.600Z
- Host
Ocpu float64Count The OCPU count of the ESXi host.
- Host
Shape stringName The compute shape name of the ESXi host. ListSupportedHostShapes.
- Id string
The OCID of the ESXi host.
- Next
Sku string The billing option to switch to after the current billing cycle ends. If
nextSku
is null or empty,currentSku
continues to the next billing cycle. ListSupportedSkus.- Non
Upgraded stringEsxi Host Id The OCID of the ESXi host that will be upgraded.
- Replacement
Esxi stringHost Id The OCID of the esxi host that is newly created to replace the failed node.
- Sddc
Id string The OCID of the SDDC that the ESXi host belongs to.
- State string
The current state of the ESXi host.
- Time
Created string The date and time the ESXi host was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string The date and time the ESXi host was updated, in the format defined by RFC3339.
- Upgraded
Replacement stringEsxi Host Id The OCID of the ESXi host that is newly created to upgrade the original host.
- Vmware
Software stringVersion The version of VMware software that the Oracle Cloud VMware Solution installed on the ESXi hosts.
- billing
Contract StringEnd Date Current billing cycle end date. If the value in
currentSku
andnextSku
are different, the value specified innextSku
becomes the newcurrentSKU
when thecontractEndDate
is reached. Example:2016-08-25T21:10:29.600Z
- capacity
Reservation StringId The OCID of the Capacity Reservation.
- compartment
Id String The OCID of the compartment that contains the SDDC.
- compute
Availability StringDomain The availability domain of the ESXi host.
- compute
Instance StringId In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. The
computeInstanceId
is the OCID of that Compute instance.- current
Sku String The billing option currently used by the ESXi host. ListSupportedSkus.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- esxi
Host StringId - failed
Esxi StringHost Id The OCID of the esxi host that is failed.
- Map<String,Object>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- grace
Period StringEnd Date The date and time when the new esxi host should start billing cycle. RFC3339. Example:
2021-07-25T21:10:29.600Z
- host
Ocpu DoubleCount The OCPU count of the ESXi host.
- host
Shape StringName The compute shape name of the ESXi host. ListSupportedHostShapes.
- id String
The OCID of the ESXi host.
- next
Sku String The billing option to switch to after the current billing cycle ends. If
nextSku
is null or empty,currentSku
continues to the next billing cycle. ListSupportedSkus.- non
Upgraded StringEsxi Host Id The OCID of the ESXi host that will be upgraded.
- replacement
Esxi StringHost Id The OCID of the esxi host that is newly created to replace the failed node.
- sddc
Id String The OCID of the SDDC that the ESXi host belongs to.
- state String
The current state of the ESXi host.
- time
Created String The date and time the ESXi host was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String The date and time the ESXi host was updated, in the format defined by RFC3339.
- upgraded
Replacement StringEsxi Host Id The OCID of the ESXi host that is newly created to upgrade the original host.
- vmware
Software StringVersion The version of VMware software that the Oracle Cloud VMware Solution installed on the ESXi hosts.
- billing
Contract stringEnd Date Current billing cycle end date. If the value in
currentSku
andnextSku
are different, the value specified innextSku
becomes the newcurrentSKU
when thecontractEndDate
is reached. Example:2016-08-25T21:10:29.600Z
- capacity
Reservation stringId The OCID of the Capacity Reservation.
- compartment
Id string The OCID of the compartment that contains the SDDC.
- compute
Availability stringDomain The availability domain of the ESXi host.
- compute
Instance stringId In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. The
computeInstanceId
is the OCID of that Compute instance.- current
Sku string The billing option currently used by the ESXi host. ListSupportedSkus.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- esxi
Host stringId - failed
Esxi stringHost Id The OCID of the esxi host that is failed.
- {[key: string]: any}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- grace
Period stringEnd Date The date and time when the new esxi host should start billing cycle. RFC3339. Example:
2021-07-25T21:10:29.600Z
- host
Ocpu numberCount The OCPU count of the ESXi host.
- host
Shape stringName The compute shape name of the ESXi host. ListSupportedHostShapes.
- id string
The OCID of the ESXi host.
- next
Sku string The billing option to switch to after the current billing cycle ends. If
nextSku
is null or empty,currentSku
continues to the next billing cycle. ListSupportedSkus.- non
Upgraded stringEsxi Host Id The OCID of the ESXi host that will be upgraded.
- replacement
Esxi stringHost Id The OCID of the esxi host that is newly created to replace the failed node.
- sddc
Id string The OCID of the SDDC that the ESXi host belongs to.
- state string
The current state of the ESXi host.
- time
Created string The date and time the ESXi host was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated string The date and time the ESXi host was updated, in the format defined by RFC3339.
- upgraded
Replacement stringEsxi Host Id The OCID of the ESXi host that is newly created to upgrade the original host.
- vmware
Software stringVersion The version of VMware software that the Oracle Cloud VMware Solution installed on the ESXi hosts.
- billing_
contract_ strend_ date Current billing cycle end date. If the value in
currentSku
andnextSku
are different, the value specified innextSku
becomes the newcurrentSKU
when thecontractEndDate
is reached. Example:2016-08-25T21:10:29.600Z
- capacity_
reservation_ strid The OCID of the Capacity Reservation.
- compartment_
id str The OCID of the compartment that contains the SDDC.
- compute_
availability_ strdomain The availability domain of the ESXi host.
- compute_
instance_ strid In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. The
computeInstanceId
is the OCID of that Compute instance.- current_
sku str The billing option currently used by the ESXi host. ListSupportedSkus.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- esxi_
host_ strid - failed_
esxi_ strhost_ id The OCID of the esxi host that is failed.
- Mapping[str, Any]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- grace_
period_ strend_ date The date and time when the new esxi host should start billing cycle. RFC3339. Example:
2021-07-25T21:10:29.600Z
- host_
ocpu_ floatcount The OCPU count of the ESXi host.
- host_
shape_ strname The compute shape name of the ESXi host. ListSupportedHostShapes.
- id str
The OCID of the ESXi host.
- next_
sku str The billing option to switch to after the current billing cycle ends. If
nextSku
is null or empty,currentSku
continues to the next billing cycle. ListSupportedSkus.- non_
upgraded_ stresxi_ host_ id The OCID of the ESXi host that will be upgraded.
- replacement_
esxi_ strhost_ id The OCID of the esxi host that is newly created to replace the failed node.
- sddc_
id str The OCID of the SDDC that the ESXi host belongs to.
- state str
The current state of the ESXi host.
- time_
created str The date and time the ESXi host was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time_
updated str The date and time the ESXi host was updated, in the format defined by RFC3339.
- upgraded_
replacement_ stresxi_ host_ id The OCID of the ESXi host that is newly created to upgrade the original host.
- vmware_
software_ strversion The version of VMware software that the Oracle Cloud VMware Solution installed on the ESXi hosts.
- billing
Contract StringEnd Date Current billing cycle end date. If the value in
currentSku
andnextSku
are different, the value specified innextSku
becomes the newcurrentSKU
when thecontractEndDate
is reached. Example:2016-08-25T21:10:29.600Z
- capacity
Reservation StringId The OCID of the Capacity Reservation.
- compartment
Id String The OCID of the compartment that contains the SDDC.
- compute
Availability StringDomain The availability domain of the ESXi host.
- compute
Instance StringId In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. The
computeInstanceId
is the OCID of that Compute instance.- current
Sku String The billing option currently used by the ESXi host. ListSupportedSkus.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- esxi
Host StringId - failed
Esxi StringHost Id The OCID of the esxi host that is failed.
- Map<Any>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- grace
Period StringEnd Date The date and time when the new esxi host should start billing cycle. RFC3339. Example:
2021-07-25T21:10:29.600Z
- host
Ocpu NumberCount The OCPU count of the ESXi host.
- host
Shape StringName The compute shape name of the ESXi host. ListSupportedHostShapes.
- id String
The OCID of the ESXi host.
- next
Sku String The billing option to switch to after the current billing cycle ends. If
nextSku
is null or empty,currentSku
continues to the next billing cycle. ListSupportedSkus.- non
Upgraded StringEsxi Host Id The OCID of the ESXi host that will be upgraded.
- replacement
Esxi StringHost Id The OCID of the esxi host that is newly created to replace the failed node.
- sddc
Id String The OCID of the SDDC that the ESXi host belongs to.
- state String
The current state of the ESXi host.
- time
Created String The date and time the ESXi host was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String The date and time the ESXi host was updated, in the format defined by RFC3339.
- upgraded
Replacement StringEsxi Host Id The OCID of the ESXi host that is newly created to upgrade the original host.
- vmware
Software StringVersion The version of VMware software that the Oracle Cloud VMware Solution installed on the ESXi hosts.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.