Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.ManagementAgent.getManagementAgentInstallKeys
Start a Neo task
Explain and create an oci.ManagementAgent.getManagementAgentInstallKeys resource
This data source provides the list of Management Agent Install Keys in Oracle Cloud Infrastructure Management Agent service.
Returns a list of Management Agent installed Keys.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagementAgentInstallKeys = oci.ManagementAgent.getManagementAgentInstallKeys({
compartmentId: compartmentId,
accessLevel: managementAgentInstallKeyAccessLevel,
compartmentIdInSubtree: managementAgentInstallKeyCompartmentIdInSubtree,
displayName: managementAgentInstallKeyDisplayName,
state: managementAgentInstallKeyState,
});
import pulumi
import pulumi_oci as oci
test_management_agent_install_keys = oci.ManagementAgent.get_management_agent_install_keys(compartment_id=compartment_id,
access_level=management_agent_install_key_access_level,
compartment_id_in_subtree=management_agent_install_key_compartment_id_in_subtree,
display_name=management_agent_install_key_display_name,
state=management_agent_install_key_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/managementagent"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := managementagent.GetManagementAgentInstallKeys(ctx, &managementagent.GetManagementAgentInstallKeysArgs{
CompartmentId: compartmentId,
AccessLevel: pulumi.StringRef(managementAgentInstallKeyAccessLevel),
CompartmentIdInSubtree: pulumi.BoolRef(managementAgentInstallKeyCompartmentIdInSubtree),
DisplayName: pulumi.StringRef(managementAgentInstallKeyDisplayName),
State: pulumi.StringRef(managementAgentInstallKeyState),
}, 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 testManagementAgentInstallKeys = Oci.ManagementAgent.GetManagementAgentInstallKeys.Invoke(new()
{
CompartmentId = compartmentId,
AccessLevel = managementAgentInstallKeyAccessLevel,
CompartmentIdInSubtree = managementAgentInstallKeyCompartmentIdInSubtree,
DisplayName = managementAgentInstallKeyDisplayName,
State = managementAgentInstallKeyState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ManagementAgent.ManagementAgentFunctions;
import com.pulumi.oci.ManagementAgent.inputs.GetManagementAgentInstallKeysArgs;
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 testManagementAgentInstallKeys = ManagementAgentFunctions.getManagementAgentInstallKeys(GetManagementAgentInstallKeysArgs.builder()
.compartmentId(compartmentId)
.accessLevel(managementAgentInstallKeyAccessLevel)
.compartmentIdInSubtree(managementAgentInstallKeyCompartmentIdInSubtree)
.displayName(managementAgentInstallKeyDisplayName)
.state(managementAgentInstallKeyState)
.build());
}
}
variables:
testManagementAgentInstallKeys:
fn::invoke:
function: oci:ManagementAgent:getManagementAgentInstallKeys
arguments:
compartmentId: ${compartmentId}
accessLevel: ${managementAgentInstallKeyAccessLevel}
compartmentIdInSubtree: ${managementAgentInstallKeyCompartmentIdInSubtree}
displayName: ${managementAgentInstallKeyDisplayName}
state: ${managementAgentInstallKeyState}
Using getManagementAgentInstallKeys
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 getManagementAgentInstallKeys(args: GetManagementAgentInstallKeysArgs, opts?: InvokeOptions): Promise<GetManagementAgentInstallKeysResult>
function getManagementAgentInstallKeysOutput(args: GetManagementAgentInstallKeysOutputArgs, opts?: InvokeOptions): Output<GetManagementAgentInstallKeysResult>def get_management_agent_install_keys(access_level: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetManagementAgentInstallKeysFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagementAgentInstallKeysResult
def get_management_agent_install_keys_output(access_level: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetManagementAgentInstallKeysFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentInstallKeysResult]func GetManagementAgentInstallKeys(ctx *Context, args *GetManagementAgentInstallKeysArgs, opts ...InvokeOption) (*GetManagementAgentInstallKeysResult, error)
func GetManagementAgentInstallKeysOutput(ctx *Context, args *GetManagementAgentInstallKeysOutputArgs, opts ...InvokeOption) GetManagementAgentInstallKeysResultOutput> Note: This function is named GetManagementAgentInstallKeys in the Go SDK.
public static class GetManagementAgentInstallKeys
{
public static Task<GetManagementAgentInstallKeysResult> InvokeAsync(GetManagementAgentInstallKeysArgs args, InvokeOptions? opts = null)
public static Output<GetManagementAgentInstallKeysResult> Invoke(GetManagementAgentInstallKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagementAgentInstallKeysResult> getManagementAgentInstallKeys(GetManagementAgentInstallKeysArgs args, InvokeOptions options)
public static Output<GetManagementAgentInstallKeysResult> getManagementAgentInstallKeys(GetManagementAgentInstallKeysArgs args, InvokeOptions options)
fn::invoke:
function: oci:ManagementAgent/getManagementAgentInstallKeys:getManagementAgentInstallKeys
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment to which a request will be scoped.
- Access
Level string - Value of this is always "ACCESSIBLE" and any other value is not supported.
- Compartment
Id boolIn Subtree - if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- Display
Name string - The display name for which the Key needs to be listed.
- Filters
List<Get
Management Agent Install Keys Filter> - State string
- Filter to return only Management Agents in the particular lifecycle state.
- Compartment
Id string - The OCID of the compartment to which a request will be scoped.
- Access
Level string - Value of this is always "ACCESSIBLE" and any other value is not supported.
- Compartment
Id boolIn Subtree - if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- Display
Name string - The display name for which the Key needs to be listed.
- Filters
[]Get
Management Agent Install Keys Filter - State string
- Filter to return only Management Agents in the particular lifecycle state.
- compartment
Id String - The OCID of the compartment to which a request will be scoped.
- access
Level String - Value of this is always "ACCESSIBLE" and any other value is not supported.
- compartment
Id BooleanIn Subtree - if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- display
Name String - The display name for which the Key needs to be listed.
- filters
List<Get
Install Keys Filter> - state String
- Filter to return only Management Agents in the particular lifecycle state.
- compartment
Id string - The OCID of the compartment to which a request will be scoped.
- access
Level string - Value of this is always "ACCESSIBLE" and any other value is not supported.
- compartment
Id booleanIn Subtree - if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- display
Name string - The display name for which the Key needs to be listed.
- filters
Get
Management Agent Install Keys Filter[] - state string
- Filter to return only Management Agents in the particular lifecycle state.
- compartment_
id str - The OCID of the compartment to which a request will be scoped.
- access_
level str - Value of this is always "ACCESSIBLE" and any other value is not supported.
- compartment_
id_ boolin_ subtree - if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- display_
name str - The display name for which the Key needs to be listed.
- filters
Sequence[Get
Management Agent Install Keys Filter] - state str
- Filter to return only Management Agents in the particular lifecycle state.
- compartment
Id String - The OCID of the compartment to which a request will be scoped.
- access
Level String - Value of this is always "ACCESSIBLE" and any other value is not supported.
- compartment
Id BooleanIn Subtree - if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- display
Name String - The display name for which the Key needs to be listed.
- filters List<Property Map>
- state String
- Filter to return only Management Agents in the particular lifecycle state.
getManagementAgentInstallKeys Result
The following output properties are available:
- Compartment
Id string - Compartment Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Management
Agent List<GetInstall Keys Management Agent Install Keys Management Agent Install Key> - The list of management_agent_install_keys.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - Management Agent Install Key Name
- Filters
List<Get
Management Agent Install Keys Filter> - State string
- Status of Key
- Compartment
Id string - Compartment Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Management
Agent []GetInstall Keys Management Agent Install Keys Management Agent Install Key - The list of management_agent_install_keys.
- Access
Level string - Compartment
Id boolIn Subtree - Display
Name string - Management Agent Install Key Name
- Filters
[]Get
Management Agent Install Keys Filter - State string
- Status of Key
- compartment
Id String - Compartment Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- management
Agent List<GetInstall Keys Install Keys Install Key> - The list of management_agent_install_keys.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - Management Agent Install Key Name
- filters
List<Get
Install Keys Filter> - state String
- Status of Key
- compartment
Id string - Compartment Identifier
- id string
- The provider-assigned unique ID for this managed resource.
- management
Agent GetInstall Keys Management Agent Install Keys Management Agent Install Key[] - The list of management_agent_install_keys.
- access
Level string - compartment
Id booleanIn Subtree - display
Name string - Management Agent Install Key Name
- filters
Get
Management Agent Install Keys Filter[] - state string
- Status of Key
- compartment_
id str - Compartment Identifier
- id str
- The provider-assigned unique ID for this managed resource.
- management_
agent_ Sequence[Getinstall_ keys Management Agent Install Keys Management Agent Install Key] - The list of management_agent_install_keys.
- access_
level str - compartment_
id_ boolin_ subtree - display_
name str - Management Agent Install Key Name
- filters
Sequence[Get
Management Agent Install Keys Filter] - state str
- Status of Key
- compartment
Id String - Compartment Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- management
Agent List<Property Map>Install Keys - The list of management_agent_install_keys.
- access
Level String - compartment
Id BooleanIn Subtree - display
Name String - Management Agent Install Key Name
- filters List<Property Map>
- state String
- Status of Key
Supporting Types
GetManagementAgentInstallKeysFilter
GetManagementAgentInstallKeysManagementAgentInstallKey
- Allowed
Key intInstall Count - Total number of install for this keys
- Compartment
Id string - The OCID of the compartment to which a request will be scoped.
- Created
By stringPrincipal Id - Principal id of user who created the Agent Install key
- Current
Key intInstall Count - Total number of install for this keys
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - The display name for which the Key needs to be listed.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- Agent install Key identifier
- Is
Unlimited bool - If set to true, the install key has no expiration date or usage limit. Properties allowedKeyInstallCount and timeExpires are ignored if set to true. Defaults to false.
- Key string
- Management Agent Install Key
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- State string
- Filter to return only Management Agents in the particular lifecycle state.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time when Management Agent install Key was created. An RFC3339 formatted date time string
- Time
Expires string - date after which key would expire after creation
- Time
Updated string - The time when Management Agent install Key was updated. An RFC3339 formatted date time string
- Allowed
Key intInstall Count - Total number of install for this keys
- Compartment
Id string - The OCID of the compartment to which a request will be scoped.
- Created
By stringPrincipal Id - Principal id of user who created the Agent Install key
- Current
Key intInstall Count - Total number of install for this keys
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - The display name for which the Key needs to be listed.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- Agent install Key identifier
- Is
Unlimited bool - If set to true, the install key has no expiration date or usage limit. Properties allowedKeyInstallCount and timeExpires are ignored if set to true. Defaults to false.
- Key string
- Management Agent Install Key
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- State string
- Filter to return only Management Agents in the particular lifecycle state.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time when Management Agent install Key was created. An RFC3339 formatted date time string
- Time
Expires string - date after which key would expire after creation
- Time
Updated string - The time when Management Agent install Key was updated. An RFC3339 formatted date time string
- allowed
Key IntegerInstall Count - Total number of install for this keys
- compartment
Id String - The OCID of the compartment to which a request will be scoped.
- created
By StringPrincipal Id - Principal id of user who created the Agent Install key
- current
Key IntegerInstall Count - Total number of install for this keys
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - The display name for which the Key needs to be listed.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- Agent install Key identifier
- is
Unlimited Boolean - If set to true, the install key has no expiration date or usage limit. Properties allowedKeyInstallCount and timeExpires are ignored if set to true. Defaults to false.
- key String
- Management Agent Install Key
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- state String
- Filter to return only Management Agents in the particular lifecycle state.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time when Management Agent install Key was created. An RFC3339 formatted date time string
- time
Expires String - date after which key would expire after creation
- time
Updated String - The time when Management Agent install Key was updated. An RFC3339 formatted date time string
- allowed
Key numberInstall Count - Total number of install for this keys
- compartment
Id string - The OCID of the compartment to which a request will be scoped.
- created
By stringPrincipal Id - Principal id of user who created the Agent Install key
- current
Key numberInstall Count - Total number of install for this keys
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name string - The display name for which the Key needs to be listed.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- Agent install Key identifier
- is
Unlimited boolean - If set to true, the install key has no expiration date or usage limit. Properties allowedKeyInstallCount and timeExpires are ignored if set to true. Defaults to false.
- key string
- Management Agent Install Key
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- state string
- Filter to return only Management Agents in the particular lifecycle state.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The time when Management Agent install Key was created. An RFC3339 formatted date time string
- time
Expires string - date after which key would expire after creation
- time
Updated string - The time when Management Agent install Key was updated. An RFC3339 formatted date time string
- allowed_
key_ intinstall_ count - Total number of install for this keys
- compartment_
id str - The OCID of the compartment to which a request will be scoped.
- created_
by_ strprincipal_ id - Principal id of user who created the Agent Install key
- current_
key_ intinstall_ count - Total number of install for this keys
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display_
name str - The display name for which the Key needs to be listed.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id str
- Agent install Key identifier
- is_
unlimited bool - If set to true, the install key has no expiration date or usage limit. Properties allowedKeyInstallCount and timeExpires are ignored if set to true. Defaults to false.
- key str
- Management Agent Install Key
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- state str
- Filter to return only Management Agents in the particular lifecycle state.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The time when Management Agent install Key was created. An RFC3339 formatted date time string
- time_
expires str - date after which key would expire after creation
- time_
updated str - The time when Management Agent install Key was updated. An RFC3339 formatted date time string
- allowed
Key NumberInstall Count - Total number of install for this keys
- compartment
Id String - The OCID of the compartment to which a request will be scoped.
- created
By StringPrincipal Id - Principal id of user who created the Agent Install key
- current
Key NumberInstall Count - Total number of install for this keys
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - The display name for which the Key needs to be listed.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- Agent install Key identifier
- is
Unlimited Boolean - If set to true, the install key has no expiration date or usage limit. Properties allowedKeyInstallCount and timeExpires are ignored if set to true. Defaults to false.
- key String
- Management Agent Install Key
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- state String
- Filter to return only Management Agents in the particular lifecycle state.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time when Management Agent install Key was created. An RFC3339 formatted date time string
- time
Expires String - date after which key would expire after creation
- time
Updated String - The time when Management Agent install Key was updated. An RFC3339 formatted date time string
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
