Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Opsi.getImportableAgentEntity
Explore with Pulumi AI
This data source provides details about a specific Importable Agent Entity resource in Oracle Cloud Infrastructure Opsi service.
Gets a list of agent entities available to add a new hostInsight. An agent entity is “available” and will be shown if all the following conditions are true:
- The agent OCID is not already being used for an existing hostInsight.
- The agent availabilityStatus = ‘ACTIVE’
- The agent lifecycleState = ‘ACTIVE’
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testImportableAgentEntity = oci.Opsi.getImportableAgentEntity({
    compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_importable_agent_entity = oci.Opsi.get_importable_agent_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.GetImportableAgentEntity(ctx, &opsi.GetImportableAgentEntityArgs{
			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 testImportableAgentEntity = Oci.Opsi.GetImportableAgentEntity.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.GetImportableAgentEntityArgs;
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 testImportableAgentEntity = OpsiFunctions.getImportableAgentEntity(GetImportableAgentEntityArgs.builder()
            .compartmentId(compartmentId)
            .build());
    }
}
variables:
  testImportableAgentEntity:
    fn::invoke:
      function: oci:Opsi:getImportableAgentEntity
      arguments:
        compartmentId: ${compartmentId}
Using getImportableAgentEntity
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 getImportableAgentEntity(args: GetImportableAgentEntityArgs, opts?: InvokeOptions): Promise<GetImportableAgentEntityResult>
function getImportableAgentEntityOutput(args: GetImportableAgentEntityOutputArgs, opts?: InvokeOptions): Output<GetImportableAgentEntityResult>def get_importable_agent_entity(compartment_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetImportableAgentEntityResult
def get_importable_agent_entity_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetImportableAgentEntityResult]func GetImportableAgentEntity(ctx *Context, args *GetImportableAgentEntityArgs, opts ...InvokeOption) (*GetImportableAgentEntityResult, error)
func GetImportableAgentEntityOutput(ctx *Context, args *GetImportableAgentEntityOutputArgs, opts ...InvokeOption) GetImportableAgentEntityResultOutput> Note: This function is named GetImportableAgentEntity in the Go SDK.
public static class GetImportableAgentEntity 
{
    public static Task<GetImportableAgentEntityResult> InvokeAsync(GetImportableAgentEntityArgs args, InvokeOptions? opts = null)
    public static Output<GetImportableAgentEntityResult> Invoke(GetImportableAgentEntityInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetImportableAgentEntityResult> getImportableAgentEntity(GetImportableAgentEntityArgs args, InvokeOptions options)
public static Output<GetImportableAgentEntityResult> getImportableAgentEntity(GetImportableAgentEntityArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Opsi/getImportableAgentEntity:getImportableAgentEntity
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- CompartmentId string
- The OCID of the compartment.
- compartmentId String
- The OCID of the compartment.
- compartmentId string
- The OCID of the compartment.
- compartment_id str
- The OCID of the compartment.
- compartmentId String
- The OCID of the compartment.
getImportableAgentEntity Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetImportable Agent Entity Item> 
- Array of importable agent entity objects.
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetImportable Agent Entity Item 
- Array of importable agent entity objects.
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetImportable Agent Entity Item> 
- Array of importable agent entity objects.
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetImportable Agent Entity Item[] 
- Array of importable agent entity objects.
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetImportable Agent Entity Item] 
- Array of importable agent entity objects.
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of importable agent entity objects.
Supporting Types
GetImportableAgentEntityItem    
- EntitySource string
- Source of the importable agent entity.
- HostName string
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- ManagementAgent stringDisplay Name 
- The Display Name of the Management Agent
- ManagementAgent stringId 
- The OCID of the Management Agent
- PlatformType string
- Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX].
- EntitySource string
- Source of the importable agent entity.
- HostName string
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- ManagementAgent stringDisplay Name 
- The Display Name of the Management Agent
- ManagementAgent stringId 
- The OCID of the Management Agent
- PlatformType string
- Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX].
- entitySource String
- Source of the importable agent entity.
- hostName String
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- managementAgent StringDisplay Name 
- The Display Name of the Management Agent
- managementAgent StringId 
- The OCID of the Management Agent
- platformType String
- Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX].
- entitySource string
- Source of the importable agent entity.
- hostName string
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- managementAgent stringDisplay Name 
- The Display Name of the Management Agent
- managementAgent stringId 
- The OCID of the Management Agent
- platformType string
- Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX].
- 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.
- management_agent_ strdisplay_ name 
- The Display Name of the Management Agent
- management_agent_ strid 
- The OCID of the Management Agent
- platform_type str
- Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX].
- entitySource String
- Source of the importable agent entity.
- hostName String
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- managementAgent StringDisplay Name 
- The Display Name of the Management Agent
- managementAgent StringId 
- The OCID of the Management Agent
- platformType String
- Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX].
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.