gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core
gcorelabs.getSecret
Represent secret
Using getSecret
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 getSecret(args: GetSecretArgs, opts?: InvokeOptions): Promise<GetSecretResult>
function getSecretOutput(args: GetSecretOutputArgs, opts?: InvokeOptions): Output<GetSecretResult>def get_secret(id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretResult
def get_secret_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
project_name: Optional[pulumi.Input[str]] = None,
region_id: Optional[pulumi.Input[float]] = None,
region_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecretResult]func LookupSecret(ctx *Context, args *LookupSecretArgs, opts ...InvokeOption) (*LookupSecretResult, error)
func LookupSecretOutput(ctx *Context, args *LookupSecretOutputArgs, opts ...InvokeOption) LookupSecretResultOutput> Note: This function is named LookupSecret in the Go SDK.
public static class GetSecret
{
public static Task<GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions? opts = null)
public static Output<GetSecretResult> Invoke(GetSecretInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
public static Output<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
fn::invoke:
function: gcorelabs:index/getSecret:getSecret
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Id string
- The ID of this resource.
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Name string
- Id string
- The ID of this resource.
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- name String
- id String
- The ID of this resource.
- project
Id Double - project
Name String - region
Id Double - region
Name String
- name string
- id string
- The ID of this resource.
- project
Id number - project
Name string - region
Id number - region
Name string
- name str
- id str
- The ID of this resource.
- project_
id float - project_
name str - region_
id float - region_
name str
- name String
- id String
- The ID of this resource.
- project
Id Number - project
Name String - region
Id Number - region
Name String
getSecret Result
The following output properties are available:
- Algorithm string
- Bit
Length double - Content
Types Dictionary<string, string> - Created string
- Datetime when the secret was created. The format is 2025-12-28T19:14:44.180394
- Expiration string
- Datetime when the secret will expire. The format is 2025-12-28T19:14:44.180394
- Id string
- The ID of this resource.
- Mode string
- Name string
- Status string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Algorithm string
- Bit
Length float64 - Content
Types map[string]string - Created string
- Datetime when the secret was created. The format is 2025-12-28T19:14:44.180394
- Expiration string
- Datetime when the secret will expire. The format is 2025-12-28T19:14:44.180394
- Id string
- The ID of this resource.
- Mode string
- Name string
- Status string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- algorithm String
- bit
Length Double - content
Types Map<String,String> - created String
- Datetime when the secret was created. The format is 2025-12-28T19:14:44.180394
- expiration String
- Datetime when the secret will expire. The format is 2025-12-28T19:14:44.180394
- id String
- The ID of this resource.
- mode String
- name String
- status String
- project
Id Double - project
Name String - region
Id Double - region
Name String
- algorithm string
- bit
Length number - content
Types {[key: string]: string} - created string
- Datetime when the secret was created. The format is 2025-12-28T19:14:44.180394
- expiration string
- Datetime when the secret will expire. The format is 2025-12-28T19:14:44.180394
- id string
- The ID of this resource.
- mode string
- name string
- status string
- project
Id number - project
Name string - region
Id number - region
Name string
- algorithm str
- bit_
length float - content_
types Mapping[str, str] - created str
- Datetime when the secret was created. The format is 2025-12-28T19:14:44.180394
- expiration str
- Datetime when the secret will expire. The format is 2025-12-28T19:14:44.180394
- id str
- The ID of this resource.
- mode str
- name str
- status str
- project_
id float - project_
name str - region_
id float - region_
name str
- algorithm String
- bit
Length Number - content
Types Map<String> - created String
- Datetime when the secret was created. The format is 2025-12-28T19:14:44.180394
- expiration String
- Datetime when the secret will expire. The format is 2025-12-28T19:14:44.180394
- id String
- The ID of this resource.
- mode String
- name String
- status String
- project
Id Number - project
Name String - region
Id Number - region
Name String
Package Details
- Repository
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabsTerraform Provider.
