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",
});
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:
- Cis
Id This property is required. string - The ID of the CIS instance.
- Domain
Id This property is required. string - The ID of the domain.
- Certificate
Id 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. string - The ID of the CIS instance.
- Domain
Id This property is required. string - The ID of the domain.
- Certificate
Id 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. String - The ID of the CIS instance.
- domain
Id This property is required. String - The ID of the domain.
- certificate
Id 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. string - The ID of the CIS instance.
- domain
Id This property is required. string - The ID of the domain.
- certificate
Id 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
- cis
Id This property is required. String - The ID of the CIS instance.
- domain
Id This property is required. String - The ID of the domain.
- certificate
Id 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:
- Cis
Id string - Domain
Id string - Id string
- Origin
Certificate List<GetLists Cis Origin Certificates Origin Certificate List> - (String) The collection of the certificates.
- Certificate
Id string - (String) The certificate ID.
- Cis
Id string - Domain
Id string - Id string
- Origin
Certificate []GetLists Cis Origin Certificates Origin Certificate List - (String) The collection of the certificates.
- Certificate
Id string - (String) The certificate ID.
- cis
Id String - domain
Id String - id String
- origin
Certificate List<GetLists Cis Origin Certificates Origin Certificate List> - (String) The collection of the certificates.
- certificate
Id String - (String) The certificate ID.
- cis
Id string - domain
Id string - id string
- origin
Certificate GetLists Cis Origin Certificates Origin Certificate List[] - (String) The collection of the certificates.
- certificate
Id string - (String) The certificate ID.
- cis_
id str - domain_
id str - id str
- origin_
certificate_ Sequence[Getlists Cis Origin Certificates Origin Certificate List] - (String) The collection of the certificates.
- certificate_
id str - (String) The certificate ID.
- cis
Id String - domain
Id String - id String
- origin
Certificate List<Property Map>Lists - (String) The collection of the certificates.
- certificate
Id String - (String) The certificate ID.
Supporting Types
GetCisOriginCertificatesOriginCertificateList
- Certificate
This property is required. string - (String) Certificate associated with the origin certificate.
- Certificate
Id 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 - Expires
On 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.
- Private
Key This property is required. string - Request
Type This property is required. string - (String) The type of the certificate.
- Requested
Validity This property is required. double
- Certificate
This property is required. string - (String) Certificate associated with the origin certificate.
- Certificate
Id 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 - Expires
On 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.
- Private
Key This property is required. string - Request
Type This property is required. string - (String) The type of the certificate.
- Requested
Validity This property is required. float64
- certificate
This property is required. String - (String) Certificate associated with the origin certificate.
- certificate
Id 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 - expires
On 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.
- private
Key This property is required. String - request
Type This property is required. String - (String) The type of the certificate.
- requested
Validity This property is required. Double
- certificate
This property is required. string - (String) Certificate associated with the origin certificate.
- certificate
Id 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 - expires
On 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.
- private
Key This property is required. string - request
Type This property is required. string - (String) The type of the certificate.
- requested
Validity 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.
- certificate
Id 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 - expires
On 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.
- private
Key This property is required. String - request
Type This property is required. String - (String) The type of the certificate.
- requested
Validity 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.