sysdig 1.56.1 published on Thursday, May 8, 2025 by sysdiglabs
sysdig.getAgentAccessKey
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sysdigAgentAccessKey = sysdig.getAgentAccessKey({
    id: 631123,
});
import pulumi
import pulumi_sysdig as sysdig
sysdig_agent_access_key = sysdig.get_agent_access_key(id=631123)
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sysdig.LookupAgentAccessKey(ctx, &sysdig.LookupAgentAccessKeyArgs{
			Id: 631123,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sysdig = Pulumi.Sysdig;
return await Deployment.RunAsync(() => 
{
    var sysdigAgentAccessKey = Sysdig.GetAgentAccessKey.Invoke(new()
    {
        Id = 631123,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.SysdigFunctions;
import com.pulumi.sysdig.inputs.GetAgentAccessKeyArgs;
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 sysdigAgentAccessKey = SysdigFunctions.getAgentAccessKey(GetAgentAccessKeyArgs.builder()
            .id("631123")
            .build());
    }
}
variables:
  sysdigAgentAccessKey:
    fn::invoke:
      function: sysdig:getAgentAccessKey
      arguments:
        id: '631123'
Using getAgentAccessKey
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 getAgentAccessKey(args: GetAgentAccessKeyArgs, opts?: InvokeOptions): Promise<GetAgentAccessKeyResult>
function getAgentAccessKeyOutput(args: GetAgentAccessKeyOutputArgs, opts?: InvokeOptions): Output<GetAgentAccessKeyResult>def get_agent_access_key(id: Optional[float] = None,
                         timeouts: Optional[GetAgentAccessKeyTimeouts] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAgentAccessKeyResult
def get_agent_access_key_output(id: Optional[pulumi.Input[float]] = None,
                         timeouts: Optional[pulumi.Input[GetAgentAccessKeyTimeoutsArgs]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetAgentAccessKeyResult]func LookupAgentAccessKey(ctx *Context, args *LookupAgentAccessKeyArgs, opts ...InvokeOption) (*LookupAgentAccessKeyResult, error)
func LookupAgentAccessKeyOutput(ctx *Context, args *LookupAgentAccessKeyOutputArgs, opts ...InvokeOption) LookupAgentAccessKeyResultOutput> Note: This function is named LookupAgentAccessKey in the Go SDK.
public static class GetAgentAccessKey 
{
    public static Task<GetAgentAccessKeyResult> InvokeAsync(GetAgentAccessKeyArgs args, InvokeOptions? opts = null)
    public static Output<GetAgentAccessKeyResult> Invoke(GetAgentAccessKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAgentAccessKeyResult> getAgentAccessKey(GetAgentAccessKeyArgs args, InvokeOptions options)
public static Output<GetAgentAccessKeyResult> getAgentAccessKey(GetAgentAccessKeyArgs args, InvokeOptions options)
fn::invoke:
  function: sysdig:index/getAgentAccessKey:getAgentAccessKey
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id float64
- Timeouts
GetAgent Access Key Timeouts 
- id Number
- timeouts Property Map
getAgentAccessKey Result
The following output properties are available:
- AccessKey string
- The agent access key
- DateCreated string
- Date when the agent key was created.
- DateDisabled string
- Date when the agent key was last disabled.
- Enabled bool
- Whether the agent access key is enabled or not.
- Id double
- Limit double
- The limit of the agent access key.
- Metadata Dictionary<string, string>
- The metadata of agent access key.
- Reservation double
- The reservation of the agent access key.
- TeamId double
- The team id of the agent access key.
- Timeouts
GetAgent Access Key Timeouts 
- AccessKey string
- The agent access key
- DateCreated string
- Date when the agent key was created.
- DateDisabled string
- Date when the agent key was last disabled.
- Enabled bool
- Whether the agent access key is enabled or not.
- Id float64
- Limit float64
- The limit of the agent access key.
- Metadata map[string]string
- The metadata of agent access key.
- Reservation float64
- The reservation of the agent access key.
- TeamId float64
- The team id of the agent access key.
- Timeouts
GetAgent Access Key Timeouts 
- accessKey String
- The agent access key
- dateCreated String
- Date when the agent key was created.
- dateDisabled String
- Date when the agent key was last disabled.
- enabled Boolean
- Whether the agent access key is enabled or not.
- id Double
- limit Double
- The limit of the agent access key.
- metadata Map<String,String>
- The metadata of agent access key.
- reservation Double
- The reservation of the agent access key.
- teamId Double
- The team id of the agent access key.
- timeouts
GetAgent Access Key Timeouts 
- accessKey string
- The agent access key
- dateCreated string
- Date when the agent key was created.
- dateDisabled string
- Date when the agent key was last disabled.
- enabled boolean
- Whether the agent access key is enabled or not.
- id number
- limit number
- The limit of the agent access key.
- metadata {[key: string]: string}
- The metadata of agent access key.
- reservation number
- The reservation of the agent access key.
- teamId number
- The team id of the agent access key.
- timeouts
GetAgent Access Key Timeouts 
- access_key str
- The agent access key
- date_created str
- Date when the agent key was created.
- date_disabled str
- Date when the agent key was last disabled.
- enabled bool
- Whether the agent access key is enabled or not.
- id float
- limit float
- The limit of the agent access key.
- metadata Mapping[str, str]
- The metadata of agent access key.
- reservation float
- The reservation of the agent access key.
- team_id float
- The team id of the agent access key.
- timeouts
GetAgent Access Key Timeouts 
- accessKey String
- The agent access key
- dateCreated String
- Date when the agent key was created.
- dateDisabled String
- Date when the agent key was last disabled.
- enabled Boolean
- Whether the agent access key is enabled or not.
- id Number
- limit Number
- The limit of the agent access key.
- metadata Map<String>
- The metadata of agent access key.
- reservation Number
- The reservation of the agent access key.
- teamId Number
- The team id of the agent access key.
- timeouts Property Map
Supporting Types
GetAgentAccessKeyTimeouts    
- Read string
- Read string
- read String
- read string
- read str
- read String
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the sysdigTerraform Provider.