Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi
gcp.compute.getCertificate
Explore with Pulumi AI
Get info about a Google Compute SSL Certificate from its name.
Example Usage
data "google_compute_ssl_certificate" "my_cert" {
name = "my-cert"
}
output "certificate" {
value = data.google_compute_ssl_certificate.my_cert.certificate
}
output "certificate_id" {
value = data.google_compute_ssl_certificate.my_cert.certificate_id
}
output "self_link" {
value = data.google_compute_ssl_certificate.my_cert.self_link
}
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(name: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCertificateResult
def get_certificate_output(name: Optional[pulumi.Input[str]] = None,
project: 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: gcp:compute/getCertificate:getCertificate
arguments:
# arguments dictionary
The following arguments are supported:
getCertificate Result
The following output properties are available:
- Certificate string
- Certificate
Id int - Creation
Timestamp string - Description string
- Expire
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name
Prefix string - Private
Key string - Self
Link string - Project string
- Certificate string
- Certificate
Id int - Creation
Timestamp string - Description string
- Expire
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name
Prefix string - Private
Key string - Self
Link string - Project string
- certificate String
- certificate
Id Integer - creation
Timestamp String - description String
- expire
Time String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- name
Prefix String - private
Key String - self
Link String - project String
- certificate string
- certificate
Id number - creation
Timestamp string - description string
- expire
Time string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- name
Prefix string - private
Key string - self
Link string - project string
- certificate str
- certificate_
id int - creation_
timestamp str - description str
- expire_
time str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- name_
prefix str - private_
key str - self_
link str - project str
- certificate String
- certificate
Id Number - creation
Timestamp String - description String
- expire
Time String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- name
Prefix String - private
Key String - self
Link String - project String
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.