Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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
Sequence[managementagent.
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[managementagent.install_ keys Get 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[managementagent.
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
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.