gcp.apigee.KeystoresAliasesKeyCertFile
Explore with Pulumi AI
An alias from a key/certificate pair.
To get more information about KeystoresAliasesKeyCertFile, see:
- API documentation
- How-to Guides
Create KeystoresAliasesKeyCertFile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KeystoresAliasesKeyCertFile(name: string, args: KeystoresAliasesKeyCertFileArgs, opts?: CustomResourceOptions);
@overload
def KeystoresAliasesKeyCertFile(resource_name: str,
args: KeystoresAliasesKeyCertFileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KeystoresAliasesKeyCertFile(resource_name: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
cert: Optional[str] = None,
environment: Optional[str] = None,
keystore: Optional[str] = None,
org_id: Optional[str] = None,
certs_info: Optional[KeystoresAliasesKeyCertFileCertsInfoArgs] = None,
key: Optional[str] = None,
password: Optional[str] = None)
func NewKeystoresAliasesKeyCertFile(ctx *Context, name string, args KeystoresAliasesKeyCertFileArgs, opts ...ResourceOption) (*KeystoresAliasesKeyCertFile, error)
public KeystoresAliasesKeyCertFile(string name, KeystoresAliasesKeyCertFileArgs args, CustomResourceOptions? opts = null)
public KeystoresAliasesKeyCertFile(String name, KeystoresAliasesKeyCertFileArgs args)
public KeystoresAliasesKeyCertFile(String name, KeystoresAliasesKeyCertFileArgs args, CustomResourceOptions options)
type: gcp:apigee:KeystoresAliasesKeyCertFile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args KeystoresAliasesKeyCertFileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args KeystoresAliasesKeyCertFileArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args KeystoresAliasesKeyCertFileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KeystoresAliasesKeyCertFileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KeystoresAliasesKeyCertFileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var keystoresAliasesKeyCertFileResource = new Gcp.Apigee.KeystoresAliasesKeyCertFile("keystoresAliasesKeyCertFileResource", new()
{
Alias = "string",
Cert = "string",
Environment = "string",
Keystore = "string",
OrgId = "string",
CertsInfo = new Gcp.Apigee.Inputs.KeystoresAliasesKeyCertFileCertsInfoArgs
{
CertInfos = new[]
{
new Gcp.Apigee.Inputs.KeystoresAliasesKeyCertFileCertsInfoCertInfoArgs
{
BasicConstraints = "string",
ExpiryDate = "string",
IsValid = "string",
Issuer = "string",
PublicKey = "string",
SerialNumber = "string",
SigAlgName = "string",
Subject = "string",
SubjectAlternativeNames = new[]
{
"string",
},
ValidFrom = "string",
Version = 0,
},
},
},
Key = "string",
Password = "string",
});
example, err := apigee.NewKeystoresAliasesKeyCertFile(ctx, "keystoresAliasesKeyCertFileResource", &apigee.KeystoresAliasesKeyCertFileArgs{
Alias: pulumi.String("string"),
Cert: pulumi.String("string"),
Environment: pulumi.String("string"),
Keystore: pulumi.String("string"),
OrgId: pulumi.String("string"),
CertsInfo: &apigee.KeystoresAliasesKeyCertFileCertsInfoArgs{
CertInfos: apigee.KeystoresAliasesKeyCertFileCertsInfoCertInfoArray{
&apigee.KeystoresAliasesKeyCertFileCertsInfoCertInfoArgs{
BasicConstraints: pulumi.String("string"),
ExpiryDate: pulumi.String("string"),
IsValid: pulumi.String("string"),
Issuer: pulumi.String("string"),
PublicKey: pulumi.String("string"),
SerialNumber: pulumi.String("string"),
SigAlgName: pulumi.String("string"),
Subject: pulumi.String("string"),
SubjectAlternativeNames: pulumi.StringArray{
pulumi.String("string"),
},
ValidFrom: pulumi.String("string"),
Version: pulumi.Int(0),
},
},
},
Key: pulumi.String("string"),
Password: pulumi.String("string"),
})
var keystoresAliasesKeyCertFileResource = new KeystoresAliasesKeyCertFile("keystoresAliasesKeyCertFileResource", KeystoresAliasesKeyCertFileArgs.builder()
.alias("string")
.cert("string")
.environment("string")
.keystore("string")
.orgId("string")
.certsInfo(KeystoresAliasesKeyCertFileCertsInfoArgs.builder()
.certInfos(KeystoresAliasesKeyCertFileCertsInfoCertInfoArgs.builder()
.basicConstraints("string")
.expiryDate("string")
.isValid("string")
.issuer("string")
.publicKey("string")
.serialNumber("string")
.sigAlgName("string")
.subject("string")
.subjectAlternativeNames("string")
.validFrom("string")
.version(0)
.build())
.build())
.key("string")
.password("string")
.build());
keystores_aliases_key_cert_file_resource = gcp.apigee.KeystoresAliasesKeyCertFile("keystoresAliasesKeyCertFileResource",
alias="string",
cert="string",
environment="string",
keystore="string",
org_id="string",
certs_info=gcp.apigee.KeystoresAliasesKeyCertFileCertsInfoArgs(
cert_infos=[gcp.apigee.KeystoresAliasesKeyCertFileCertsInfoCertInfoArgs(
basic_constraints="string",
expiry_date="string",
is_valid="string",
issuer="string",
public_key="string",
serial_number="string",
sig_alg_name="string",
subject="string",
subject_alternative_names=["string"],
valid_from="string",
version=0,
)],
),
key="string",
password="string")
const keystoresAliasesKeyCertFileResource = new gcp.apigee.KeystoresAliasesKeyCertFile("keystoresAliasesKeyCertFileResource", {
alias: "string",
cert: "string",
environment: "string",
keystore: "string",
orgId: "string",
certsInfo: {
certInfos: [{
basicConstraints: "string",
expiryDate: "string",
isValid: "string",
issuer: "string",
publicKey: "string",
serialNumber: "string",
sigAlgName: "string",
subject: "string",
subjectAlternativeNames: ["string"],
validFrom: "string",
version: 0,
}],
},
key: "string",
password: "string",
});
type: gcp:apigee:KeystoresAliasesKeyCertFile
properties:
alias: string
cert: string
certsInfo:
certInfos:
- basicConstraints: string
expiryDate: string
isValid: string
issuer: string
publicKey: string
serialNumber: string
sigAlgName: string
subject: string
subjectAlternativeNames:
- string
validFrom: string
version: 0
environment: string
key: string
keystore: string
orgId: string
password: string
KeystoresAliasesKeyCertFile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The KeystoresAliasesKeyCertFile resource accepts the following input properties:
- Alias string
- Alias Name
- Cert string
- Cert content
- Environment string
- Environment associated with the alias
- Keystore string
- Keystore Name
- Org
Id string - Organization ID associated with the alias, without organization/ prefix
- Certs
Info KeystoresAliases Key Cert File Certs Info - Chain of certificates under this alias. Structure is documented below.
- Key string
- Private Key content, omit if uploading to truststore
- Password string
- Password for the Private Key if it's encrypted
- Alias string
- Alias Name
- Cert string
- Cert content
- Environment string
- Environment associated with the alias
- Keystore string
- Keystore Name
- Org
Id string - Organization ID associated with the alias, without organization/ prefix
- Certs
Info KeystoresAliases Key Cert File Certs Info Args - Chain of certificates under this alias. Structure is documented below.
- Key string
- Private Key content, omit if uploading to truststore
- Password string
- Password for the Private Key if it's encrypted
- alias String
- Alias Name
- cert String
- Cert content
- environment String
- Environment associated with the alias
- keystore String
- Keystore Name
- org
Id String - Organization ID associated with the alias, without organization/ prefix
- certs
Info KeystoresAliases Key Cert File Certs Info - Chain of certificates under this alias. Structure is documented below.
- key String
- Private Key content, omit if uploading to truststore
- password String
- Password for the Private Key if it's encrypted
- alias string
- Alias Name
- cert string
- Cert content
- environment string
- Environment associated with the alias
- keystore string
- Keystore Name
- org
Id string - Organization ID associated with the alias, without organization/ prefix
- certs
Info KeystoresAliases Key Cert File Certs Info - Chain of certificates under this alias. Structure is documented below.
- key string
- Private Key content, omit if uploading to truststore
- password string
- Password for the Private Key if it's encrypted
- alias str
- Alias Name
- cert str
- Cert content
- environment str
- Environment associated with the alias
- keystore str
- Keystore Name
- org_
id str - Organization ID associated with the alias, without organization/ prefix
- certs_
info KeystoresAliases Key Cert File Certs Info Args - Chain of certificates under this alias. Structure is documented below.
- key str
- Private Key content, omit if uploading to truststore
- password str
- Password for the Private Key if it's encrypted
- alias String
- Alias Name
- cert String
- Cert content
- environment String
- Environment associated with the alias
- keystore String
- Keystore Name
- org
Id String - Organization ID associated with the alias, without organization/ prefix
- certs
Info Property Map - Chain of certificates under this alias. Structure is documented below.
- key String
- Private Key content, omit if uploading to truststore
- password String
- Password for the Private Key if it's encrypted
Outputs
All input properties are implicitly available as output properties. Additionally, the KeystoresAliasesKeyCertFile resource produces the following output properties:
Look up Existing KeystoresAliasesKeyCertFile Resource
Get an existing KeystoresAliasesKeyCertFile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: KeystoresAliasesKeyCertFileState, opts?: CustomResourceOptions): KeystoresAliasesKeyCertFile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
cert: Optional[str] = None,
certs_info: Optional[KeystoresAliasesKeyCertFileCertsInfoArgs] = None,
environment: Optional[str] = None,
key: Optional[str] = None,
keystore: Optional[str] = None,
org_id: Optional[str] = None,
password: Optional[str] = None,
type: Optional[str] = None) -> KeystoresAliasesKeyCertFile
func GetKeystoresAliasesKeyCertFile(ctx *Context, name string, id IDInput, state *KeystoresAliasesKeyCertFileState, opts ...ResourceOption) (*KeystoresAliasesKeyCertFile, error)
public static KeystoresAliasesKeyCertFile Get(string name, Input<string> id, KeystoresAliasesKeyCertFileState? state, CustomResourceOptions? opts = null)
public static KeystoresAliasesKeyCertFile get(String name, Output<String> id, KeystoresAliasesKeyCertFileState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alias string
- Alias Name
- Cert string
- Cert content
- Certs
Info KeystoresAliases Key Cert File Certs Info - Chain of certificates under this alias. Structure is documented below.
- Environment string
- Environment associated with the alias
- Key string
- Private Key content, omit if uploading to truststore
- Keystore string
- Keystore Name
- Org
Id string - Organization ID associated with the alias, without organization/ prefix
- Password string
- Password for the Private Key if it's encrypted
- Type string
- Optional.Type of Alias
- Alias string
- Alias Name
- Cert string
- Cert content
- Certs
Info KeystoresAliases Key Cert File Certs Info Args - Chain of certificates under this alias. Structure is documented below.
- Environment string
- Environment associated with the alias
- Key string
- Private Key content, omit if uploading to truststore
- Keystore string
- Keystore Name
- Org
Id string - Organization ID associated with the alias, without organization/ prefix
- Password string
- Password for the Private Key if it's encrypted
- Type string
- Optional.Type of Alias
- alias String
- Alias Name
- cert String
- Cert content
- certs
Info KeystoresAliases Key Cert File Certs Info - Chain of certificates under this alias. Structure is documented below.
- environment String
- Environment associated with the alias
- key String
- Private Key content, omit if uploading to truststore
- keystore String
- Keystore Name
- org
Id String - Organization ID associated with the alias, without organization/ prefix
- password String
- Password for the Private Key if it's encrypted
- type String
- Optional.Type of Alias
- alias string
- Alias Name
- cert string
- Cert content
- certs
Info KeystoresAliases Key Cert File Certs Info - Chain of certificates under this alias. Structure is documented below.
- environment string
- Environment associated with the alias
- key string
- Private Key content, omit if uploading to truststore
- keystore string
- Keystore Name
- org
Id string - Organization ID associated with the alias, without organization/ prefix
- password string
- Password for the Private Key if it's encrypted
- type string
- Optional.Type of Alias
- alias str
- Alias Name
- cert str
- Cert content
- certs_
info KeystoresAliases Key Cert File Certs Info Args - Chain of certificates under this alias. Structure is documented below.
- environment str
- Environment associated with the alias
- key str
- Private Key content, omit if uploading to truststore
- keystore str
- Keystore Name
- org_
id str - Organization ID associated with the alias, without organization/ prefix
- password str
- Password for the Private Key if it's encrypted
- type str
- Optional.Type of Alias
- alias String
- Alias Name
- cert String
- Cert content
- certs
Info Property Map - Chain of certificates under this alias. Structure is documented below.
- environment String
- Environment associated with the alias
- key String
- Private Key content, omit if uploading to truststore
- keystore String
- Keystore Name
- org
Id String - Organization ID associated with the alias, without organization/ prefix
- password String
- Password for the Private Key if it's encrypted
- type String
- Optional.Type of Alias
Supporting Types
KeystoresAliasesKeyCertFileCertsInfo, KeystoresAliasesKeyCertFileCertsInfoArgs
- Cert
Infos List<KeystoresAliases Key Cert File Certs Info Cert Info> - (Output) List of all properties in the object. Structure is documented below.
- Cert
Infos []KeystoresAliases Key Cert File Certs Info Cert Info - (Output) List of all properties in the object. Structure is documented below.
- cert
Infos List<KeystoresAliases Key Cert File Certs Info Cert Info> - (Output) List of all properties in the object. Structure is documented below.
- cert
Infos KeystoresAliases Key Cert File Certs Info Cert Info[] - (Output) List of all properties in the object. Structure is documented below.
- cert_
infos Sequence[KeystoresAliases Key Cert File Certs Info Cert Info] - (Output) List of all properties in the object. Structure is documented below.
- cert
Infos List<Property Map> - (Output) List of all properties in the object. Structure is documented below.
KeystoresAliasesKeyCertFileCertsInfoCertInfo, KeystoresAliasesKeyCertFileCertsInfoCertInfoArgs
- Basic
Constraints string - (Output) X.509 basic constraints extension.
- Expiry
Date string - (Output) X.509 notAfter validity period in milliseconds since epoch.
- Is
Valid string - (Output) Flag that specifies whether the certificate is valid. Flag is set to Yes if the certificate is valid, No if expired, or Not yet if not yet valid.
- Issuer string
- (Output) X.509 issuer.
- Public
Key string - (Output) Public key component of the X.509 subject public key info.
- Serial
Number string - (Output) X.509 serial number.
- Sig
Alg stringName - (Output) X.509 signatureAlgorithm.
- Subject string
- (Output) X.509 subject.
- Subject
Alternative List<string>Names - (Output) X.509 subject alternative names (SANs) extension.
- Valid
From string - (Output) X.509 notBefore validity period in milliseconds since epoch.
- Version int
- (Output) X.509 version.
- Basic
Constraints string - (Output) X.509 basic constraints extension.
- Expiry
Date string - (Output) X.509 notAfter validity period in milliseconds since epoch.
- Is
Valid string - (Output) Flag that specifies whether the certificate is valid. Flag is set to Yes if the certificate is valid, No if expired, or Not yet if not yet valid.
- Issuer string
- (Output) X.509 issuer.
- Public
Key string - (Output) Public key component of the X.509 subject public key info.
- Serial
Number string - (Output) X.509 serial number.
- Sig
Alg stringName - (Output) X.509 signatureAlgorithm.
- Subject string
- (Output) X.509 subject.
- Subject
Alternative []stringNames - (Output) X.509 subject alternative names (SANs) extension.
- Valid
From string - (Output) X.509 notBefore validity period in milliseconds since epoch.
- Version int
- (Output) X.509 version.
- basic
Constraints String - (Output) X.509 basic constraints extension.
- expiry
Date String - (Output) X.509 notAfter validity period in milliseconds since epoch.
- is
Valid String - (Output) Flag that specifies whether the certificate is valid. Flag is set to Yes if the certificate is valid, No if expired, or Not yet if not yet valid.
- issuer String
- (Output) X.509 issuer.
- public
Key String - (Output) Public key component of the X.509 subject public key info.
- serial
Number String - (Output) X.509 serial number.
- sig
Alg StringName - (Output) X.509 signatureAlgorithm.
- subject String
- (Output) X.509 subject.
- subject
Alternative List<String>Names - (Output) X.509 subject alternative names (SANs) extension.
- valid
From String - (Output) X.509 notBefore validity period in milliseconds since epoch.
- version Integer
- (Output) X.509 version.
- basic
Constraints string - (Output) X.509 basic constraints extension.
- expiry
Date string - (Output) X.509 notAfter validity period in milliseconds since epoch.
- is
Valid string - (Output) Flag that specifies whether the certificate is valid. Flag is set to Yes if the certificate is valid, No if expired, or Not yet if not yet valid.
- issuer string
- (Output) X.509 issuer.
- public
Key string - (Output) Public key component of the X.509 subject public key info.
- serial
Number string - (Output) X.509 serial number.
- sig
Alg stringName - (Output) X.509 signatureAlgorithm.
- subject string
- (Output) X.509 subject.
- subject
Alternative string[]Names - (Output) X.509 subject alternative names (SANs) extension.
- valid
From string - (Output) X.509 notBefore validity period in milliseconds since epoch.
- version number
- (Output) X.509 version.
- basic_
constraints str - (Output) X.509 basic constraints extension.
- expiry_
date str - (Output) X.509 notAfter validity period in milliseconds since epoch.
- is_
valid str - (Output) Flag that specifies whether the certificate is valid. Flag is set to Yes if the certificate is valid, No if expired, or Not yet if not yet valid.
- issuer str
- (Output) X.509 issuer.
- public_
key str - (Output) Public key component of the X.509 subject public key info.
- serial_
number str - (Output) X.509 serial number.
- sig_
alg_ strname - (Output) X.509 signatureAlgorithm.
- subject str
- (Output) X.509 subject.
- subject_
alternative_ Sequence[str]names - (Output) X.509 subject alternative names (SANs) extension.
- valid_
from str - (Output) X.509 notBefore validity period in milliseconds since epoch.
- version int
- (Output) X.509 version.
- basic
Constraints String - (Output) X.509 basic constraints extension.
- expiry
Date String - (Output) X.509 notAfter validity period in milliseconds since epoch.
- is
Valid String - (Output) Flag that specifies whether the certificate is valid. Flag is set to Yes if the certificate is valid, No if expired, or Not yet if not yet valid.
- issuer String
- (Output) X.509 issuer.
- public
Key String - (Output) Public key component of the X.509 subject public key info.
- serial
Number String - (Output) X.509 serial number.
- sig
Alg StringName - (Output) X.509 signatureAlgorithm.
- subject String
- (Output) X.509 subject.
- subject
Alternative List<String>Names - (Output) X.509 subject alternative names (SANs) extension.
- valid
From String - (Output) X.509 notBefore validity period in milliseconds since epoch.
- version Number
- (Output) X.509 version.
Import
KeystoresAliasesKeyCertFile can be imported using any of these accepted formats:
organizations/{{org_id}}/environments/{{environment}}/keystores/{{keystore}}/aliases/{{alias}}
{{org_id}}/{{environment}}/{{keystore}}/{{alias}}
When using the pulumi import
command, KeystoresAliasesKeyCertFile can be imported using one of the formats above. For example:
$ pulumi import gcp:apigee/keystoresAliasesKeyCertFile:KeystoresAliasesKeyCertFile default organizations/{{org_id}}/environments/{{environment}}/keystores/{{keystore}}/aliases/{{alias}}
$ pulumi import gcp:apigee/keystoresAliasesKeyCertFile:KeystoresAliasesKeyCertFile default {{org_id}}/{{environment}}/{{keystore}}/{{alias}}
To learn more about importing existing cloud resources, see Importing resources.
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.