google-native logo
Google Cloud Native v0.28.0, Feb 2 23

google-native.apigee/v1.Alias

Creates an alias from a key/certificate pair. The structure of the request is controlled by the format query parameter: - keycertfile - Separate PEM-encoded key and certificate files are uploaded. Set Content-Type: multipart/form-data and include the keyFile, certFile, and password (if keys are encrypted) fields in the request body. If uploading to a truststore, omit keyFile. - pkcs12 - A PKCS12 file is uploaded. Set Content-Type: multipart/form-data, provide the file in the file field, and include the password field if the file is encrypted in the request body. - selfsignedcert - A new private key and certificate are generated. Set Content-Type: application/json and include CertificateGenerationSpec in the request body. Auto-naming is currently not supported for this resource.

Create Alias Resource

new Alias(name: string, args: AliasArgs, opts?: CustomResourceOptions);
@overload
def Alias(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          alias: Optional[str] = None,
          content_type: Optional[str] = None,
          data: Optional[str] = None,
          environment_id: Optional[str] = None,
          extensions: Optional[Sequence[Mapping[str, str]]] = None,
          file: Optional[Union[pulumi.Asset, pulumi.Archive]] = None,
          format: Optional[str] = None,
          ignore_expiry_validation: Optional[bool] = None,
          ignore_newline_validation: Optional[bool] = None,
          keystore_id: Optional[str] = None,
          organization_id: Optional[str] = None,
          password: Optional[str] = None)
@overload
def Alias(resource_name: str,
          args: AliasArgs,
          opts: Optional[ResourceOptions] = None)
func NewAlias(ctx *Context, name string, args AliasArgs, opts ...ResourceOption) (*Alias, error)
public Alias(string name, AliasArgs args, CustomResourceOptions? opts = null)
public Alias(String name, AliasArgs args)
public Alias(String name, AliasArgs args, CustomResourceOptions options)
type: google-native:apigee/v1:Alias
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AliasArgs
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 AliasArgs
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 AliasArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AliasArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AliasArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Alias 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 Alias resource accepts the following input properties:

EnvironmentId string
Format string

Required. Format of the data. Valid values include: selfsignedcert, keycertfile, or pkcs12

KeystoreId string
OrganizationId string
Alias string

Alias for the key/certificate pair. Values must match the regular expression [\w\s-.]{1,255}. This must be provided for all formats except selfsignedcert; self-signed certs may specify the alias in either this parameter or the JSON body.

ContentType string

The HTTP Content-Type header value specifying the content type of the body.

Data string

The HTTP request/response body as raw binary.

Extensions List<ImmutableDictionary<string, string>>

Application specific response metadata. Must be set in the first response for streaming APIs.

File AssetOrArchive

File to upload.

IgnoreExpiryValidation bool

Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.

IgnoreNewlineValidation bool

Flag that specifies whether to ignore newline validation. If set to true, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to false.

Password string

DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set Content-type: multipart/form-data part with name password. Password for the private key file, if required.

EnvironmentId string
Format string

Required. Format of the data. Valid values include: selfsignedcert, keycertfile, or pkcs12

KeystoreId string
OrganizationId string
Alias string

Alias for the key/certificate pair. Values must match the regular expression [\w\s-.]{1,255}. This must be provided for all formats except selfsignedcert; self-signed certs may specify the alias in either this parameter or the JSON body.

ContentType string

The HTTP Content-Type header value specifying the content type of the body.

Data string

The HTTP request/response body as raw binary.

Extensions []map[string]string

Application specific response metadata. Must be set in the first response for streaming APIs.

File pulumi.AssetOrArchive

File to upload.

IgnoreExpiryValidation bool

Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.

IgnoreNewlineValidation bool

Flag that specifies whether to ignore newline validation. If set to true, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to false.

Password string

DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set Content-type: multipart/form-data part with name password. Password for the private key file, if required.

environmentId String
format String

Required. Format of the data. Valid values include: selfsignedcert, keycertfile, or pkcs12

keystoreId String
organizationId String
alias String

Alias for the key/certificate pair. Values must match the regular expression [\w\s-.]{1,255}. This must be provided for all formats except selfsignedcert; self-signed certs may specify the alias in either this parameter or the JSON body.

contentType String

The HTTP Content-Type header value specifying the content type of the body.

data String

The HTTP request/response body as raw binary.

extensions List<Map<String,String>>

Application specific response metadata. Must be set in the first response for streaming APIs.

file AssetOrArchive

File to upload.

ignoreExpiryValidation Boolean

Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.

ignoreNewlineValidation Boolean

Flag that specifies whether to ignore newline validation. If set to true, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to false.

password String

DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set Content-type: multipart/form-data part with name password. Password for the private key file, if required.

environmentId string
format string

Required. Format of the data. Valid values include: selfsignedcert, keycertfile, or pkcs12

keystoreId string
organizationId string
alias string

Alias for the key/certificate pair. Values must match the regular expression [\w\s-.]{1,255}. This must be provided for all formats except selfsignedcert; self-signed certs may specify the alias in either this parameter or the JSON body.

contentType string

The HTTP Content-Type header value specifying the content type of the body.

data string

The HTTP request/response body as raw binary.

extensions {[key: string]: string}[]

Application specific response metadata. Must be set in the first response for streaming APIs.

file pulumi.asset.Asset | pulumi.asset.Archive

File to upload.

ignoreExpiryValidation boolean

Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.

ignoreNewlineValidation boolean

Flag that specifies whether to ignore newline validation. If set to true, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to false.

password string

DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set Content-type: multipart/form-data part with name password. Password for the private key file, if required.

environment_id str
format str

Required. Format of the data. Valid values include: selfsignedcert, keycertfile, or pkcs12

keystore_id str
organization_id str
alias str

Alias for the key/certificate pair. Values must match the regular expression [\w\s-.]{1,255}. This must be provided for all formats except selfsignedcert; self-signed certs may specify the alias in either this parameter or the JSON body.

content_type str

The HTTP Content-Type header value specifying the content type of the body.

data str

The HTTP request/response body as raw binary.

extensions Sequence[Mapping[str, str]]

Application specific response metadata. Must be set in the first response for streaming APIs.

file Union[pulumi.Asset, pulumi.Archive]

File to upload.

ignore_expiry_validation bool

Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.

ignore_newline_validation bool

Flag that specifies whether to ignore newline validation. If set to true, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to false.

password str

DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set Content-type: multipart/form-data part with name password. Password for the private key file, if required.

environmentId String
format String

Required. Format of the data. Valid values include: selfsignedcert, keycertfile, or pkcs12

keystoreId String
organizationId String
alias String

Alias for the key/certificate pair. Values must match the regular expression [\w\s-.]{1,255}. This must be provided for all formats except selfsignedcert; self-signed certs may specify the alias in either this parameter or the JSON body.

contentType String

The HTTP Content-Type header value specifying the content type of the body.

data String

The HTTP request/response body as raw binary.

extensions List<Map<String>>

Application specific response metadata. Must be set in the first response for streaming APIs.

file Asset

File to upload.

ignoreExpiryValidation Boolean

Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.

ignoreNewlineValidation Boolean

Flag that specifies whether to ignore newline validation. If set to true, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to false.

password String

DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set Content-type: multipart/form-data part with name password. Password for the private key file, if required.

Outputs

All input properties are implicitly available as output properties. Additionally, the Alias resource produces the following output properties:

CertsInfo Pulumi.GoogleNative.Apigee.V1.Outputs.GoogleCloudApigeeV1CertificateResponse

Chain of certificates under this alias.

Id string

The provider-assigned unique ID for this managed resource.

Type string

Type of alias.

CertsInfo GoogleCloudApigeeV1CertificateResponse

Chain of certificates under this alias.

Id string

The provider-assigned unique ID for this managed resource.

Type string

Type of alias.

certsInfo GoogleCloudApigeeV1CertificateResponse

Chain of certificates under this alias.

id String

The provider-assigned unique ID for this managed resource.

type String

Type of alias.

certsInfo GoogleCloudApigeeV1CertificateResponse

Chain of certificates under this alias.

id string

The provider-assigned unique ID for this managed resource.

type string

Type of alias.

certs_info GoogleCloudApigeeV1CertificateResponse

Chain of certificates under this alias.

id str

The provider-assigned unique ID for this managed resource.

type str

Type of alias.

certsInfo Property Map

Chain of certificates under this alias.

id String

The provider-assigned unique ID for this managed resource.

type String

Type of alias.

Supporting Types

GoogleCloudApigeeV1CertInfoResponse

BasicConstraints string

X.509 basic constraints extension.

ExpiryDate string

X.509 notAfter validity period in milliseconds since epoch.

IsValid string

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

X.509 issuer.

PublicKey string

Public key component of the X.509 subject public key info.

SerialNumber string

X.509 serial number.

SigAlgName string

X.509 signatureAlgorithm.

Subject string

X.509 subject.

SubjectAlternativeNames List<string>

X.509 subject alternative names (SANs) extension.

ValidFrom string

X.509 notBefore validity period in milliseconds since epoch.

Version int

X.509 version.

BasicConstraints string

X.509 basic constraints extension.

ExpiryDate string

X.509 notAfter validity period in milliseconds since epoch.

IsValid string

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

X.509 issuer.

PublicKey string

Public key component of the X.509 subject public key info.

SerialNumber string

X.509 serial number.

SigAlgName string

X.509 signatureAlgorithm.

Subject string

X.509 subject.

SubjectAlternativeNames []string

X.509 subject alternative names (SANs) extension.

ValidFrom string

X.509 notBefore validity period in milliseconds since epoch.

Version int

X.509 version.

basicConstraints String

X.509 basic constraints extension.

expiryDate String

X.509 notAfter validity period in milliseconds since epoch.

isValid String

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

X.509 issuer.

publicKey String

Public key component of the X.509 subject public key info.

serialNumber String

X.509 serial number.

sigAlgName String

X.509 signatureAlgorithm.

subject String

X.509 subject.

subjectAlternativeNames List<String>

X.509 subject alternative names (SANs) extension.

validFrom String

X.509 notBefore validity period in milliseconds since epoch.

version Integer

X.509 version.

basicConstraints string

X.509 basic constraints extension.

expiryDate string

X.509 notAfter validity period in milliseconds since epoch.

isValid string

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

X.509 issuer.

publicKey string

Public key component of the X.509 subject public key info.

serialNumber string

X.509 serial number.

sigAlgName string

X.509 signatureAlgorithm.

subject string

X.509 subject.

subjectAlternativeNames string[]

X.509 subject alternative names (SANs) extension.

validFrom string

X.509 notBefore validity period in milliseconds since epoch.

version number

X.509 version.

basic_constraints str

X.509 basic constraints extension.

expiry_date str

X.509 notAfter validity period in milliseconds since epoch.

is_valid str

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

X.509 issuer.

public_key str

Public key component of the X.509 subject public key info.

serial_number str

X.509 serial number.

sig_alg_name str

X.509 signatureAlgorithm.

subject str

X.509 subject.

subject_alternative_names Sequence[str]

X.509 subject alternative names (SANs) extension.

valid_from str

X.509 notBefore validity period in milliseconds since epoch.

version int

X.509 version.

basicConstraints String

X.509 basic constraints extension.

expiryDate String

X.509 notAfter validity period in milliseconds since epoch.

isValid String

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

X.509 issuer.

publicKey String

Public key component of the X.509 subject public key info.

serialNumber String

X.509 serial number.

sigAlgName String

X.509 signatureAlgorithm.

subject String

X.509 subject.

subjectAlternativeNames List<String>

X.509 subject alternative names (SANs) extension.

validFrom String

X.509 notBefore validity period in milliseconds since epoch.

version Number

X.509 version.

GoogleCloudApigeeV1CertificateResponse

CertInfo []GoogleCloudApigeeV1CertInfoResponse

Chain of certificates under this name.

certInfo List<GoogleCloudApigeeV1CertInfoResponse>

Chain of certificates under this name.

certInfo GoogleCloudApigeeV1CertInfoResponse[]

Chain of certificates under this name.

cert_info Sequence[GoogleCloudApigeeV1CertInfoResponse]

Chain of certificates under this name.

certInfo List<Property Map>

Chain of certificates under this name.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0