Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
Static secret data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as akeyless from "@pulumi/akeyless";
const secret = akeyless.getStaticSecret({
path: "terraform/MyFirstSecret",
});
import pulumi
import pulumi_akeyless as akeyless
secret = akeyless.get_static_secret(path="terraform/MyFirstSecret")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/akeyless/v2/akeyless"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := akeyless.LookupStaticSecret(ctx, &akeyless.LookupStaticSecretArgs{
Path: "terraform/MyFirstSecret",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Akeyless = Pulumi.Akeyless;
return await Deployment.RunAsync(() =>
{
var secret = Akeyless.GetStaticSecret.Invoke(new()
{
Path = "terraform/MyFirstSecret",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akeyless.AkeylessFunctions;
import com.pulumi.akeyless.inputs.GetStaticSecretArgs;
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 secret = AkeylessFunctions.getStaticSecret(GetStaticSecretArgs.builder()
.path("terraform/MyFirstSecret")
.build());
}
}
variables:
secret:
fn::invoke:
function: akeyless:getStaticSecret
arguments:
path: terraform/MyFirstSecret
Using getStaticSecret
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 getStaticSecret(args: GetStaticSecretArgs, opts?: InvokeOptions): Promise<GetStaticSecretResult>
function getStaticSecretOutput(args: GetStaticSecretOutputArgs, opts?: InvokeOptions): Output<GetStaticSecretResult>def get_static_secret(id: Optional[str] = None,
ignore_cache: Optional[str] = None,
path: Optional[str] = None,
version: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetStaticSecretResult
def get_static_secret_output(id: pulumi.Input[Optional[str]] = None,
ignore_cache: pulumi.Input[Optional[str]] = None,
path: pulumi.Input[Optional[str]] = None,
version: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStaticSecretResult]func LookupStaticSecret(ctx *Context, args *LookupStaticSecretArgs, opts ...InvokeOption) (*LookupStaticSecretResult, error)
func LookupStaticSecretOutput(ctx *Context, args *LookupStaticSecretOutputArgs, opts ...InvokeOption) LookupStaticSecretResultOutput> Note: This function is named LookupStaticSecret in the Go SDK.
public static class GetStaticSecret
{
public static Task<GetStaticSecretResult> InvokeAsync(GetStaticSecretArgs args, InvokeOptions? opts = null)
public static Output<GetStaticSecretResult> Invoke(GetStaticSecretInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStaticSecretResult> getStaticSecret(GetStaticSecretArgs args, InvokeOptions options)
public static Output<GetStaticSecretResult> getStaticSecret(GetStaticSecretArgs args, InvokeOptions options)
fn::invoke:
function: akeyless:index/getStaticSecret:getStaticSecret
arguments:
# arguments dictionaryThe following arguments are supported:
- Path string
- The path where the secret is stored. Defaults to the latest version.
- Id string
- The ID of this resource.
- Ignore
Cache string - Retrieve the Secret value without checking the Gateway's cache [true/false]
- Version double
- The version of the secret.
- Path string
- The path where the secret is stored. Defaults to the latest version.
- Id string
- The ID of this resource.
- Ignore
Cache string - Retrieve the Secret value without checking the Gateway's cache [true/false]
- Version float64
- The version of the secret.
- path String
- The path where the secret is stored. Defaults to the latest version.
- id String
- The ID of this resource.
- ignore
Cache String - Retrieve the Secret value without checking the Gateway's cache [true/false]
- version Double
- The version of the secret.
- path string
- The path where the secret is stored. Defaults to the latest version.
- id string
- The ID of this resource.
- ignore
Cache string - Retrieve the Secret value without checking the Gateway's cache [true/false]
- version number
- The version of the secret.
- path str
- The path where the secret is stored. Defaults to the latest version.
- id str
- The ID of this resource.
- ignore_
cache str - Retrieve the Secret value without checking the Gateway's cache [true/false]
- version float
- The version of the secret.
- path String
- The path where the secret is stored. Defaults to the latest version.
- id String
- The ID of this resource.
- ignore
Cache String - Retrieve the Secret value without checking the Gateway's cache [true/false]
- version Number
- The version of the secret.
getStaticSecret Result
The following output properties are available:
- Custom
Field Dictionary<string, string> - Additional custom fields to associate with the item (e.g fieldName1=value1) (relevant only for type 'password')
- Format string
- StaticSecretFormat defines the format of static secret (e.g. Text)
- Id string
- The ID of this resource.
- Inject
Urls List<string> - List of URLs associated with the item (relevant only for type 'password')
- Key
Value Dictionary<string, string>Pairs - The key value pairs for key/value secrets.
- Max
Versions double - The maximum number of versions to keep for the secret.
- Notify
On boolChange Event - Whether to send notifications on secret change events.
- Password string
- Password value (relevant only for type 'password')
- Password
Security List<GetInfos Static Secret Password Security Info> - Password security information (relevant only for type 'password')
- Path string
- The path where the secret is stored. Defaults to the latest version.
- Username string
- Username value (relevant only for type 'password')
- Value string
- The secret contents.
- Version double
- The version of the secret.
- Ignore
Cache string - Retrieve the Secret value without checking the Gateway's cache [true/false]
- Custom
Field map[string]string - Additional custom fields to associate with the item (e.g fieldName1=value1) (relevant only for type 'password')
- Format string
- StaticSecretFormat defines the format of static secret (e.g. Text)
- Id string
- The ID of this resource.
- Inject
Urls []string - List of URLs associated with the item (relevant only for type 'password')
- Key
Value map[string]stringPairs - The key value pairs for key/value secrets.
- Max
Versions float64 - The maximum number of versions to keep for the secret.
- Notify
On boolChange Event - Whether to send notifications on secret change events.
- Password string
- Password value (relevant only for type 'password')
- Password
Security []GetInfos Static Secret Password Security Info - Password security information (relevant only for type 'password')
- Path string
- The path where the secret is stored. Defaults to the latest version.
- Username string
- Username value (relevant only for type 'password')
- Value string
- The secret contents.
- Version float64
- The version of the secret.
- Ignore
Cache string - Retrieve the Secret value without checking the Gateway's cache [true/false]
- custom
Field Map<String,String> - Additional custom fields to associate with the item (e.g fieldName1=value1) (relevant only for type 'password')
- format String
- StaticSecretFormat defines the format of static secret (e.g. Text)
- id String
- The ID of this resource.
- inject
Urls List<String> - List of URLs associated with the item (relevant only for type 'password')
- key
Value Map<String,String>Pairs - The key value pairs for key/value secrets.
- max
Versions Double - The maximum number of versions to keep for the secret.
- notify
On BooleanChange Event - Whether to send notifications on secret change events.
- password String
- Password value (relevant only for type 'password')
- password
Security List<GetInfos Static Secret Password Security Info> - Password security information (relevant only for type 'password')
- path String
- The path where the secret is stored. Defaults to the latest version.
- username String
- Username value (relevant only for type 'password')
- value String
- The secret contents.
- version Double
- The version of the secret.
- ignore
Cache String - Retrieve the Secret value without checking the Gateway's cache [true/false]
- custom
Field {[key: string]: string} - Additional custom fields to associate with the item (e.g fieldName1=value1) (relevant only for type 'password')
- format string
- StaticSecretFormat defines the format of static secret (e.g. Text)
- id string
- The ID of this resource.
- inject
Urls string[] - List of URLs associated with the item (relevant only for type 'password')
- key
Value {[key: string]: string}Pairs - The key value pairs for key/value secrets.
- max
Versions number - The maximum number of versions to keep for the secret.
- notify
On booleanChange Event - Whether to send notifications on secret change events.
- password string
- Password value (relevant only for type 'password')
- password
Security GetInfos Static Secret Password Security Info[] - Password security information (relevant only for type 'password')
- path string
- The path where the secret is stored. Defaults to the latest version.
- username string
- Username value (relevant only for type 'password')
- value string
- The secret contents.
- version number
- The version of the secret.
- ignore
Cache string - Retrieve the Secret value without checking the Gateway's cache [true/false]
- custom_
field Mapping[str, str] - Additional custom fields to associate with the item (e.g fieldName1=value1) (relevant only for type 'password')
- format str
- StaticSecretFormat defines the format of static secret (e.g. Text)
- id str
- The ID of this resource.
- inject_
urls Sequence[str] - List of URLs associated with the item (relevant only for type 'password')
- key_
value_ Mapping[str, str]pairs - The key value pairs for key/value secrets.
- max_
versions float - The maximum number of versions to keep for the secret.
- notify_
on_ boolchange_ event - Whether to send notifications on secret change events.
- password str
- Password value (relevant only for type 'password')
- password_
security_ Sequence[Getinfos Static Secret Password Security Info] - Password security information (relevant only for type 'password')
- path str
- The path where the secret is stored. Defaults to the latest version.
- username str
- Username value (relevant only for type 'password')
- value str
- The secret contents.
- version float
- The version of the secret.
- ignore_
cache str - Retrieve the Secret value without checking the Gateway's cache [true/false]
- custom
Field Map<String> - Additional custom fields to associate with the item (e.g fieldName1=value1) (relevant only for type 'password')
- format String
- StaticSecretFormat defines the format of static secret (e.g. Text)
- id String
- The ID of this resource.
- inject
Urls List<String> - List of URLs associated with the item (relevant only for type 'password')
- key
Value Map<String>Pairs - The key value pairs for key/value secrets.
- max
Versions Number - The maximum number of versions to keep for the secret.
- notify
On BooleanChange Event - Whether to send notifications on secret change events.
- password String
- Password value (relevant only for type 'password')
- password
Security List<Property Map>Infos - Password security information (relevant only for type 'password')
- path String
- The path where the secret is stored. Defaults to the latest version.
- username String
- Username value (relevant only for type 'password')
- value String
- The secret contents.
- version Number
- The version of the secret.
- ignore
Cache String - Retrieve the Secret value without checking the Gateway's cache [true/false]
Supporting Types
GetStaticSecretPasswordSecurityInfo
GetStaticSecretPasswordSecurityInfoBreachInfo
- Breach
Check stringDate - Breach
Count double - Breach
Suggestions List<string> - Status string
- Breach
Check stringDate - Breach
Count float64 - Breach
Suggestions []string - Status string
- breach
Check StringDate - breach
Count Double - breach
Suggestions List<String> - status String
- breach
Check stringDate - breach
Count number - breach
Suggestions string[] - status string
- breach_
check_ strdate - breach_
count float - breach_
suggestions Sequence[str] - status str
- breach
Check StringDate - breach
Count Number - breach
Suggestions List<String> - status String
GetStaticSecretPasswordSecurityInfoScoreInfo
- Score double
- Status string
- Suggestions List<string>
- Score float64
- Status string
- Suggestions []string
- score Double
- status String
- suggestions List<String>
- score number
- status string
- suggestions string[]
- score float
- status str
- suggestions Sequence[str]
- score Number
- status String
- suggestions List<String>
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
published on Monday, Apr 27, 2026 by akeyless-community
