1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Secrets
  5. getSecretbundleVersions
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Secrets.getSecretbundleVersions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 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/v2/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:

    SecretId string
    The OCID of the secret.
    Filters []GetSecretbundleVersionsFilter
    secretId string
    The OCID of the secret.
    filters GetSecretbundleVersionsFilter[]
    secretId 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.
    SecretBundleVersions List<GetSecretbundleVersionsSecretBundleVersion>
    The list of secret_bundle_versions.
    SecretId string
    The OCID of the secret.
    Filters List<GetSecretbundleVersionsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretBundleVersions []GetSecretbundleVersionsSecretBundleVersion
    The list of secret_bundle_versions.
    SecretId string
    The OCID of the secret.
    Filters []GetSecretbundleVersionsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    secretBundleVersions List<GetSecretbundleVersionsSecretBundleVersion>
    The list of secret_bundle_versions.
    secretId String
    The OCID of the secret.
    filters List<GetSecretbundleVersionsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    secretBundleVersions GetSecretbundleVersionsSecretBundleVersion[]
    The list of secret_bundle_versions.
    secretId string
    The OCID of the secret.
    filters GetSecretbundleVersionsFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    secret_bundle_versions Sequence[secrets.GetSecretbundleVersionsSecretBundleVersion]
    The list of secret_bundle_versions.
    secret_id str
    The OCID of the secret.
    filters Sequence[secrets.GetSecretbundleVersionsFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    secretBundleVersions List<Property Map>
    The list of secret_bundle_versions.
    secretId String
    The OCID of the secret.
    filters List<Property Map>

    Supporting Types

    GetSecretbundleVersionsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetSecretbundleVersionsSecretBundleVersion

    SecretId string
    The OCID of the secret.
    Stages List<string>
    A list of possible rotation states for the secret bundle.
    TimeCreated string
    The time when the secret bundle was created.
    TimeOfDeletion string
    An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    TimeOfExpiry string
    An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    VersionName string
    The version name of the secret bundle, as provided when the secret was created or last rotated.
    VersionNumber string
    The version number of the secret.
    SecretId string
    The OCID of the secret.
    Stages []string
    A list of possible rotation states for the secret bundle.
    TimeCreated string
    The time when the secret bundle was created.
    TimeOfDeletion string
    An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    TimeOfExpiry string
    An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    VersionName string
    The version name of the secret bundle, as provided when the secret was created or last rotated.
    VersionNumber string
    The version number of the secret.
    secretId String
    The OCID of the secret.
    stages List<String>
    A list of possible rotation states for the secret bundle.
    timeCreated String
    The time when the secret bundle was created.
    timeOfDeletion String
    An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfExpiry String
    An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    versionName String
    The version name of the secret bundle, as provided when the secret was created or last rotated.
    versionNumber String
    The version number of the secret.
    secretId string
    The OCID of the secret.
    stages string[]
    A list of possible rotation states for the secret bundle.
    timeCreated string
    The time when the secret bundle was created.
    timeOfDeletion string
    An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfExpiry string
    An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    versionName string
    The version name of the secret bundle, as provided when the secret was created or last rotated.
    versionNumber 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_deletion str
    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_expiry str
    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.
    secretId String
    The OCID of the secret.
    stages List<String>
    A list of possible rotation states for the secret bundle.
    timeCreated String
    The time when the secret bundle was created.
    timeOfDeletion String
    An optional property indicating when to delete the secret version, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    timeOfExpiry String
    An optional property indicating when the secret version will expire, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
    versionName String
    The version name of the secret bundle, as provided when the secret was created or last rotated.
    versionNumber 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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi