Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Opsi.getImportableComputeEntity
Explore with Pulumi AI
This data source provides details about a specific Importable Compute Entity resource in Oracle Cloud Infrastructure Opsi service.
Gets a list of available compute intances running cloud agent to add a new hostInsight. An Compute entity is “available” and will be shown if all the following conditions are true:
- Compute is running OCA
- Oracle Cloud Infrastructure Management Agent is not enabled or If Oracle Cloud Infrastructure Management Agent is enabled 2.1 The agent OCID is not already being used for an existing hostInsight. 2.2 The agent availabilityStatus = ‘ACTIVE’ 2.3 The agent lifecycleState = ‘ACTIVE’
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testImportableComputeEntity = oci.Opsi.getImportableComputeEntity({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_importable_compute_entity = oci.Opsi.get_importable_compute_entity(compartment_id=compartment_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Opsi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Opsi.GetImportableComputeEntity(ctx, &opsi.GetImportableComputeEntityArgs{
CompartmentId: compartmentId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testImportableComputeEntity = Oci.Opsi.GetImportableComputeEntity.Invoke(new()
{
CompartmentId = compartmentId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Opsi.OpsiFunctions;
import com.pulumi.oci.Opsi.inputs.GetImportableComputeEntityArgs;
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 testImportableComputeEntity = OpsiFunctions.getImportableComputeEntity(GetImportableComputeEntityArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testImportableComputeEntity:
fn::invoke:
Function: oci:Opsi:getImportableComputeEntity
Arguments:
compartmentId: ${compartmentId}
Using getImportableComputeEntity
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 getImportableComputeEntity(args: GetImportableComputeEntityArgs, opts?: InvokeOptions): Promise<GetImportableComputeEntityResult>
function getImportableComputeEntityOutput(args: GetImportableComputeEntityOutputArgs, opts?: InvokeOptions): Output<GetImportableComputeEntityResult>
def get_importable_compute_entity(compartment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImportableComputeEntityResult
def get_importable_compute_entity_output(compartment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImportableComputeEntityResult]
func GetImportableComputeEntity(ctx *Context, args *GetImportableComputeEntityArgs, opts ...InvokeOption) (*GetImportableComputeEntityResult, error)
func GetImportableComputeEntityOutput(ctx *Context, args *GetImportableComputeEntityOutputArgs, opts ...InvokeOption) GetImportableComputeEntityResultOutput
> Note: This function is named GetImportableComputeEntity
in the Go SDK.
public static class GetImportableComputeEntity
{
public static Task<GetImportableComputeEntityResult> InvokeAsync(GetImportableComputeEntityArgs args, InvokeOptions? opts = null)
public static Output<GetImportableComputeEntityResult> Invoke(GetImportableComputeEntityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImportableComputeEntityResult> getImportableComputeEntity(GetImportableComputeEntityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Opsi/getImportableComputeEntity:getImportableComputeEntity
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Compartment
Id string - The OCID of the compartment.
- compartment
Id String - The OCID of the compartment.
- compartment
Id string - The OCID of the compartment.
- compartment_
id str - The OCID of the compartment.
- compartment
Id String - The OCID of the compartment.
getImportableComputeEntity Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Importable Compute Entity Item> - Array of importable compute entity objects.
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Importable Compute Entity Item - Array of importable compute entity objects.
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Importable Compute Entity Item> - Array of importable compute entity objects.
- compartment
Id string - The OCID of the compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Importable Compute Entity Item[] - Array of importable compute entity objects.
- compartment_
id str - The OCID of the compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[opsi.
Get Importable Compute Entity Item] - Array of importable compute entity objects.
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of importable compute entity objects.
Supporting Types
GetImportableComputeEntityItem
- Compartment
Id string - The OCID of the compartment.
- Compute
Display stringName - The Display Name of the Compute Instance
- Compute
Id string - The OCID of the Compute Instance
- Entity
Source string - Source of the importable agent entity.
- Host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
- Platform
Type string - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS].
- Compartment
Id string - The OCID of the compartment.
- Compute
Display stringName - The Display Name of the Compute Instance
- Compute
Id string - The OCID of the Compute Instance
- Entity
Source string - Source of the importable agent entity.
- Host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
- Platform
Type string - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS].
- compartment
Id String - The OCID of the compartment.
- compute
Display StringName - The Display Name of the Compute Instance
- compute
Id String - The OCID of the Compute Instance
- entity
Source String - Source of the importable agent entity.
- host
Name String - The host name. The host name is unique amongst the hosts managed by the same management agent.
- platform
Type String - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS].
- compartment
Id string - The OCID of the compartment.
- compute
Display stringName - The Display Name of the Compute Instance
- compute
Id string - The OCID of the Compute Instance
- entity
Source string - Source of the importable agent entity.
- host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
- platform
Type string - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS].
- compartment_
id str - The OCID of the compartment.
- compute_
display_ strname - The Display Name of the Compute Instance
- compute_
id str - The OCID of the Compute Instance
- entity_
source str - Source of the importable agent entity.
- host_
name str - The host name. The host name is unique amongst the hosts managed by the same management agent.
- platform_
type str - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS].
- compartment
Id String - The OCID of the compartment.
- compute
Display StringName - The Display Name of the Compute Instance
- compute
Id String - The OCID of the Compute Instance
- entity
Source String - Source of the importable agent entity.
- host
Name String - The host name. The host name is unique amongst the hosts managed by the same management agent.
- platform
Type String - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS].
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.