Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.ManagementAgent.getManagementAgentInstallKey
Explore with Pulumi AI
This data source provides details about a specific Management Agent Install Key resource in Oracle Cloud Infrastructure Management Agent service.
Gets complete details of the Agent install Key for a given key id
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagementAgentInstallKey = oci.ManagementAgent.getManagementAgentInstallKey({
managementAgentInstallKeyId: testManagementAgentInstallKeyOciManagementAgentManagementAgentInstallKey.id,
});
import pulumi
import pulumi_oci as oci
test_management_agent_install_key = oci.ManagementAgent.get_management_agent_install_key(management_agent_install_key_id=test_management_agent_install_key_oci_management_agent_management_agent_install_key["id"])
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.GetManagementAgentInstallKey(ctx, &managementagent.GetManagementAgentInstallKeyArgs{
ManagementAgentInstallKeyId: testManagementAgentInstallKeyOciManagementAgentManagementAgentInstallKey.Id,
}, 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 testManagementAgentInstallKey = Oci.ManagementAgent.GetManagementAgentInstallKey.Invoke(new()
{
ManagementAgentInstallKeyId = testManagementAgentInstallKeyOciManagementAgentManagementAgentInstallKey.Id,
});
});
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.GetManagementAgentInstallKeyArgs;
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 testManagementAgentInstallKey = ManagementAgentFunctions.getManagementAgentInstallKey(GetManagementAgentInstallKeyArgs.builder()
.managementAgentInstallKeyId(testManagementAgentInstallKeyOciManagementAgentManagementAgentInstallKey.id())
.build());
}
}
variables:
testManagementAgentInstallKey:
fn::invoke:
Function: oci:ManagementAgent:getManagementAgentInstallKey
Arguments:
managementAgentInstallKeyId: ${testManagementAgentInstallKeyOciManagementAgentManagementAgentInstallKey.id}
Using getManagementAgentInstallKey
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 getManagementAgentInstallKey(args: GetManagementAgentInstallKeyArgs, opts?: InvokeOptions): Promise<GetManagementAgentInstallKeyResult>
function getManagementAgentInstallKeyOutput(args: GetManagementAgentInstallKeyOutputArgs, opts?: InvokeOptions): Output<GetManagementAgentInstallKeyResult>
def get_management_agent_install_key(management_agent_install_key_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagementAgentInstallKeyResult
def get_management_agent_install_key_output(management_agent_install_key_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentInstallKeyResult]
func GetManagementAgentInstallKey(ctx *Context, args *GetManagementAgentInstallKeyArgs, opts ...InvokeOption) (*GetManagementAgentInstallKeyResult, error)
func GetManagementAgentInstallKeyOutput(ctx *Context, args *GetManagementAgentInstallKeyOutputArgs, opts ...InvokeOption) GetManagementAgentInstallKeyResultOutput
> Note: This function is named GetManagementAgentInstallKey
in the Go SDK.
public static class GetManagementAgentInstallKey
{
public static Task<GetManagementAgentInstallKeyResult> InvokeAsync(GetManagementAgentInstallKeyArgs args, InvokeOptions? opts = null)
public static Output<GetManagementAgentInstallKeyResult> Invoke(GetManagementAgentInstallKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagementAgentInstallKeyResult> getManagementAgentInstallKey(GetManagementAgentInstallKeyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ManagementAgent/getManagementAgentInstallKey:getManagementAgentInstallKey
arguments:
# arguments dictionary
The following arguments are supported:
- Management
Agent stringInstall Key Id - Unique Management Agent Install Key identifier
- Management
Agent stringInstall Key Id - Unique Management Agent Install Key identifier
- management
Agent StringInstall Key Id - Unique Management Agent Install Key identifier
- management
Agent stringInstall Key Id - Unique Management Agent Install Key identifier
- management_
agent_ strinstall_ key_ id - Unique Management Agent Install Key identifier
- management
Agent StringInstall Key Id - Unique Management Agent Install Key identifier
getManagementAgentInstallKey Result
The following output properties are available:
- Allowed
Key intInstall Count - Total number of install for this keys
- Compartment
Id string - Compartment Identifier
- 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 - Management Agent Install Key Name
- 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.
- Management
Agent stringInstall Key Id - State string
- Status of Key
- 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 - Compartment Identifier
- 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 - Management Agent Install Key Name
- 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.
- Management
Agent stringInstall Key Id - State string
- Status of Key
- 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 - Compartment Identifier
- 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 - Management Agent Install Key Name
- 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.
- management
Agent StringInstall Key Id - state String
- Status of Key
- 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 - Compartment Identifier
- 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 - Management Agent Install Key Name
- 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.
- management
Agent stringInstall Key Id - state string
- Status of Key
- 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 - Compartment Identifier
- 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 - Management Agent Install Key Name
- 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.
- management_
agent_ strinstall_ key_ id - state str
- Status of Key
- 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 - Compartment Identifier
- 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 - Management Agent Install Key Name
- 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.
- management
Agent StringInstall Key Id - state String
- Status of Key
- 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.