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

ibm.getCisCustomCertificates

Explore with Pulumi AI

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

    Retrieve information of an existing IBM Cloud Internet Services custom certificates resource. For more information about CIS certificate order, refer to upload custom certificates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const customCertificates = ibm.getCisCustomCertificates({
        cisId: data.ibm_cis.cis.id,
        domainId: data.ibm_cis_domain.cis_domain.domain_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    custom_certificates = ibm.get_cis_custom_certificates(cis_id=data["ibm_cis"]["cis"]["id"],
        domain_id=data["ibm_cis_domain"]["cis_domain"]["domain_id"])
    
    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.GetCisCustomCertificates(ctx, &ibm.GetCisCustomCertificatesArgs{
    			CisId:    data.Ibm_cis.Cis.Id,
    			DomainId: data.Ibm_cis_domain.Cis_domain.Domain_id,
    		}, 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 customCertificates = Ibm.GetCisCustomCertificates.Invoke(new()
        {
            CisId = data.Ibm_cis.Cis.Id,
            DomainId = data.Ibm_cis_domain.Cis_domain.Domain_id,
        });
    
    });
    
    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.GetCisCustomCertificatesArgs;
    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 customCertificates = IbmFunctions.getCisCustomCertificates(GetCisCustomCertificatesArgs.builder()
                .cisId(data.ibm_cis().cis().id())
                .domainId(data.ibm_cis_domain().cis_domain().domain_id())
                .build());
    
        }
    }
    
    variables:
      customCertificates:
        fn::invoke:
          function: ibm:getCisCustomCertificates
          arguments:
            cisId: ${data.ibm_cis.cis.id}
            domainId: ${data.ibm_cis_domain.cis_domain.domain_id}
    

    Using getCisCustomCertificates

    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 getCisCustomCertificates(args: GetCisCustomCertificatesArgs, opts?: InvokeOptions): Promise<GetCisCustomCertificatesResult>
    function getCisCustomCertificatesOutput(args: GetCisCustomCertificatesOutputArgs, opts?: InvokeOptions): Output<GetCisCustomCertificatesResult>
    def get_cis_custom_certificates(cis_id: Optional[str] = None,
                                    domain_id: Optional[str] = None,
                                    id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetCisCustomCertificatesResult
    def get_cis_custom_certificates_output(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[GetCisCustomCertificatesResult]
    func GetCisCustomCertificates(ctx *Context, args *GetCisCustomCertificatesArgs, opts ...InvokeOption) (*GetCisCustomCertificatesResult, error)
    func GetCisCustomCertificatesOutput(ctx *Context, args *GetCisCustomCertificatesOutputArgs, opts ...InvokeOption) GetCisCustomCertificatesResultOutput

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

    public static class GetCisCustomCertificates 
    {
        public static Task<GetCisCustomCertificatesResult> InvokeAsync(GetCisCustomCertificatesArgs args, InvokeOptions? opts = null)
        public static Output<GetCisCustomCertificatesResult> Invoke(GetCisCustomCertificatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCisCustomCertificatesResult> getCisCustomCertificates(GetCisCustomCertificatesArgs args, InvokeOptions options)
    public static Output<GetCisCustomCertificatesResult> getCisCustomCertificates(GetCisCustomCertificatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCisCustomCertificates:getCisCustomCertificates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CisId string
    The ID of the IBM Cloud Internet Services instance.
    DomainId string
    The ID of the domain to change custom certificate.
    Id string
    CisId string
    The ID of the IBM Cloud Internet Services instance.
    DomainId string
    The ID of the domain to change custom certificate.
    Id string
    cisId String
    The ID of the IBM Cloud Internet Services instance.
    domainId String
    The ID of the domain to change custom certificate.
    id String
    cisId string
    The ID of the IBM Cloud Internet Services instance.
    domainId string
    The ID of the domain to change custom certificate.
    id string
    cis_id str
    The ID of the IBM Cloud Internet Services instance.
    domain_id str
    The ID of the domain to change custom certificate.
    id str
    cisId String
    The ID of the IBM Cloud Internet Services instance.
    domainId String
    The ID of the domain to change custom certificate.
    id String

    getCisCustomCertificates Result

    The following output properties are available:

    Supporting Types

    GetCisCustomCertificatesCustomCertificate

    BundleMethod string
    The custom certificate bundle method.
    CustomCertId string
    The custom certificate ID.
    ExpiresOn string
    The expiry date and time of the certificate.
    Hosts List<string>
    The list of hosts that are uploaded in a certificate.
    Id string
    It is a combination of <custom_cert_id>:<domain_id>:<cis_id>.
    Issuer string
    The custom certificate issuer.
    ModifiedOn string
    The modified date and time of the certificate.
    Priority double
    The custom certificate priority.
    Signature string
    The custom certificate signature.
    Status string
    The custom certificate status.
    UploadedOn string
    The uploaded date and time of the certificate.
    BundleMethod string
    The custom certificate bundle method.
    CustomCertId string
    The custom certificate ID.
    ExpiresOn string
    The expiry date and time of the certificate.
    Hosts []string
    The list of hosts that are uploaded in a certificate.
    Id string
    It is a combination of <custom_cert_id>:<domain_id>:<cis_id>.
    Issuer string
    The custom certificate issuer.
    ModifiedOn string
    The modified date and time of the certificate.
    Priority float64
    The custom certificate priority.
    Signature string
    The custom certificate signature.
    Status string
    The custom certificate status.
    UploadedOn string
    The uploaded date and time of the certificate.
    bundleMethod String
    The custom certificate bundle method.
    customCertId String
    The custom certificate ID.
    expiresOn String
    The expiry date and time of the certificate.
    hosts List<String>
    The list of hosts that are uploaded in a certificate.
    id String
    It is a combination of <custom_cert_id>:<domain_id>:<cis_id>.
    issuer String
    The custom certificate issuer.
    modifiedOn String
    The modified date and time of the certificate.
    priority Double
    The custom certificate priority.
    signature String
    The custom certificate signature.
    status String
    The custom certificate status.
    uploadedOn String
    The uploaded date and time of the certificate.
    bundleMethod string
    The custom certificate bundle method.
    customCertId string
    The custom certificate ID.
    expiresOn string
    The expiry date and time of the certificate.
    hosts string[]
    The list of hosts that are uploaded in a certificate.
    id string
    It is a combination of <custom_cert_id>:<domain_id>:<cis_id>.
    issuer string
    The custom certificate issuer.
    modifiedOn string
    The modified date and time of the certificate.
    priority number
    The custom certificate priority.
    signature string
    The custom certificate signature.
    status string
    The custom certificate status.
    uploadedOn string
    The uploaded date and time of the certificate.
    bundle_method str
    The custom certificate bundle method.
    custom_cert_id str
    The custom certificate ID.
    expires_on str
    The expiry date and time of the certificate.
    hosts Sequence[str]
    The list of hosts that are uploaded in a certificate.
    id str
    It is a combination of <custom_cert_id>:<domain_id>:<cis_id>.
    issuer str
    The custom certificate issuer.
    modified_on str
    The modified date and time of the certificate.
    priority float
    The custom certificate priority.
    signature str
    The custom certificate signature.
    status str
    The custom certificate status.
    uploaded_on str
    The uploaded date and time of the certificate.
    bundleMethod String
    The custom certificate bundle method.
    customCertId String
    The custom certificate ID.
    expiresOn String
    The expiry date and time of the certificate.
    hosts List<String>
    The list of hosts that are uploaded in a certificate.
    id String
    It is a combination of <custom_cert_id>:<domain_id>:<cis_id>.
    issuer String
    The custom certificate issuer.
    modifiedOn String
    The modified date and time of the certificate.
    priority Number
    The custom certificate priority.
    signature String
    The custom certificate signature.
    status String
    The custom certificate status.
    uploadedOn String
    The uploaded date and time of the certificate.

    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