scaleway.getSecretVersion
Explore with Pulumi AI
Using getSecretVersion
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 getSecretVersion(args: GetSecretVersionArgs, opts?: InvokeOptions): Promise<GetSecretVersionResult>
function getSecretVersionOutput(args: GetSecretVersionOutputArgs, opts?: InvokeOptions): Output<GetSecretVersionResult>
def get_secret_version(region: Optional[str] = None,
revision: Optional[str] = None,
secret_id: Optional[str] = None,
secret_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretVersionResult
def get_secret_version_output(region: Optional[pulumi.Input[str]] = None,
revision: Optional[pulumi.Input[str]] = None,
secret_id: Optional[pulumi.Input[str]] = None,
secret_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecretVersionResult]
func LookupSecretVersion(ctx *Context, args *LookupSecretVersionArgs, opts ...InvokeOption) (*LookupSecretVersionResult, error)
func LookupSecretVersionOutput(ctx *Context, args *LookupSecretVersionOutputArgs, opts ...InvokeOption) LookupSecretVersionResultOutput
> Note: This function is named LookupSecretVersion
in the Go SDK.
public static class GetSecretVersion
{
public static Task<GetSecretVersionResult> InvokeAsync(GetSecretVersionArgs args, InvokeOptions? opts = null)
public static Output<GetSecretVersionResult> Invoke(GetSecretVersionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecretVersionResult> getSecretVersion(GetSecretVersionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getSecretVersion:getSecretVersion
arguments:
# arguments dictionary
The following arguments are supported:
- Region string
region
) The region in which the resource exists.- Revision string
The revision for this Secret Version.
- Secret
Id string The Secret ID associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.- Secret
Name string The Name of Secret associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.
- Region string
region
) The region in which the resource exists.- Revision string
The revision for this Secret Version.
- Secret
Id string The Secret ID associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.- Secret
Name string The Name of Secret associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.
- region String
region
) The region in which the resource exists.- revision String
The revision for this Secret Version.
- secret
Id String The Secret ID associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.- secret
Name String The Name of Secret associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.
- region string
region
) The region in which the resource exists.- revision string
The revision for this Secret Version.
- secret
Id string The Secret ID associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.- secret
Name string The Name of Secret associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.
- region str
region
) The region in which the resource exists.- revision str
The revision for this Secret Version.
- secret_
id str The Secret ID associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.- secret_
name str The Name of Secret associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.
- region String
region
) The region in which the resource exists.- revision String
The revision for this Secret Version.
- secret
Id String The Secret ID associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.- secret
Name String The Name of Secret associated wit the secret version. Only one of
secret_id
andsecret_name
should be specified.
getSecretVersion Result
The following output properties are available:
- Created
At string Date and time of secret version's creation (RFC 3339 format).
- Data string
The data payload of the secret version. more on the data section
- Description string
(Optional) Description of the secret version (e.g.
my-new-description
).- Id string
The provider-assigned unique ID for this managed resource.
- Status string
The status of the Secret Version.
- Updated
At string Date and time of secret version's last update (RFC 3339 format).
- Region string
- Revision string
- Secret
Id string - Secret
Name string
- Created
At string Date and time of secret version's creation (RFC 3339 format).
- Data string
The data payload of the secret version. more on the data section
- Description string
(Optional) Description of the secret version (e.g.
my-new-description
).- Id string
The provider-assigned unique ID for this managed resource.
- Status string
The status of the Secret Version.
- Updated
At string Date and time of secret version's last update (RFC 3339 format).
- Region string
- Revision string
- Secret
Id string - Secret
Name string
- created
At String Date and time of secret version's creation (RFC 3339 format).
- data String
The data payload of the secret version. more on the data section
- description String
(Optional) Description of the secret version (e.g.
my-new-description
).- id String
The provider-assigned unique ID for this managed resource.
- status String
The status of the Secret Version.
- updated
At String Date and time of secret version's last update (RFC 3339 format).
- region String
- revision String
- secret
Id String - secret
Name String
- created
At string Date and time of secret version's creation (RFC 3339 format).
- data string
The data payload of the secret version. more on the data section
- description string
(Optional) Description of the secret version (e.g.
my-new-description
).- id string
The provider-assigned unique ID for this managed resource.
- status string
The status of the Secret Version.
- updated
At string Date and time of secret version's last update (RFC 3339 format).
- region string
- revision string
- secret
Id string - secret
Name string
- created_
at str Date and time of secret version's creation (RFC 3339 format).
- data str
The data payload of the secret version. more on the data section
- description str
(Optional) Description of the secret version (e.g.
my-new-description
).- id str
The provider-assigned unique ID for this managed resource.
- status str
The status of the Secret Version.
- updated_
at str Date and time of secret version's last update (RFC 3339 format).
- region str
- revision str
- secret_
id str - secret_
name str
- created
At String Date and time of secret version's creation (RFC 3339 format).
- data String
The data payload of the secret version. more on the data section
- description String
(Optional) Description of the secret version (e.g.
my-new-description
).- id String
The provider-assigned unique ID for this managed resource.
- status String
The status of the Secret Version.
- updated
At String Date and time of secret version's last update (RFC 3339 format).
- region String
- revision String
- secret
Id String - secret
Name String
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.