Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ManagementAgent.getManagementAgentInstallKeys
Explore with Pulumi AI
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/v2/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:
- CompartmentId string
- The OCID of the compartment to which a request will be scoped.
- AccessLevel string
- Value of this is always "ACCESSIBLE" and any other value is not supported.
- CompartmentId boolIn Subtree 
- if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- DisplayName string
- The display name for which the Key needs to be listed.
- Filters
List<GetManagement Agent Install Keys Filter> 
- State string
- Filter to return only Management Agents in the particular lifecycle state.
- CompartmentId string
- The OCID of the compartment to which a request will be scoped.
- AccessLevel string
- Value of this is always "ACCESSIBLE" and any other value is not supported.
- CompartmentId boolIn Subtree 
- if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- DisplayName string
- The display name for which the Key needs to be listed.
- Filters
[]GetManagement Agent Install Keys Filter 
- State string
- Filter to return only Management Agents in the particular lifecycle state.
- compartmentId String
- The OCID of the compartment to which a request will be scoped.
- accessLevel String
- Value of this is always "ACCESSIBLE" and any other value is not supported.
- compartmentId BooleanIn Subtree 
- if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- displayName String
- The display name for which the Key needs to be listed.
- filters
List<GetInstall Keys Filter> 
- state String
- Filter to return only Management Agents in the particular lifecycle state.
- compartmentId string
- The OCID of the compartment to which a request will be scoped.
- accessLevel string
- Value of this is always "ACCESSIBLE" and any other value is not supported.
- compartmentId booleanIn Subtree 
- if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- displayName string
- The display name for which the Key needs to be listed.
- filters
GetManagement 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[GetManagement Agent Install Keys Filter] 
- state str
- Filter to return only Management Agents in the particular lifecycle state.
- compartmentId String
- The OCID of the compartment to which a request will be scoped.
- accessLevel String
- Value of this is always "ACCESSIBLE" and any other value is not supported.
- compartmentId BooleanIn Subtree 
- if set to true then it fetches resources for all compartments where user has access to else only on the compartment specified.
- displayName 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:
- CompartmentId string
- Compartment Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagementAgent List<GetInstall Keys Management Agent Install Keys Management Agent Install Key> 
- The list of management_agent_install_keys.
- AccessLevel string
- CompartmentId boolIn Subtree 
- DisplayName string
- Management Agent Install Key Name
- Filters
List<GetManagement Agent Install Keys Filter> 
- State string
- Status of Key
- CompartmentId string
- Compartment Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagementAgent []GetInstall Keys Management Agent Install Keys Management Agent Install Key 
- The list of management_agent_install_keys.
- AccessLevel string
- CompartmentId boolIn Subtree 
- DisplayName string
- Management Agent Install Key Name
- Filters
[]GetManagement Agent Install Keys Filter 
- State string
- Status of Key
- compartmentId String
- Compartment Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- managementAgent List<GetInstall Keys Install Keys Install Key> 
- The list of management_agent_install_keys.
- accessLevel String
- compartmentId BooleanIn Subtree 
- displayName String
- Management Agent Install Key Name
- filters
List<GetInstall Keys Filter> 
- state String
- Status of Key
- compartmentId string
- Compartment Identifier
- id string
- The provider-assigned unique ID for this managed resource.
- managementAgent GetInstall Keys Management Agent Install Keys Management Agent Install Key[] 
- The list of management_agent_install_keys.
- accessLevel string
- compartmentId booleanIn Subtree 
- displayName string
- Management Agent Install Key Name
- filters
GetManagement 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[GetManagement Agent Install Keys Filter] 
- state str
- Status of Key
- compartmentId String
- Compartment Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- managementAgent List<Property Map>Install Keys 
- The list of management_agent_install_keys.
- accessLevel String
- compartmentId BooleanIn Subtree 
- displayName String
- Management Agent Install Key Name
- filters List<Property Map>
- state String
- Status of Key
Supporting Types
GetManagementAgentInstallKeysFilter     
GetManagementAgentInstallKeysManagementAgentInstallKey        
- AllowedKey intInstall Count 
- Total number of install for this keys
- CompartmentId string
- The OCID of the compartment to which a request will be scoped.
- CreatedBy stringPrincipal Id 
- Principal id of user who created the Agent Install key
- CurrentKey intInstall Count 
- Total number of install for this keys
- DisplayName string
- The display name for which the Key needs to be listed.
- Id string
- Agent install Key identifier
- IsUnlimited 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
- LifecycleDetails 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.
- TimeCreated string
- The time when Management Agent install Key was created. An RFC3339 formatted date time string
- TimeExpires string
- date after which key would expire after creation
- TimeUpdated string
- The time when Management Agent install Key was updated. An RFC3339 formatted date time string
- AllowedKey intInstall Count 
- Total number of install for this keys
- CompartmentId string
- The OCID of the compartment to which a request will be scoped.
- CreatedBy stringPrincipal Id 
- Principal id of user who created the Agent Install key
- CurrentKey intInstall Count 
- Total number of install for this keys
- DisplayName string
- The display name for which the Key needs to be listed.
- Id string
- Agent install Key identifier
- IsUnlimited 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
- LifecycleDetails 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.
- TimeCreated string
- The time when Management Agent install Key was created. An RFC3339 formatted date time string
- TimeExpires string
- date after which key would expire after creation
- TimeUpdated string
- The time when Management Agent install Key was updated. An RFC3339 formatted date time string
- allowedKey IntegerInstall Count 
- Total number of install for this keys
- compartmentId String
- The OCID of the compartment to which a request will be scoped.
- createdBy StringPrincipal Id 
- Principal id of user who created the Agent Install key
- currentKey IntegerInstall Count 
- Total number of install for this keys
- displayName String
- The display name for which the Key needs to be listed.
- id String
- Agent install Key identifier
- isUnlimited 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
- lifecycleDetails 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.
- timeCreated String
- The time when Management Agent install Key was created. An RFC3339 formatted date time string
- timeExpires String
- date after which key would expire after creation
- timeUpdated String
- The time when Management Agent install Key was updated. An RFC3339 formatted date time string
- allowedKey numberInstall Count 
- Total number of install for this keys
- compartmentId string
- The OCID of the compartment to which a request will be scoped.
- createdBy stringPrincipal Id 
- Principal id of user who created the Agent Install key
- currentKey numberInstall Count 
- Total number of install for this keys
- displayName string
- The display name for which the Key needs to be listed.
- id string
- Agent install Key identifier
- isUnlimited 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
- lifecycleDetails 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.
- timeCreated string
- The time when Management Agent install Key was created. An RFC3339 formatted date time string
- timeExpires string
- date after which key would expire after creation
- timeUpdated 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
- display_name str
- The display name for which the Key needs to be listed.
- 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.
- 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
- allowedKey NumberInstall Count 
- Total number of install for this keys
- compartmentId String
- The OCID of the compartment to which a request will be scoped.
- createdBy StringPrincipal Id 
- Principal id of user who created the Agent Install key
- currentKey NumberInstall Count 
- Total number of install for this keys
- displayName String
- The display name for which the Key needs to be listed.
- id String
- Agent install Key identifier
- isUnlimited 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
- lifecycleDetails 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.
- timeCreated String
- The time when Management Agent install Key was created. An RFC3339 formatted date time string
- timeExpires String
- date after which key would expire after creation
- timeUpdated 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.