1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CertificatesManagement
  5. getCaBundles
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.CertificatesManagement.getCaBundles

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides the list of Ca Bundles in Oracle Cloud Infrastructure Certificates Management service.

Lists all CA bundles that match the query parameters. Optionally, you can use the parameter FilterByCaBundleIdQueryParam to limit the result set to a single item that matches the specified CA bundle.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCaBundles = oci.CertificatesManagement.getCaBundles({
    caBundleId: testCaBundle.id,
    compartmentId: compartmentId,
    name: caBundleName,
    state: caBundleState,
});
Copy
import pulumi
import pulumi_oci as oci

test_ca_bundles = oci.CertificatesManagement.get_ca_bundles(ca_bundle_id=test_ca_bundle["id"],
    compartment_id=compartment_id,
    name=ca_bundle_name,
    state=ca_bundle_state)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/certificatesmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := certificatesmanagement.GetCaBundles(ctx, &certificatesmanagement.GetCaBundlesArgs{
			CaBundleId:    pulumi.StringRef(testCaBundle.Id),
			CompartmentId: pulumi.StringRef(compartmentId),
			Name:          pulumi.StringRef(caBundleName),
			State:         pulumi.StringRef(caBundleState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testCaBundles = Oci.CertificatesManagement.GetCaBundles.Invoke(new()
    {
        CaBundleId = testCaBundle.Id,
        CompartmentId = compartmentId,
        Name = caBundleName,
        State = caBundleState,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CertificatesManagement.CertificatesManagementFunctions;
import com.pulumi.oci.CertificatesManagement.inputs.GetCaBundlesArgs;
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 testCaBundles = CertificatesManagementFunctions.getCaBundles(GetCaBundlesArgs.builder()
            .caBundleId(testCaBundle.id())
            .compartmentId(compartmentId)
            .name(caBundleName)
            .state(caBundleState)
            .build());

    }
}
Copy
variables:
  testCaBundles:
    fn::invoke:
      function: oci:CertificatesManagement:getCaBundles
      arguments:
        caBundleId: ${testCaBundle.id}
        compartmentId: ${compartmentId}
        name: ${caBundleName}
        state: ${caBundleState}
Copy

Using getCaBundles

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 getCaBundles(args: GetCaBundlesArgs, opts?: InvokeOptions): Promise<GetCaBundlesResult>
function getCaBundlesOutput(args: GetCaBundlesOutputArgs, opts?: InvokeOptions): Output<GetCaBundlesResult>
Copy
def get_ca_bundles(ca_bundle_id: Optional[str] = None,
                   compartment_id: Optional[str] = None,
                   filters: Optional[Sequence[_certificatesmanagement.GetCaBundlesFilter]] = None,
                   name: Optional[str] = None,
                   state: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetCaBundlesResult
def get_ca_bundles_output(ca_bundle_id: Optional[pulumi.Input[str]] = None,
                   compartment_id: Optional[pulumi.Input[str]] = None,
                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_certificatesmanagement.GetCaBundlesFilterArgs]]]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   state: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetCaBundlesResult]
Copy
func GetCaBundles(ctx *Context, args *GetCaBundlesArgs, opts ...InvokeOption) (*GetCaBundlesResult, error)
func GetCaBundlesOutput(ctx *Context, args *GetCaBundlesOutputArgs, opts ...InvokeOption) GetCaBundlesResultOutput
Copy

> Note: This function is named GetCaBundles in the Go SDK.

public static class GetCaBundles 
{
    public static Task<GetCaBundlesResult> InvokeAsync(GetCaBundlesArgs args, InvokeOptions? opts = null)
    public static Output<GetCaBundlesResult> Invoke(GetCaBundlesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCaBundlesResult> getCaBundles(GetCaBundlesArgs args, InvokeOptions options)
public static Output<GetCaBundlesResult> getCaBundles(GetCaBundlesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:CertificatesManagement/getCaBundles:getCaBundles
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CaBundleId string
The OCID of the CA bundle.
CompartmentId string
A filter that returns only resources that match the given compartment OCID.
Filters Changes to this property will trigger replacement. List<GetCaBundlesFilter>
Name string
A filter that returns only resources that match the specified name.
State string
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
CaBundleId string
The OCID of the CA bundle.
CompartmentId string
A filter that returns only resources that match the given compartment OCID.
Filters Changes to this property will trigger replacement. []GetCaBundlesFilter
Name string
A filter that returns only resources that match the specified name.
State string
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
caBundleId String
The OCID of the CA bundle.
compartmentId String
A filter that returns only resources that match the given compartment OCID.
filters Changes to this property will trigger replacement. List<GetCaBundlesFilter>
name String
A filter that returns only resources that match the specified name.
state String
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
caBundleId string
The OCID of the CA bundle.
compartmentId string
A filter that returns only resources that match the given compartment OCID.
filters Changes to this property will trigger replacement. GetCaBundlesFilter[]
name string
A filter that returns only resources that match the specified name.
state string
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
ca_bundle_id str
The OCID of the CA bundle.
compartment_id str
A filter that returns only resources that match the given compartment OCID.
filters Changes to this property will trigger replacement. Sequence[certificatesmanagement.GetCaBundlesFilter]
name str
A filter that returns only resources that match the specified name.
state str
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
caBundleId String
The OCID of the CA bundle.
compartmentId String
A filter that returns only resources that match the given compartment OCID.
filters Changes to this property will trigger replacement. List<Property Map>
name String
A filter that returns only resources that match the specified name.
state String
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.

getCaBundles Result

The following output properties are available:

CaBundleCollections List<GetCaBundlesCaBundleCollection>
The list of ca_bundle_collection.
Id string
The provider-assigned unique ID for this managed resource.
CaBundleId string
CompartmentId string
The OCID of the compartment for the CA bundle.
Filters List<GetCaBundlesFilter>
Name string
A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
State string
The current lifecycle state of the CA bundle.
CaBundleCollections []GetCaBundlesCaBundleCollection
The list of ca_bundle_collection.
Id string
The provider-assigned unique ID for this managed resource.
CaBundleId string
CompartmentId string
The OCID of the compartment for the CA bundle.
Filters []GetCaBundlesFilter
Name string
A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
State string
The current lifecycle state of the CA bundle.
caBundleCollections List<GetCaBundlesCaBundleCollection>
The list of ca_bundle_collection.
id String
The provider-assigned unique ID for this managed resource.
caBundleId String
compartmentId String
The OCID of the compartment for the CA bundle.
filters List<GetCaBundlesFilter>
name String
A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
state String
The current lifecycle state of the CA bundle.
caBundleCollections GetCaBundlesCaBundleCollection[]
The list of ca_bundle_collection.
id string
The provider-assigned unique ID for this managed resource.
caBundleId string
compartmentId string
The OCID of the compartment for the CA bundle.
filters GetCaBundlesFilter[]
name string
A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
state string
The current lifecycle state of the CA bundle.
ca_bundle_collections Sequence[certificatesmanagement.GetCaBundlesCaBundleCollection]
The list of ca_bundle_collection.
id str
The provider-assigned unique ID for this managed resource.
ca_bundle_id str
compartment_id str
The OCID of the compartment for the CA bundle.
filters Sequence[certificatesmanagement.GetCaBundlesFilter]
name str
A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
state str
The current lifecycle state of the CA bundle.
caBundleCollections List<Property Map>
The list of ca_bundle_collection.
id String
The provider-assigned unique ID for this managed resource.
caBundleId String
compartmentId String
The OCID of the compartment for the CA bundle.
filters List<Property Map>
name String
A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
state String
The current lifecycle state of the CA bundle.

Supporting Types

GetCaBundlesCaBundleCollection

Items This property is required. []GetCaBundlesCaBundleCollectionItem
items This property is required. GetCaBundlesCaBundleCollectionItem[]
items This property is required. List<Property Map>

GetCaBundlesCaBundleCollectionItem

CaBundlePem This property is required. string
CompartmentId This property is required. string
A filter that returns only resources that match the given compartment OCID.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description This property is required. string
A brief description of the CA bundle.
FreeformTags This property is required. Dictionary<string, string>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id This property is required. string
The OCID of the CA bundle.
LifecycleDetails This property is required. string
Additional information about the current lifecycle state of the CA bundle.
Name This property is required. string
A filter that returns only resources that match the specified name.
State This property is required. string
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
TimeCreated This property is required. string
A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
CaBundlePem This property is required. string
CompartmentId This property is required. string
A filter that returns only resources that match the given compartment OCID.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description This property is required. string
A brief description of the CA bundle.
FreeformTags This property is required. map[string]string
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id This property is required. string
The OCID of the CA bundle.
LifecycleDetails This property is required. string
Additional information about the current lifecycle state of the CA bundle.
Name This property is required. string
A filter that returns only resources that match the specified name.
State This property is required. string
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
TimeCreated This property is required. string
A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
caBundlePem This property is required. String
compartmentId This property is required. String
A filter that returns only resources that match the given compartment OCID.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description This property is required. String
A brief description of the CA bundle.
freeformTags This property is required. Map<String,String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. String
The OCID of the CA bundle.
lifecycleDetails This property is required. String
Additional information about the current lifecycle state of the CA bundle.
name This property is required. String
A filter that returns only resources that match the specified name.
state This property is required. String
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
timeCreated This property is required. String
A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
caBundlePem This property is required. string
compartmentId This property is required. string
A filter that returns only resources that match the given compartment OCID.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description This property is required. string
A brief description of the CA bundle.
freeformTags This property is required. {[key: string]: string}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. string
The OCID of the CA bundle.
lifecycleDetails This property is required. string
Additional information about the current lifecycle state of the CA bundle.
name This property is required. string
A filter that returns only resources that match the specified name.
state This property is required. string
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
timeCreated This property is required. string
A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
ca_bundle_pem This property is required. str
compartment_id This property is required. str
A filter that returns only resources that match the given compartment OCID.
defined_tags This property is required. Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description This property is required. str
A brief description of the CA bundle.
freeform_tags This property is required. Mapping[str, str]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. str
The OCID of the CA bundle.
lifecycle_details This property is required. str
Additional information about the current lifecycle state of the CA bundle.
name This property is required. str
A filter that returns only resources that match the specified name.
state This property is required. str
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
time_created This property is required. str
A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
caBundlePem This property is required. String
compartmentId This property is required. String
A filter that returns only resources that match the given compartment OCID.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description This property is required. String
A brief description of the CA bundle.
freeformTags This property is required. Map<String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. String
The OCID of the CA bundle.
lifecycleDetails This property is required. String
Additional information about the current lifecycle state of the CA bundle.
name This property is required. String
A filter that returns only resources that match the specified name.
state This property is required. String
A filter that returns only resources that match the given lifecycle state. The state value is case-insensitive.
timeCreated This property is required. String
A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

GetCaBundlesFilter

Name This property is required. string
A filter that returns only resources that match the specified name.
Values This property is required. List<string>
Regex bool
Name This property is required. string
A filter that returns only resources that match the specified name.
Values This property is required. []string
Regex bool
name This property is required. String
A filter that returns only resources that match the specified name.
values This property is required. List<String>
regex Boolean
name This property is required. string
A filter that returns only resources that match the specified name.
values This property is required. string[]
regex boolean
name This property is required. str
A filter that returns only resources that match the specified name.
values This property is required. Sequence[str]
regex bool
name This property is required. String
A filter that returns only resources that match the specified name.
values This property is required. List<String>
regex Boolean

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 v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi