1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. getImportableAgentEntities
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Opsi.getImportableAgentEntities

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides the list of Importable Agent Entities 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:

  1. The agent OCID is not already being used for an existing hostInsight.
  2. The agent availabilityStatus = ‘ACTIVE’
  3. The agent lifecycleState = ‘ACTIVE’

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testImportableAgentEntities = oci.Opsi.getImportableAgentEntities({
    compartmentId: compartmentId,
});
Copy
import pulumi
import pulumi_oci as oci

test_importable_agent_entities = oci.Opsi.get_importable_agent_entities(compartment_id=compartment_id)
Copy
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.GetImportableAgentEntities(ctx, &opsi.GetImportableAgentEntitiesArgs{
			CompartmentId: compartmentId,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testImportableAgentEntities = Oci.Opsi.GetImportableAgentEntities.Invoke(new()
    {
        CompartmentId = compartmentId,
    });

});
Copy
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.GetImportableAgentEntitiesArgs;
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 testImportableAgentEntities = OpsiFunctions.getImportableAgentEntities(GetImportableAgentEntitiesArgs.builder()
            .compartmentId(compartmentId)
            .build());

    }
}
Copy
variables:
  testImportableAgentEntities:
    fn::invoke:
      function: oci:Opsi:getImportableAgentEntities
      arguments:
        compartmentId: ${compartmentId}
Copy

Using getImportableAgentEntities

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 getImportableAgentEntities(args: GetImportableAgentEntitiesArgs, opts?: InvokeOptions): Promise<GetImportableAgentEntitiesResult>
function getImportableAgentEntitiesOutput(args: GetImportableAgentEntitiesOutputArgs, opts?: InvokeOptions): Output<GetImportableAgentEntitiesResult>
Copy
def get_importable_agent_entities(compartment_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetImportableAgentEntitiesResult
def get_importable_agent_entities_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetImportableAgentEntitiesResult]
Copy
func GetImportableAgentEntities(ctx *Context, args *GetImportableAgentEntitiesArgs, opts ...InvokeOption) (*GetImportableAgentEntitiesResult, error)
func GetImportableAgentEntitiesOutput(ctx *Context, args *GetImportableAgentEntitiesOutputArgs, opts ...InvokeOption) GetImportableAgentEntitiesResultOutput
Copy

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

public static class GetImportableAgentEntities 
{
    public static Task<GetImportableAgentEntitiesResult> InvokeAsync(GetImportableAgentEntitiesArgs args, InvokeOptions? opts = null)
    public static Output<GetImportableAgentEntitiesResult> Invoke(GetImportableAgentEntitiesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetImportableAgentEntitiesResult> getImportableAgentEntities(GetImportableAgentEntitiesArgs args, InvokeOptions options)
public static Output<GetImportableAgentEntitiesResult> getImportableAgentEntities(GetImportableAgentEntitiesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Opsi/getImportableAgentEntities:getImportableAgentEntities
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
CompartmentId This property is required. string
The OCID of the compartment.
compartmentId This property is required. String
The OCID of the compartment.
compartmentId This property is required. string
The OCID of the compartment.
compartment_id This property is required. str
The OCID of the compartment.
compartmentId This property is required. String
The OCID of the compartment.

getImportableAgentEntities Result

The following output properties are available:

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
Items List<GetImportableAgentEntitiesItem>
Array of importable agent entity objects.
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
Items []GetImportableAgentEntitiesItem
Array of importable agent entity objects.
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
items List<GetImportableAgentEntitiesItem>
Array of importable agent entity objects.
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
items GetImportableAgentEntitiesItem[]
Array of importable agent entity objects.
compartment_id str
id str
The provider-assigned unique ID for this managed resource.
items Sequence[opsi.GetImportableAgentEntitiesItem]
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

GetImportableAgentEntitiesItem

EntitySource This property is required. string
Source of the importable agent entity.
HostName This property is required. string
The host name. The host name is unique amongst the hosts managed by the same management agent.
ManagementAgentDisplayName This property is required. string
The Display Name of the Management Agent
ManagementAgentId This property is required. string
The OCID of the Management Agent
PlatformType This property is required. 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 This property is required. string
Source of the importable agent entity.
HostName This property is required. string
The host name. The host name is unique amongst the hosts managed by the same management agent.
ManagementAgentDisplayName This property is required. string
The Display Name of the Management Agent
ManagementAgentId This property is required. string
The OCID of the Management Agent
PlatformType This property is required. 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 This property is required. String
Source of the importable agent entity.
hostName This property is required. String
The host name. The host name is unique amongst the hosts managed by the same management agent.
managementAgentDisplayName This property is required. String
The Display Name of the Management Agent
managementAgentId This property is required. String
The OCID of the Management Agent
platformType This property is required. 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 This property is required. string
Source of the importable agent entity.
hostName This property is required. string
The host name. The host name is unique amongst the hosts managed by the same management agent.
managementAgentDisplayName This property is required. string
The Display Name of the Management Agent
managementAgentId This property is required. string
The OCID of the Management Agent
platformType This property is required. 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 This property is required. str
Source of the importable agent entity.
host_name This property is required. str
The host name. The host name is unique amongst the hosts managed by the same management agent.
management_agent_display_name This property is required. str
The Display Name of the Management Agent
management_agent_id This property is required. str
The OCID of the Management Agent
platform_type This property is required. 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 This property is required. String
Source of the importable agent entity.
hostName This property is required. String
The host name. The host name is unique amongst the hosts managed by the same management agent.
managementAgentDisplayName This property is required. String
The Display Name of the Management Agent
managementAgentId This property is required. String
The OCID of the Management Agent
platformType This property is required. 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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi