Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Secrets.getSecretbundleVersions
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Secretbundle Versions in Oracle Cloud Infrastructure Secrets service.
Lists all secret bundle versions for the specified secret.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSecretbundleVersions = oci.Secrets.getSecretbundleVersions({
secretId: testSecret.id,
});
import pulumi
import pulumi_oci as oci
test_secretbundle_versions = oci.Secrets.get_secretbundle_versions(secret_id=test_secret["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Secrets"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Secrets.GetSecretbundleVersions(ctx, &secrets.GetSecretbundleVersionsArgs{
SecretId: testSecret.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 testSecretbundleVersions = Oci.Secrets.GetSecretbundleVersions.Invoke(new()
{
SecretId = testSecret.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Secrets.SecretsFunctions;
import com.pulumi.oci.Secrets.inputs.GetSecretbundleVersionsArgs;
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 testSecretbundleVersions = SecretsFunctions.getSecretbundleVersions(GetSecretbundleVersionsArgs.builder()
.secretId(testSecret.id())
.build());
}
}
variables:
testSecretbundleVersions:
fn::invoke:
Function: oci:Secrets:getSecretbundleVersions
Arguments:
secretId: ${testSecret.id}
Using getSecretbundleVersions
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 getSecretbundleVersions(args: GetSecretbundleVersionsArgs, opts?: InvokeOptions): Promise<GetSecretbundleVersionsResult>
function getSecretbundleVersionsOutput(args: GetSecretbundleVersionsOutputArgs, opts?: InvokeOptions): Output<GetSecretbundleVersionsResult>
def get_secretbundle_versions(filters: Optional[Sequence[_secrets.GetSecretbundleVersionsFilter]] = None,
secret_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretbundleVersionsResult
def get_secretbundle_versions_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_secrets.GetSecretbundleVersionsFilterArgs]]]] = None,
secret_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecretbundleVersionsResult]
func GetSecretbundleVersions(ctx *Context, args *GetSecretbundleVersionsArgs, opts ...InvokeOption) (*GetSecretbundleVersionsResult, error)
func GetSecretbundleVersionsOutput(ctx *Context, args *GetSecretbundleVersionsOutputArgs, opts ...InvokeOption) GetSecretbundleVersionsResultOutput
> Note: This function is named GetSecretbundleVersions
in the Go SDK.
public static class GetSecretbundleVersions
{
public static Task<GetSecretbundleVersionsResult> InvokeAsync(GetSecretbundleVersionsArgs args, InvokeOptions? opts = null)
public static Output<GetSecretbundleVersionsResult> Invoke(GetSecretbundleVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecretbundleVersionsResult> getSecretbundleVersions(GetSecretbundleVersionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Secrets/getSecretbundleVersions:getSecretbundleVersions
arguments:
# arguments dictionary
The following arguments are supported:
- Secret
Id string - The OCID of the secret.
- Filters
List<Get
Secretbundle Versions Filter>
- Secret
Id string - The OCID of the secret.
- Filters
[]Get
Secretbundle Versions Filter
- secret
Id String - The OCID of the secret.
- filters
List<Get
Secretbundle Versions Filter>
- secret
Id string - The OCID of the secret.
- filters
Get
Secretbundle Versions Filter[]
- secret_
id str - The OCID of the secret.
- filters
Sequence[secrets.
Get Secretbundle Versions Filter]
- secret
Id String - The OCID of the secret.
- filters List<Property Map>
getSecretbundleVersions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Bundle List<GetVersions Secretbundle Versions Secret Bundle Version> - The list of secret_bundle_versions.
- Secret
Id string - The OCID of the secret.
- Filters
List<Get
Secretbundle Versions Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Bundle []GetVersions Secretbundle Versions Secret Bundle Version - The list of secret_bundle_versions.
- Secret
Id string - The OCID of the secret.
- Filters
[]Get
Secretbundle Versions Filter
- id String
- The provider-assigned unique ID for this managed resource.
- secret
Bundle List<GetVersions Secretbundle Versions Secret Bundle Version> - The list of secret_bundle_versions.
- secret
Id String - The OCID of the secret.
- filters
List<Get
Secretbundle Versions Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- secret
Bundle GetVersions Secretbundle Versions Secret Bundle Version[] - The list of secret_bundle_versions.
- secret
Id string - The OCID of the secret.
- filters
Get
Secretbundle Versions Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- secret_
bundle_ Sequence[secrets.versions Get Secretbundle Versions Secret Bundle Version] - The list of secret_bundle_versions.
- secret_
id str - The OCID of the secret.
- filters
Sequence[secrets.
Get Secretbundle Versions Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- secret
Bundle List<Property Map>Versions - The list of secret_bundle_versions.
- secret
Id String - The OCID of the secret.
- filters List<Property Map>
Supporting Types
GetSecretbundleVersionsFilter
GetSecretbundleVersionsSecretBundleVersion
- Secret
Id string - The OCID of the secret.
- Stages List<string>
- A list of possible rotation states for the secret bundle.
- Time
Created string - The time when the secret bundle was created.
- Time
Of stringDeletion - An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Time
Of stringExpiry - An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Version
Name string - The version name of the secret bundle, as provided when the secret was created or last rotated.
- Version
Number string - The version number of the secret.
- Secret
Id string - The OCID of the secret.
- Stages []string
- A list of possible rotation states for the secret bundle.
- Time
Created string - The time when the secret bundle was created.
- Time
Of stringDeletion - An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Time
Of stringExpiry - An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Version
Name string - The version name of the secret bundle, as provided when the secret was created or last rotated.
- Version
Number string - The version number of the secret.
- secret
Id String - The OCID of the secret.
- stages List<String>
- A list of possible rotation states for the secret bundle.
- time
Created String - The time when the secret bundle was created.
- time
Of StringDeletion - An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of StringExpiry - An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- version
Name String - The version name of the secret bundle, as provided when the secret was created or last rotated.
- version
Number String - The version number of the secret.
- secret
Id string - The OCID of the secret.
- stages string[]
- A list of possible rotation states for the secret bundle.
- time
Created string - The time when the secret bundle was created.
- time
Of stringDeletion - An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of stringExpiry - An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- version
Name string - The version name of the secret bundle, as provided when the secret was created or last rotated.
- version
Number string - The version number of the secret.
- secret_
id str - The OCID of the secret.
- stages Sequence[str]
- A list of possible rotation states for the secret bundle.
- time_
created str - The time when the secret bundle was created.
- time_
of_ strdeletion - An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time_
of_ strexpiry - An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- version_
name str - The version name of the secret bundle, as provided when the secret was created or last rotated.
- version_
number str - The version number of the secret.
- secret
Id String - The OCID of the secret.
- stages List<String>
- A list of possible rotation states for the secret bundle.
- time
Created String - The time when the secret bundle was created.
- time
Of StringDeletion - An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- time
Of StringExpiry - An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- version
Name String - The version name of the secret bundle, as provided when the secret was created or last rotated.
- version
Number String - The version number of the secret.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi