Oracle Cloud Infrastructure
getManagementAgentInstallKeys
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testManagementAgentInstallKeys = Output.Create(Oci.ManagementAgent.GetManagementAgentInstallKeys.InvokeAsync(new Oci.ManagementAgent.GetManagementAgentInstallKeysArgs
{
CompartmentId = @var.Compartment_id,
AccessLevel = @var.Management_agent_install_key_access_level,
CompartmentIdInSubtree = @var.Management_agent_install_key_compartment_id_in_subtree,
DisplayName = @var.Management_agent_install_key_display_name,
State = @var.Management_agent_install_key_state,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
AccessLevel: pulumi.StringRef(_var.Management_agent_install_key_access_level),
CompartmentIdInSubtree: pulumi.BoolRef(_var.Management_agent_install_key_compartment_id_in_subtree),
DisplayName: pulumi.StringRef(_var.Management_agent_install_key_display_name),
State: pulumi.StringRef(_var.Management_agent_install_key_state),
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_management_agent_install_keys = oci.ManagementAgent.get_management_agent_install_keys(compartment_id=var["compartment_id"],
access_level=var["management_agent_install_key_access_level"],
compartment_id_in_subtree=var["management_agent_install_key_compartment_id_in_subtree"],
display_name=var["management_agent_install_key_display_name"],
state=var["management_agent_install_key_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagementAgentInstallKeys = oci.ManagementAgent.getManagementAgentInstallKeys({
compartmentId: _var.compartment_id,
accessLevel: _var.management_agent_install_key_access_level,
compartmentIdInSubtree: _var.management_agent_install_key_compartment_id_in_subtree,
displayName: _var.management_agent_install_key_display_name,
state: _var.management_agent_install_key_state,
});
Coming soon!
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[_managementagent.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[_managementagent.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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:ManagementAgent/getManagementAgentInstallKeys:getManagementAgentInstallKeys
Arguments:
# Arguments dictionary
The 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
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_ 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
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
- Display
Name string The display name for which the Key needs to be listed.
- 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.
- 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
- Display
Name string The display name for which the Key needs to be listed.
- 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.
- 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
- display
Name String The display name for which the Key needs to be listed.
- 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.
- 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
- display
Name string The display name for which the Key needs to be listed.
- 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.
- 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
- 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
- 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
- display
Name String The display name for which the Key needs to be listed.
- 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.
- 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
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.