Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Waas.getCertificate
Explore with Pulumi AI
This data source provides details about a specific Certificate resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service.
Gets the details of an SSL certificate.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCertificate = oci.Waas.getCertificate({
certificateId: testCertificateOciWaasCertificate.id,
});
import pulumi
import pulumi_oci as oci
test_certificate = oci.Waas.get_certificate(certificate_id=test_certificate_oci_waas_certificate["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Waas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Waas.GetCertificate(ctx, &waas.GetCertificateArgs{
CertificateId: testCertificateOciWaasCertificate.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testCertificate = Oci.Waas.GetCertificate.Invoke(new()
{
CertificateId = testCertificateOciWaasCertificate.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Waas.WaasFunctions;
import com.pulumi.oci.Waas.inputs.GetCertificateArgs;
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 testCertificate = WaasFunctions.getCertificate(GetCertificateArgs.builder()
.certificateId(testCertificateOciWaasCertificate.id())
.build());
}
}
variables:
testCertificate:
fn::invoke:
Function: oci:Waas:getCertificate
Arguments:
certificateId: ${testCertificateOciWaasCertificate.id}
Using getCertificate
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 getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>
function getCertificateOutput(args: GetCertificateOutputArgs, opts?: InvokeOptions): Output<GetCertificateResult>
def get_certificate(certificate_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCertificateResult
def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCertificateResult]
func GetCertificate(ctx *Context, args *GetCertificateArgs, opts ...InvokeOption) (*GetCertificateResult, error)
func GetCertificateOutput(ctx *Context, args *GetCertificateOutputArgs, opts ...InvokeOption) GetCertificateResultOutput
> Note: This function is named GetCertificate
in the Go SDK.
public static class GetCertificate
{
public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions? opts = null)
public static Output<GetCertificateResult> Invoke(GetCertificateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Waas/getCertificate:getCertificate
arguments:
# arguments dictionary
The following arguments are supported:
- Certificate
Id string - The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
- Certificate
Id string - The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
- certificate
Id String - The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
- certificate
Id string - The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
- certificate_
id str - The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
- certificate
Id String - The OCID of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy.
getCertificate Result
The following output properties are available:
- Certificate
Data string - The data of the SSL certificate.
- Certificate
Id string - Compartment
Id string - The OCID of the SSL certificate's compartment.
- 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"}
- Display
Name string - The user-friendly name of the SSL certificate.
- Extensions
List<Get
Certificate Extension> - Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
- 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 string
- The OCID of the SSL certificate.
- Is
Trust boolVerification Disabled - This indicates whether trust verification was disabled during the creation of SSL certificate. If
true
SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed. - Issued
By string - Issuer
Names List<GetCertificate Issuer Name> - The issuer of the certificate.
- Private
Key stringData - Public
Key List<GetInfos Certificate Public Key Info> - Information about the public key and the algorithm used by the public key.
- Serial
Number string - A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
- Signature
Algorithm string - The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
- State string
- The current lifecycle state of the SSL certificate.
- Subject
Names List<GetCertificate Subject Name> - The entity to be secured by the certificate.
- Time
Created string - The date and time the certificate was created, expressed in RFC 3339 timestamp format.
- Time
Not stringValid After - The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
- Time
Not stringValid Before - The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
- Version int
- The version of the encoded certificate.
- Certificate
Data string - The data of the SSL certificate.
- Certificate
Id string - Compartment
Id string - The OCID of the SSL certificate's compartment.
- 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"}
- Display
Name string - The user-friendly name of the SSL certificate.
- Extensions
[]Get
Certificate Extension - Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
- 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 string
- The OCID of the SSL certificate.
- Is
Trust boolVerification Disabled - This indicates whether trust verification was disabled during the creation of SSL certificate. If
true
SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed. - Issued
By string - Issuer
Names []GetCertificate Issuer Name - The issuer of the certificate.
- Private
Key stringData - Public
Key []GetInfos Certificate Public Key Info - Information about the public key and the algorithm used by the public key.
- Serial
Number string - A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
- Signature
Algorithm string - The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
- State string
- The current lifecycle state of the SSL certificate.
- Subject
Names []GetCertificate Subject Name - The entity to be secured by the certificate.
- Time
Created string - The date and time the certificate was created, expressed in RFC 3339 timestamp format.
- Time
Not stringValid After - The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
- Time
Not stringValid Before - The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
- Version int
- The version of the encoded certificate.
- certificate
Data String - The data of the SSL certificate.
- certificate
Id String - compartment
Id String - The OCID of the SSL certificate's compartment.
- 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"}
- display
Name String - The user-friendly name of the SSL certificate.
- extensions
List<Get
Certificate Extension> - Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
- 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 String
- The OCID of the SSL certificate.
- is
Trust BooleanVerification Disabled - This indicates whether trust verification was disabled during the creation of SSL certificate. If
true
SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed. - issued
By String - issuer
Names List<GetCertificate Issuer Name> - The issuer of the certificate.
- private
Key StringData - public
Key List<GetInfos Certificate Public Key Info> - Information about the public key and the algorithm used by the public key.
- serial
Number String - A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
- signature
Algorithm String - The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
- state String
- The current lifecycle state of the SSL certificate.
- subject
Names List<GetCertificate Subject Name> - The entity to be secured by the certificate.
- time
Created String - The date and time the certificate was created, expressed in RFC 3339 timestamp format.
- time
Not StringValid After - The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
- time
Not StringValid Before - The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
- version Integer
- The version of the encoded certificate.
- certificate
Data string - The data of the SSL certificate.
- certificate
Id string - compartment
Id string - The OCID of the SSL certificate's compartment.
- {[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"}
- display
Name string - The user-friendly name of the SSL certificate.
- extensions
Get
Certificate Extension[] - Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
- {[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 string
- The OCID of the SSL certificate.
- is
Trust booleanVerification Disabled - This indicates whether trust verification was disabled during the creation of SSL certificate. If
true
SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed. - issued
By string - issuer
Names GetCertificate Issuer Name[] - The issuer of the certificate.
- private
Key stringData - public
Key GetInfos Certificate Public Key Info[] - Information about the public key and the algorithm used by the public key.
- serial
Number string - A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
- signature
Algorithm string - The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
- state string
- The current lifecycle state of the SSL certificate.
- subject
Names GetCertificate Subject Name[] - The entity to be secured by the certificate.
- time
Created string - The date and time the certificate was created, expressed in RFC 3339 timestamp format.
- time
Not stringValid After - The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
- time
Not stringValid Before - The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
- version number
- The version of the encoded certificate.
- certificate_
data str - The data of the SSL certificate.
- certificate_
id str - compartment_
id str - The OCID of the SSL certificate's compartment.
- 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"}
- display_
name str - The user-friendly name of the SSL certificate.
- extensions
Sequence[waas.
Get Certificate Extension] - Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
- 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 str
- The OCID of the SSL certificate.
- is_
trust_ boolverification_ disabled - This indicates whether trust verification was disabled during the creation of SSL certificate. If
true
SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed. - issued_
by str - issuer_
names Sequence[waas.Get Certificate Issuer Name] - The issuer of the certificate.
- private_
key_ strdata - public_
key_ Sequence[waas.infos Get Certificate Public Key Info] - Information about the public key and the algorithm used by the public key.
- serial_
number str - A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
- signature_
algorithm str - The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
- state str
- The current lifecycle state of the SSL certificate.
- subject_
names Sequence[waas.Get Certificate Subject Name] - The entity to be secured by the certificate.
- time_
created str - The date and time the certificate was created, expressed in RFC 3339 timestamp format.
- time_
not_ strvalid_ after - The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
- time_
not_ strvalid_ before - The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
- version int
- The version of the encoded certificate.
- certificate
Data String - The data of the SSL certificate.
- certificate
Id String - compartment
Id String - The OCID of the SSL certificate's compartment.
- 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"}
- display
Name String - The user-friendly name of the SSL certificate.
- extensions List<Property Map>
- Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.
- 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 String
- The OCID of the SSL certificate.
- is
Trust BooleanVerification Disabled - This indicates whether trust verification was disabled during the creation of SSL certificate. If
true
SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed. - issued
By String - issuer
Names List<Property Map> - The issuer of the certificate.
- private
Key StringData - public
Key List<Property Map>Infos - Information about the public key and the algorithm used by the public key.
- serial
Number String - A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.
- signature
Algorithm String - The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.
- state String
- The current lifecycle state of the SSL certificate.
- subject
Names List<Property Map> - The entity to be secured by the certificate.
- time
Created String - The date and time the certificate was created, expressed in RFC 3339 timestamp format.
- time
Not StringValid After - The date and time the certificate will expire, expressed in RFC 3339 timestamp format.
- time
Not StringValid Before - The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.
- version Number
- The version of the encoded certificate.
Supporting Types
GetCertificateExtension
- Is
Critical bool - The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
- Name string
- The certificate extension name.
- Value string
- The certificate extension value.
- Is
Critical bool - The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
- Name string
- The certificate extension name.
- Value string
- The certificate extension value.
- is
Critical Boolean - The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
- name String
- The certificate extension name.
- value String
- The certificate extension value.
- is
Critical boolean - The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
- name string
- The certificate extension name.
- value string
- The certificate extension value.
- is_
critical bool - The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
- name str
- The certificate extension name.
- value str
- The certificate extension value.
- is
Critical Boolean - The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored.
- name String
- The certificate extension name.
- value String
- The certificate extension value.
GetCertificateIssuerName
- Common
Name string - The fully qualified domain name used for DNS lookups of the server.
- Country string
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- Email
Address string - The email address of the server's administrator.
- Locality string
- The city in which the organization is located.
- Organization string
- The organization name.
- Organizational
Unit string - The field to differentiate between divisions within an organization.
- State
Province string - The province where the organization is located.
- Common
Name string - The fully qualified domain name used for DNS lookups of the server.
- Country string
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- Email
Address string - The email address of the server's administrator.
- Locality string
- The city in which the organization is located.
- Organization string
- The organization name.
- Organizational
Unit string - The field to differentiate between divisions within an organization.
- State
Province string - The province where the organization is located.
- common
Name String - The fully qualified domain name used for DNS lookups of the server.
- country String
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- email
Address String - The email address of the server's administrator.
- locality String
- The city in which the organization is located.
- organization String
- The organization name.
- organizational
Unit String - The field to differentiate between divisions within an organization.
- state
Province String - The province where the organization is located.
- common
Name string - The fully qualified domain name used for DNS lookups of the server.
- country string
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- email
Address string - The email address of the server's administrator.
- locality string
- The city in which the organization is located.
- organization string
- The organization name.
- organizational
Unit string - The field to differentiate between divisions within an organization.
- state
Province string - The province where the organization is located.
- common_
name str - The fully qualified domain name used for DNS lookups of the server.
- country str
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- email_
address str - The email address of the server's administrator.
- locality str
- The city in which the organization is located.
- organization str
- The organization name.
- organizational_
unit str - The field to differentiate between divisions within an organization.
- state_
province str - The province where the organization is located.
- common
Name String - The fully qualified domain name used for DNS lookups of the server.
- country String
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- email
Address String - The email address of the server's administrator.
- locality String
- The city in which the organization is located.
- organization String
- The organization name.
- organizational
Unit String - The field to differentiate between divisions within an organization.
- state
Province String - The province where the organization is located.
GetCertificatePublicKeyInfo
GetCertificateSubjectName
- Common
Name string - The fully qualified domain name used for DNS lookups of the server.
- Country string
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- Email
Address string - The email address of the server's administrator.
- Locality string
- The city in which the organization is located.
- Organization string
- The organization name.
- Organizational
Unit string - The field to differentiate between divisions within an organization.
- State
Province string - The province where the organization is located.
- Common
Name string - The fully qualified domain name used for DNS lookups of the server.
- Country string
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- Email
Address string - The email address of the server's administrator.
- Locality string
- The city in which the organization is located.
- Organization string
- The organization name.
- Organizational
Unit string - The field to differentiate between divisions within an organization.
- State
Province string - The province where the organization is located.
- common
Name String - The fully qualified domain name used for DNS lookups of the server.
- country String
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- email
Address String - The email address of the server's administrator.
- locality String
- The city in which the organization is located.
- organization String
- The organization name.
- organizational
Unit String - The field to differentiate between divisions within an organization.
- state
Province String - The province where the organization is located.
- common
Name string - The fully qualified domain name used for DNS lookups of the server.
- country string
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- email
Address string - The email address of the server's administrator.
- locality string
- The city in which the organization is located.
- organization string
- The organization name.
- organizational
Unit string - The field to differentiate between divisions within an organization.
- state
Province string - The province where the organization is located.
- common_
name str - The fully qualified domain name used for DNS lookups of the server.
- country str
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- email_
address str - The email address of the server's administrator.
- locality str
- The city in which the organization is located.
- organization str
- The organization name.
- organizational_
unit str - The field to differentiate between divisions within an organization.
- state_
province str - The province where the organization is located.
- common
Name String - The fully qualified domain name used for DNS lookups of the server.
- country String
- ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website.
- email
Address String - The email address of the server's administrator.
- locality String
- The city in which the organization is located.
- organization String
- The organization name.
- organizational
Unit String - The field to differentiate between divisions within an organization.
- state
Province String - The province where the organization is located.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.