gcp.certificateauthority.getAuthority
Explore with Pulumi AI
Get info about a Google CAS Certificate Authority.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = Gcp.CertificateAuthority.GetAuthority.Invoke(new()
{
Location = "us-west1",
Pool = "pool-name",
CertificateAuthorityId = "ca-id",
});
return new Dictionary<string, object?>
{
["csr"] = @default.Apply(@default => @default.Apply(getAuthorityResult => getAuthorityResult.PemCsr)),
};
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/certificateauthority"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := certificateauthority.LookupAuthority(ctx, &certificateauthority.LookupAuthorityArgs{
Location: pulumi.StringRef("us-west1"),
Pool: pulumi.StringRef("pool-name"),
CertificateAuthorityId: pulumi.StringRef("ca-id"),
}, nil)
if err != nil {
return err
}
ctx.Export("csr", _default.PemCsr)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs;
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 default = CertificateauthorityFunctions.getAuthority(GetAuthorityArgs.builder()
.location("us-west1")
.pool("pool-name")
.certificateAuthorityId("ca-id")
.build());
ctx.export("csr", default_.pemCsr());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.certificateauthority.get_authority(location="us-west1",
pool="pool-name",
certificate_authority_id="ca-id")
pulumi.export("csr", default.pem_csr)
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const default = gcp.certificateauthority.getAuthority({
location: "us-west1",
pool: "pool-name",
certificateAuthorityId: "ca-id",
});
export const csr = _default.then(_default => _default.pemCsr);
variables:
default:
fn::invoke:
Function: gcp:certificateauthority:getAuthority
Arguments:
location: us-west1
pool: pool-name
certificateAuthorityId: ca-id
outputs:
csr: ${default.pemCsr}
Using getAuthority
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 getAuthority(args: GetAuthorityArgs, opts?: InvokeOptions): Promise<GetAuthorityResult>
function getAuthorityOutput(args: GetAuthorityOutputArgs, opts?: InvokeOptions): Output<GetAuthorityResult>
def get_authority(certificate_authority_id: Optional[str] = None,
location: Optional[str] = None,
pool: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAuthorityResult
def get_authority_output(certificate_authority_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
pool: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuthorityResult]
func LookupAuthority(ctx *Context, args *LookupAuthorityArgs, opts ...InvokeOption) (*LookupAuthorityResult, error)
func LookupAuthorityOutput(ctx *Context, args *LookupAuthorityOutputArgs, opts ...InvokeOption) LookupAuthorityResultOutput
> Note: This function is named LookupAuthority
in the Go SDK.
public static class GetAuthority
{
public static Task<GetAuthorityResult> InvokeAsync(GetAuthorityArgs args, InvokeOptions? opts = null)
public static Output<GetAuthorityResult> Invoke(GetAuthorityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuthorityResult> getAuthority(GetAuthorityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:certificateauthority/getAuthority:getAuthority
arguments:
# arguments dictionary
The following arguments are supported:
getAuthority Result
The following output properties are available:
- Access
Urls List<GetAuthority Access Url> - Configs
List<Get
Authority Config> - Create
Time string - Deletion
Protection bool - Desired
State string - Effective
Labels Dictionary<string, string> - Gcs
Bucket string - Id string
The provider-assigned unique ID for this managed resource.
- Ignore
Active boolCertificates On Deletion - Key
Specs List<GetAuthority Key Spec> - Labels Dictionary<string, string>
- Lifetime string
- Name string
- Pem
Ca stringCertificate - Pem
Ca List<string>Certificates - Pem
Csr string The PEM-encoded signed certificate signing request (CSR). This is only set on subordinate certificate authorities that are awaiting user activation.
- Pulumi
Labels Dictionary<string, string> - Skip
Grace boolPeriod - State string
- Subordinate
Configs List<GetAuthority Subordinate Config> - Type string
- Update
Time string - string
- Location string
- Pool string
- Project string
- Access
Urls []GetAuthority Access Url - Configs
[]Get
Authority Config - Create
Time string - Deletion
Protection bool - Desired
State string - Effective
Labels map[string]string - Gcs
Bucket string - Id string
The provider-assigned unique ID for this managed resource.
- Ignore
Active boolCertificates On Deletion - Key
Specs []GetAuthority Key Spec - Labels map[string]string
- Lifetime string
- Name string
- Pem
Ca stringCertificate - Pem
Ca []stringCertificates - Pem
Csr string The PEM-encoded signed certificate signing request (CSR). This is only set on subordinate certificate authorities that are awaiting user activation.
- Pulumi
Labels map[string]string - Skip
Grace boolPeriod - State string
- Subordinate
Configs []GetAuthority Subordinate Config - Type string
- Update
Time string - string
- Location string
- Pool string
- Project string
- access
Urls List<GetAuthority Access Url> - configs
List<Get
Authority Config> - create
Time String - deletion
Protection Boolean - desired
State String - effective
Labels Map<String,String> - gcs
Bucket String - id String
The provider-assigned unique ID for this managed resource.
- ignore
Active BooleanCertificates On Deletion - key
Specs List<GetAuthority Key Spec> - labels Map<String,String>
- lifetime String
- name String
- pem
Ca StringCertificate - pem
Ca List<String>Certificates - pem
Csr String The PEM-encoded signed certificate signing request (CSR). This is only set on subordinate certificate authorities that are awaiting user activation.
- pulumi
Labels Map<String,String> - skip
Grace BooleanPeriod - state String
- subordinate
Configs List<GetAuthority Subordinate Config> - type String
- update
Time String - String
- location String
- pool String
- project String
- access
Urls GetAuthority Access Url[] - configs
Get
Authority Config[] - create
Time string - deletion
Protection boolean - desired
State string - effective
Labels {[key: string]: string} - gcs
Bucket string - id string
The provider-assigned unique ID for this managed resource.
- ignore
Active booleanCertificates On Deletion - key
Specs GetAuthority Key Spec[] - labels {[key: string]: string}
- lifetime string
- name string
- pem
Ca stringCertificate - pem
Ca string[]Certificates - pem
Csr string The PEM-encoded signed certificate signing request (CSR). This is only set on subordinate certificate authorities that are awaiting user activation.
- pulumi
Labels {[key: string]: string} - skip
Grace booleanPeriod - state string
- subordinate
Configs GetAuthority Subordinate Config[] - type string
- update
Time string - string
- location string
- pool string
- project string
- access_
urls Sequence[GetAuthority Access Url] - configs
Sequence[Get
Authority Config] - create_
time str - deletion_
protection bool - desired_
state str - effective_
labels Mapping[str, str] - gcs_
bucket str - id str
The provider-assigned unique ID for this managed resource.
- ignore_
active_ boolcertificates_ on_ deletion - key_
specs Sequence[GetAuthority Key Spec] - labels Mapping[str, str]
- lifetime str
- name str
- pem_
ca_ strcertificate - pem_
ca_ Sequence[str]certificates - pem_
csr str The PEM-encoded signed certificate signing request (CSR). This is only set on subordinate certificate authorities that are awaiting user activation.
- pulumi_
labels Mapping[str, str] - skip_
grace_ boolperiod - state str
- subordinate_
configs Sequence[GetAuthority Subordinate Config] - type str
- update_
time str - str
- location str
- pool str
- project str
- access
Urls List<Property Map> - configs List<Property Map>
- create
Time String - deletion
Protection Boolean - desired
State String - effective
Labels Map<String> - gcs
Bucket String - id String
The provider-assigned unique ID for this managed resource.
- ignore
Active BooleanCertificates On Deletion - key
Specs List<Property Map> - labels Map<String>
- lifetime String
- name String
- pem
Ca StringCertificate - pem
Ca List<String>Certificates - pem
Csr String The PEM-encoded signed certificate signing request (CSR). This is only set on subordinate certificate authorities that are awaiting user activation.
- pulumi
Labels Map<String> - skip
Grace BooleanPeriod - state String
- subordinate
Configs List<Property Map> - type String
- update
Time String - String
- location String
- pool String
- project String
Supporting Types
GetAuthorityAccessUrl
- Ca
Certificate stringAccess Url - Crl
Access List<string>Urls
- Ca
Certificate stringAccess Url - Crl
Access []stringUrls
- ca
Certificate StringAccess Url - crl
Access List<String>Urls
- ca
Certificate stringAccess Url - crl
Access string[]Urls
- ca_
certificate_ straccess_ url - crl_
access_ Sequence[str]urls
- ca
Certificate StringAccess Url - crl
Access List<String>Urls
GetAuthorityConfig
GetAuthorityConfigSubjectConfig
GetAuthorityConfigSubjectConfigSubject
- Common
Name string - Country
Code string - Locality string
- Organization string
- Organizational
Unit string - Postal
Code string - Province string
- Street
Address string
- Common
Name string - Country
Code string - Locality string
- Organization string
- Organizational
Unit string - Postal
Code string - Province string
- Street
Address string
- common
Name String - country
Code String - locality String
- organization String
- organizational
Unit String - postal
Code String - province String
- street
Address String
- common
Name string - country
Code string - locality string
- organization string
- organizational
Unit string - postal
Code string - province string
- street
Address string
- common_
name str - country_
code str - locality str
- organization str
- organizational_
unit str - postal_
code str - province str
- street_
address str
- common
Name String - country
Code String - locality String
- organization String
- organizational
Unit String - postal
Code String - province String
- street
Address String
GetAuthorityConfigSubjectConfigSubjectAltName
- Dns
Names List<string> - Email
Addresses List<string> - Ip
Addresses List<string> - Uris List<string>
- Dns
Names []string - Email
Addresses []string - Ip
Addresses []string - Uris []string
- dns
Names List<String> - email
Addresses List<String> - ip
Addresses List<String> - uris List<String>
- dns
Names string[] - email
Addresses string[] - ip
Addresses string[] - uris string[]
- dns_
names Sequence[str] - email_
addresses Sequence[str] - ip_
addresses Sequence[str] - uris Sequence[str]
- dns
Names List<String> - email
Addresses List<String> - ip
Addresses List<String> - uris List<String>
GetAuthorityConfigX509Config
- Additional
Extensions List<GetAuthority Config X509Config Additional Extension> - Aia
Ocsp List<string>Servers - Ca
Options List<GetAuthority Config X509Config Ca Option> - Key
Usages List<GetAuthority Config X509Config Key Usage> - Name
Constraints List<GetAuthority Config X509Config Name Constraint> - Policy
Ids List<GetAuthority Config X509Config Policy Id>
- additional
Extensions List<GetAuthority Config X509Config Additional Extension> - aia
Ocsp List<String>Servers - ca
Options List<GetAuthority Config X509Config Ca Option> - key
Usages List<GetAuthority Config X509Config Key Usage> - name
Constraints List<GetAuthority Config X509Config Name Constraint> - policy
Ids List<GetAuthority Config X509Config Policy Id>
- additional_
extensions Sequence[GetAuthority Config X509Config Additional Extension] - aia_
ocsp_ Sequence[str]servers - ca_
options Sequence[GetAuthority Config X509Config Ca Option] - key_
usages Sequence[GetAuthority Config X509Config Key Usage] - name_
constraints Sequence[GetAuthority Config X509Config Name Constraint] - policy_
ids Sequence[GetAuthority Config X509Config Policy Id]
GetAuthorityConfigX509ConfigAdditionalExtension
- critical Boolean
- object
Ids List<Property Map> - value String
GetAuthorityConfigX509ConfigAdditionalExtensionObjectId
- Object
Id List<int>Paths
- Object
Id []intPaths
- object
Id List<Integer>Paths
- object
Id number[]Paths
- object_
id_ Sequence[int]paths
- object
Id List<Number>Paths
GetAuthorityConfigX509ConfigCaOption
- Is
Ca bool - Max
Issuer intPath Length - Non
Ca bool - Zero
Max boolIssuer Path Length
- Is
Ca bool - Max
Issuer intPath Length - Non
Ca bool - Zero
Max boolIssuer Path Length
- is
Ca Boolean - max
Issuer IntegerPath Length - non
Ca Boolean - zero
Max BooleanIssuer Path Length
- is
Ca boolean - max
Issuer numberPath Length - non
Ca boolean - zero
Max booleanIssuer Path Length
- is_
ca bool - max_
issuer_ intpath_ length - non_
ca bool - zero_
max_ boolissuer_ path_ length
- is
Ca Boolean - max
Issuer NumberPath Length - non
Ca Boolean - zero
Max BooleanIssuer Path Length
GetAuthorityConfigX509ConfigKeyUsage
GetAuthorityConfigX509ConfigKeyUsageBaseKeyUsage
- Cert
Sign bool - Content
Commitment bool - Crl
Sign bool - Data
Encipherment bool - Decipher
Only bool - Digital
Signature bool - Encipher
Only bool - Key
Agreement bool - Key
Encipherment bool
- Cert
Sign bool - Content
Commitment bool - Crl
Sign bool - Data
Encipherment bool - Decipher
Only bool - Digital
Signature bool - Encipher
Only bool - Key
Agreement bool - Key
Encipherment bool
- cert
Sign Boolean - content
Commitment Boolean - crl
Sign Boolean - data
Encipherment Boolean - decipher
Only Boolean - digital
Signature Boolean - encipher
Only Boolean - key
Agreement Boolean - key
Encipherment Boolean
- cert
Sign boolean - content
Commitment boolean - crl
Sign boolean - data
Encipherment boolean - decipher
Only boolean - digital
Signature boolean - encipher
Only boolean - key
Agreement boolean - key
Encipherment boolean
- cert_
sign bool - content_
commitment bool - crl_
sign bool - data_
encipherment bool - decipher_
only bool - digital_
signature bool - encipher_
only bool - key_
agreement bool - key_
encipherment bool
- cert
Sign Boolean - content
Commitment Boolean - crl
Sign Boolean - data
Encipherment Boolean - decipher
Only Boolean - digital
Signature Boolean - encipher
Only Boolean - key
Agreement Boolean - key
Encipherment Boolean
GetAuthorityConfigX509ConfigKeyUsageExtendedKeyUsage
- Client
Auth bool - Code
Signing bool - Email
Protection bool - Ocsp
Signing bool - Server
Auth bool - Time
Stamping bool
- Client
Auth bool - Code
Signing bool - Email
Protection bool - Ocsp
Signing bool - Server
Auth bool - Time
Stamping bool
- client
Auth Boolean - code
Signing Boolean - email
Protection Boolean - ocsp
Signing Boolean - server
Auth Boolean - time
Stamping Boolean
- client
Auth boolean - code
Signing boolean - email
Protection boolean - ocsp
Signing boolean - server
Auth boolean - time
Stamping boolean
- client_
auth bool - code_
signing bool - email_
protection bool - ocsp_
signing bool - server_
auth bool - time_
stamping bool
- client
Auth Boolean - code
Signing Boolean - email
Protection Boolean - ocsp
Signing Boolean - server
Auth Boolean - time
Stamping Boolean
GetAuthorityConfigX509ConfigKeyUsageUnknownExtendedKeyUsage
- Object
Id List<int>Paths
- Object
Id []intPaths
- object
Id List<Integer>Paths
- object
Id number[]Paths
- object_
id_ Sequence[int]paths
- object
Id List<Number>Paths
GetAuthorityConfigX509ConfigNameConstraint
- Critical bool
- Excluded
Dns List<string>Names - Excluded
Email List<string>Addresses - Excluded
Ip List<string>Ranges - Excluded
Uris List<string> - Permitted
Dns List<string>Names - Permitted
Email List<string>Addresses - Permitted
Ip List<string>Ranges - Permitted
Uris List<string>
- Critical bool
- Excluded
Dns []stringNames - Excluded
Email []stringAddresses - Excluded
Ip []stringRanges - Excluded
Uris []string - Permitted
Dns []stringNames - Permitted
Email []stringAddresses - Permitted
Ip []stringRanges - Permitted
Uris []string
- critical Boolean
- excluded
Dns List<String>Names - excluded
Email List<String>Addresses - excluded
Ip List<String>Ranges - excluded
Uris List<String> - permitted
Dns List<String>Names - permitted
Email List<String>Addresses - permitted
Ip List<String>Ranges - permitted
Uris List<String>
- critical boolean
- excluded
Dns string[]Names - excluded
Email string[]Addresses - excluded
Ip string[]Ranges - excluded
Uris string[] - permitted
Dns string[]Names - permitted
Email string[]Addresses - permitted
Ip string[]Ranges - permitted
Uris string[]
- critical bool
- excluded_
dns_ Sequence[str]names - excluded_
email_ Sequence[str]addresses - excluded_
ip_ Sequence[str]ranges - excluded_
uris Sequence[str] - permitted_
dns_ Sequence[str]names - permitted_
email_ Sequence[str]addresses - permitted_
ip_ Sequence[str]ranges - permitted_
uris Sequence[str]
- critical Boolean
- excluded
Dns List<String>Names - excluded
Email List<String>Addresses - excluded
Ip List<String>Ranges - excluded
Uris List<String> - permitted
Dns List<String>Names - permitted
Email List<String>Addresses - permitted
Ip List<String>Ranges - permitted
Uris List<String>
GetAuthorityConfigX509ConfigPolicyId
- Object
Id List<int>Paths
- Object
Id []intPaths
- object
Id List<Integer>Paths
- object
Id number[]Paths
- object_
id_ Sequence[int]paths
- object
Id List<Number>Paths
GetAuthorityKeySpec
- Algorithm string
- Cloud
Kms stringKey Version
- Algorithm string
- Cloud
Kms stringKey Version
- algorithm String
- cloud
Kms StringKey Version
- algorithm string
- cloud
Kms stringKey Version
- algorithm str
- cloud_
kms_ strkey_ version
- algorithm String
- cloud
Kms StringKey Version
GetAuthoritySubordinateConfig
GetAuthoritySubordinateConfigPemIssuerChain
- Pem
Certificates List<string>
- Pem
Certificates []string
- pem
Certificates List<String>
- pem
Certificates string[]
- pem_
certificates Sequence[str]
- pem
Certificates List<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.