Google Cloud (GCP) Classic
getAuthority
Get info about a Google Cloud IAP Client.
Example Usage
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var @default = Output.Create(Gcp.CertificateAuthority.GetAuthority.InvokeAsync(new Gcp.CertificateAuthority.GetAuthorityArgs
{
Location = "us-west1",
Pool = "pool-name",
CertificateAuthorityId = "ca-id",
}));
this.Csr = @default.Apply(@default => @default.PemCsr);
}
[Output("csr")]
public Output<string> Csr { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/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 java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = Output.of(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 - 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.
- 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 - 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.
- 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 - 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.
- 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 - 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.
- 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 - 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.
- 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 - 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.
- 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
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
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
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.