1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCisOriginCertificates
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getCisOriginCertificates

Explore with Pulumi AI

Retrieve the information of an existing IBM Cloud Internet Services certificates resource. For more information about CIS origin certificates, refer to managing origin certificates.

Example Usage

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

const test = ibm.getCisOriginCertificates({
    cisId: ibm_cis.instance.id,
    domainId: ibm_cis_domain.example.id,
    certificateId: "25392180178235735583993116186144990011711092749",
});
Copy
import pulumi
import pulumi_ibm as ibm

test = ibm.get_cis_origin_certificates(cis_id=ibm_cis["instance"]["id"],
    domain_id=ibm_cis_domain["example"]["id"],
    certificate_id="25392180178235735583993116186144990011711092749")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.GetCisOriginCertificates(ctx, &ibm.GetCisOriginCertificatesArgs{
			CisId:         ibm_cis.Instance.Id,
			DomainId:      ibm_cis_domain.Example.Id,
			CertificateId: pulumi.StringRef("25392180178235735583993116186144990011711092749"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var test = Ibm.GetCisOriginCertificates.Invoke(new()
    {
        CisId = ibm_cis.Instance.Id,
        DomainId = ibm_cis_domain.Example.Id,
        CertificateId = "25392180178235735583993116186144990011711092749",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetCisOriginCertificatesArgs;
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 test = IbmFunctions.getCisOriginCertificates(GetCisOriginCertificatesArgs.builder()
            .cisId(ibm_cis.instance().id())
            .domainId(ibm_cis_domain.example().id())
            .certificateId("25392180178235735583993116186144990011711092749")
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: ibm:getCisOriginCertificates
      arguments:
        cisId: ${ibm_cis.instance.id}
        domainId: ${ibm_cis_domain.example.id}
        certificateId: 25392180178235735583993116186144990011711092749
Copy

Using getCisOriginCertificates

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 getCisOriginCertificates(args: GetCisOriginCertificatesArgs, opts?: InvokeOptions): Promise<GetCisOriginCertificatesResult>
function getCisOriginCertificatesOutput(args: GetCisOriginCertificatesOutputArgs, opts?: InvokeOptions): Output<GetCisOriginCertificatesResult>
Copy
def get_cis_origin_certificates(certificate_id: Optional[str] = None,
                                cis_id: Optional[str] = None,
                                domain_id: Optional[str] = None,
                                id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCisOriginCertificatesResult
def get_cis_origin_certificates_output(certificate_id: Optional[pulumi.Input[str]] = None,
                                cis_id: Optional[pulumi.Input[str]] = None,
                                domain_id: Optional[pulumi.Input[str]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCisOriginCertificatesResult]
Copy
func GetCisOriginCertificates(ctx *Context, args *GetCisOriginCertificatesArgs, opts ...InvokeOption) (*GetCisOriginCertificatesResult, error)
func GetCisOriginCertificatesOutput(ctx *Context, args *GetCisOriginCertificatesOutputArgs, opts ...InvokeOption) GetCisOriginCertificatesResultOutput
Copy

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

public static class GetCisOriginCertificates 
{
    public static Task<GetCisOriginCertificatesResult> InvokeAsync(GetCisOriginCertificatesArgs args, InvokeOptions? opts = null)
    public static Output<GetCisOriginCertificatesResult> Invoke(GetCisOriginCertificatesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCisOriginCertificatesResult> getCisOriginCertificates(GetCisOriginCertificatesArgs args, InvokeOptions options)
public static Output<GetCisOriginCertificatesResult> getCisOriginCertificates(GetCisOriginCertificatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getCisOriginCertificates:getCisOriginCertificates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CisId This property is required. string
The ID of the CIS instance.
DomainId This property is required. string
The ID of the domain.
CertificateId string
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
Id string
CisId This property is required. string
The ID of the CIS instance.
DomainId This property is required. string
The ID of the domain.
CertificateId string
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
Id string
cisId This property is required. String
The ID of the CIS instance.
domainId This property is required. String
The ID of the domain.
certificateId String
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
id String
cisId This property is required. string
The ID of the CIS instance.
domainId This property is required. string
The ID of the domain.
certificateId string
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
id string
cis_id This property is required. str
The ID of the CIS instance.
domain_id This property is required. str
The ID of the domain.
certificate_id str
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
id str
cisId This property is required. String
The ID of the CIS instance.
domainId This property is required. String
The ID of the domain.
certificateId String
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
id String

getCisOriginCertificates Result

The following output properties are available:

CisId string
DomainId string
Id string
OriginCertificateLists List<GetCisOriginCertificatesOriginCertificateList>
(String) The collection of the certificates.
CertificateId string
(String) The certificate ID.
CisId string
DomainId string
Id string
OriginCertificateLists []GetCisOriginCertificatesOriginCertificateList
(String) The collection of the certificates.
CertificateId string
(String) The certificate ID.
cisId String
domainId String
id String
originCertificateLists List<GetCisOriginCertificatesOriginCertificateList>
(String) The collection of the certificates.
certificateId String
(String) The certificate ID.
cisId string
domainId string
id string
originCertificateLists GetCisOriginCertificatesOriginCertificateList[]
(String) The collection of the certificates.
certificateId string
(String) The certificate ID.
cis_id str
domain_id str
id str
origin_certificate_lists Sequence[GetCisOriginCertificatesOriginCertificateList]
(String) The collection of the certificates.
certificate_id str
(String) The certificate ID.
cisId String
domainId String
id String
originCertificateLists List<Property Map>
(String) The collection of the certificates.
certificateId String
(String) The certificate ID.

Supporting Types

GetCisOriginCertificatesOriginCertificateList

Certificate This property is required. string
(String) Certificate associated with the origin certificate.
CertificateId This property is required. string
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
Csr This property is required. string
ExpiresOn This property is required. string
(String) Expiration date of the certificate.
Hostnames This property is required. List<string>
(List[String]) The hosts associated with the certificate.
PrivateKey This property is required. string
RequestType This property is required. string
(String) The type of the certificate.
RequestedValidity This property is required. double
Certificate This property is required. string
(String) Certificate associated with the origin certificate.
CertificateId This property is required. string
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
Csr This property is required. string
ExpiresOn This property is required. string
(String) Expiration date of the certificate.
Hostnames This property is required. []string
(List[String]) The hosts associated with the certificate.
PrivateKey This property is required. string
RequestType This property is required. string
(String) The type of the certificate.
RequestedValidity This property is required. float64
certificate This property is required. String
(String) Certificate associated with the origin certificate.
certificateId This property is required. String
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
csr This property is required. String
expiresOn This property is required. String
(String) Expiration date of the certificate.
hostnames This property is required. List<String>
(List[String]) The hosts associated with the certificate.
privateKey This property is required. String
requestType This property is required. String
(String) The type of the certificate.
requestedValidity This property is required. Double
certificate This property is required. string
(String) Certificate associated with the origin certificate.
certificateId This property is required. string
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
csr This property is required. string
expiresOn This property is required. string
(String) Expiration date of the certificate.
hostnames This property is required. string[]
(List[String]) The hosts associated with the certificate.
privateKey This property is required. string
requestType This property is required. string
(String) The type of the certificate.
requestedValidity This property is required. number
certificate This property is required. str
(String) Certificate associated with the origin certificate.
certificate_id This property is required. str
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
csr This property is required. str
expires_on This property is required. str
(String) Expiration date of the certificate.
hostnames This property is required. Sequence[str]
(List[String]) The hosts associated with the certificate.
private_key This property is required. str
request_type This property is required. str
(String) The type of the certificate.
requested_validity This property is required. float
certificate This property is required. String
(String) Certificate associated with the origin certificate.
certificateId This property is required. String
The ID of the certificate. If the ID is not provided, you will get the list of certificates. If the ID is provided, then you will get the information of that certificate.
csr This property is required. String
expiresOn This property is required. String
(String) Expiration date of the certificate.
hostnames This property is required. List<String>
(List[String]) The hosts associated with the certificate.
privateKey This property is required. String
requestType This property is required. String
(String) The type of the certificate.
requestedValidity This property is required. Number

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.