1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCisOriginCertificates
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getCisOriginCertificates

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: ibm:getCisOriginCertificates
          arguments:
            cisId: ${ibm_cis.instance.id}
            domainId: ${ibm_cis_domain.example.id}
            certificateId: 25392180178235735583993116186144990011711092749
    

    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>
    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]
    func GetCisOriginCertificates(ctx *Context, args *GetCisOriginCertificatesArgs, opts ...InvokeOption) (*GetCisOriginCertificatesResult, error)
    func GetCisOriginCertificatesOutput(ctx *Context, args *GetCisOriginCertificatesOutputArgs, opts ...InvokeOption) GetCisOriginCertificatesResultOutput

    > 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)
    }
    public static CompletableFuture<GetCisOriginCertificatesResult> getCisOriginCertificates(GetCisOriginCertificatesArgs args, InvokeOptions options)
    public static Output<GetCisOriginCertificatesResult> getCisOriginCertificates(GetCisOriginCertificatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCisOriginCertificates:getCisOriginCertificates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CisId string
    The ID of the CIS instance.
    DomainId 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 string
    The ID of the CIS instance.
    DomainId 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 String
    The ID of the CIS instance.
    domainId 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 string
    The ID of the CIS instance.
    domainId 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 str
    The ID of the CIS instance.
    domain_id 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 String
    The ID of the CIS instance.
    domainId 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 string
    (String) Certificate associated with the origin certificate.
    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.
    Csr string
    ExpiresOn string
    (String) Expiration date of the certificate.
    Hostnames List<string>
    (List[String]) The hosts associated with the certificate.
    PrivateKey string
    RequestType string
    (String) The type of the certificate.
    RequestedValidity double
    Certificate string
    (String) Certificate associated with the origin certificate.
    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.
    Csr string
    ExpiresOn string
    (String) Expiration date of the certificate.
    Hostnames []string
    (List[String]) The hosts associated with the certificate.
    PrivateKey string
    RequestType string
    (String) The type of the certificate.
    RequestedValidity float64
    certificate String
    (String) Certificate associated with the origin certificate.
    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.
    csr String
    expiresOn String
    (String) Expiration date of the certificate.
    hostnames List<String>
    (List[String]) The hosts associated with the certificate.
    privateKey String
    requestType String
    (String) The type of the certificate.
    requestedValidity Double
    certificate string
    (String) Certificate associated with the origin certificate.
    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.
    csr string
    expiresOn string
    (String) Expiration date of the certificate.
    hostnames string[]
    (List[String]) The hosts associated with the certificate.
    privateKey string
    requestType string
    (String) The type of the certificate.
    requestedValidity number
    certificate str
    (String) Certificate associated with the origin certificate.
    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.
    csr str
    expires_on str
    (String) Expiration date of the certificate.
    hostnames Sequence[str]
    (List[String]) The hosts associated with the certificate.
    private_key str
    request_type str
    (String) The type of the certificate.
    requested_validity float
    certificate String
    (String) Certificate associated with the origin certificate.
    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.
    csr String
    expiresOn String
    (String) Expiration date of the certificate.
    hostnames List<String>
    (List[String]) The hosts associated with the certificate.
    privateKey String
    requestType String
    (String) The type of the certificate.
    requestedValidity Number

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud