Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigee/v1.Alias
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Alias(name: string, args: AliasArgs, opts?: CustomResourceOptions);
@overload
def Alias(resource_name: str,
args: AliasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Alias(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_id: Optional[str] = None,
format: Optional[str] = None,
keystore_id: Optional[str] = None,
organization_id: Optional[str] = None,
alias: Optional[str] = None,
content_type: Optional[str] = None,
data: Optional[str] = None,
extensions: Optional[Sequence[Mapping[str, str]]] = None,
file: Optional[Union[pulumi.Asset, pulumi.Archive]] = None,
ignore_expiry_validation: Optional[bool] = None,
ignore_newline_validation: Optional[bool] = None,
password: Optional[str] = None)
func NewAlias(ctx *Context, name string, args AliasArgs, opts ...ResourceOption) (*Alias, error)
public Alias(string name, AliasArgs args, CustomResourceOptions? opts = null)
type: google-native:apigee/v1:Alias
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 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var aliasResource = new GoogleNative.Apigee.V1.Alias("aliasResource", new()
{
EnvironmentId = "string",
Format = "string",
KeystoreId = "string",
OrganizationId = "string",
Alias = "string",
ContentType = "string",
Data = "string",
Extensions = new[]
{
{
{ "string", "string" },
},
},
File = new StringAsset("content"),
IgnoreExpiryValidation = false,
IgnoreNewlineValidation = false,
Password = "string",
});
example, err := apigee.NewAlias(ctx, "aliasResource", &apigee.AliasArgs{
EnvironmentId: pulumi.String("string"),
Format: pulumi.String("string"),
KeystoreId: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
Alias: pulumi.String("string"),
ContentType: pulumi.String("string"),
Data: pulumi.String("string"),
Extensions: pulumi.StringMapArray{
pulumi.StringMap{
"string": pulumi.String("string"),
},
},
File: pulumi.NewStringAsset("content"),
IgnoreExpiryValidation: pulumi.Bool(false),
IgnoreNewlineValidation: pulumi.Bool(false),
Password: pulumi.String("string"),
})
var aliasResource = new Alias("aliasResource", AliasArgs.builder()
.environmentId("string")
.format("string")
.keystoreId("string")
.organizationId("string")
.alias("string")
.contentType("string")
.data("string")
.extensions(Map.of("string", "string"))
.file(new StringAsset("content"))
.ignoreExpiryValidation(false)
.ignoreNewlineValidation(false)
.password("string")
.build());
alias_resource = google_native.apigee.v1.Alias("aliasResource",
environment_id="string",
format="string",
keystore_id="string",
organization_id="string",
alias="string",
content_type="string",
data="string",
extensions=[{
"string": "string",
}],
file=pulumi.StringAsset("content"),
ignore_expiry_validation=False,
ignore_newline_validation=False,
password="string")
const aliasResource = new google_native.apigee.v1.Alias("aliasResource", {
environmentId: "string",
format: "string",
keystoreId: "string",
organizationId: "string",
alias: "string",
contentType: "string",
data: "string",
extensions: [{
string: "string",
}],
file: new pulumi.asset.StringAsset("content"),
ignoreExpiryValidation: false,
ignoreNewlineValidation: false,
password: "string",
});
type: google-native:apigee/v1:Alias
properties:
alias: string
contentType: string
data: string
environmentId: string
extensions:
- string: string
file:
fn::StringAsset: content
format: string
ignoreExpiryValidation: false
ignoreNewlineValidation: false
keystoreId: string
organizationId: string
password: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Alias resource accepts the following input properties:
- Environment
Id string - Format string
- Required. Format of the data. Valid values include:
selfsignedcert
,keycertfile
, orpkcs12
- Keystore
Id string - Organization
Id 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 exceptselfsignedcert
; self-signed certs may specify the alias in either this parameter or the JSON body. - Content
Type 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<Immutable
Dictionary<string, string>> - Application specific response metadata. Must be set in the first response for streaming APIs.
- File
Asset
Or Archive - File to upload.
- Ignore
Expiry boolValidation - Flag that specifies whether to ignore expiry validation. If set to
true
, no expiry validation will be performed. - Ignore
Newline boolValidation - 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 tofalse
. - 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 namepassword
. Password for the private key file, if required.
- Environment
Id string - Format string
- Required. Format of the data. Valid values include:
selfsignedcert
,keycertfile
, orpkcs12
- Keystore
Id string - Organization
Id 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 exceptselfsignedcert
; self-signed certs may specify the alias in either this parameter or the JSON body. - Content
Type 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.
Asset Or Archive - File to upload.
- Ignore
Expiry boolValidation - Flag that specifies whether to ignore expiry validation. If set to
true
, no expiry validation will be performed. - Ignore
Newline boolValidation - 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 tofalse
. - 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 namepassword
. Password for the private key file, if required.
- environment
Id String - format String
- Required. Format of the data. Valid values include:
selfsignedcert
,keycertfile
, orpkcs12
- keystore
Id String - organization
Id 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 exceptselfsignedcert
; self-signed certs may specify the alias in either this parameter or the JSON body. - content
Type 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
Asset
Or Archive - File to upload.
- ignore
Expiry BooleanValidation - Flag that specifies whether to ignore expiry validation. If set to
true
, no expiry validation will be performed. - ignore
Newline BooleanValidation - 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 tofalse
. - 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 namepassword
. Password for the private key file, if required.
- environment
Id string - format string
- Required. Format of the data. Valid values include:
selfsignedcert
,keycertfile
, orpkcs12
- keystore
Id string - organization
Id 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 exceptselfsignedcert
; self-signed certs may specify the alias in either this parameter or the JSON body. - content
Type 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.
- ignore
Expiry booleanValidation - Flag that specifies whether to ignore expiry validation. If set to
true
, no expiry validation will be performed. - ignore
Newline booleanValidation - 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 tofalse
. - 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 namepassword
. Password for the private key file, if required.
- environment_
id str - format str
- Required. Format of the data. Valid values include:
selfsignedcert
,keycertfile
, orpkcs12
- 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 exceptselfsignedcert
; 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_ boolvalidation - Flag that specifies whether to ignore expiry validation. If set to
true
, no expiry validation will be performed. - ignore_
newline_ boolvalidation - 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 tofalse
. - 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 namepassword
. Password for the private key file, if required.
- environment
Id String - format String
- Required. Format of the data. Valid values include:
selfsignedcert
,keycertfile
, orpkcs12
- keystore
Id String - organization
Id 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 exceptselfsignedcert
; self-signed certs may specify the alias in either this parameter or the JSON body. - content
Type 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.
- ignore
Expiry BooleanValidation - Flag that specifies whether to ignore expiry validation. If set to
true
, no expiry validation will be performed. - ignore
Newline BooleanValidation - 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 tofalse
. - 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 namepassword
. 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:
- Certs
Info Pulumi.Google Native. Apigee. V1. Outputs. Google Cloud Apigee V1Certificate Response - Chain of certificates under this alias.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- Type of alias.
- Certs
Info GoogleCloud Apigee V1Certificate Response - Chain of certificates under this alias.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- Type of alias.
- certs
Info GoogleCloud Apigee V1Certificate Response - Chain of certificates under this alias.
- id String
- The provider-assigned unique ID for this managed resource.
- type String
- Type of alias.
- certs
Info GoogleCloud Apigee V1Certificate Response - Chain of certificates under this alias.
- id string
- The provider-assigned unique ID for this managed resource.
- type string
- Type of alias.
- certs_
info GoogleCloud Apigee V1Certificate Response - Chain of certificates under this alias.
- id str
- The provider-assigned unique ID for this managed resource.
- type str
- Type of alias.
- certs
Info 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, GoogleCloudApigeeV1CertInfoResponseArgs
- Basic
Constraints string - X.509 basic constraints extension.
- Expiry
Date string - X.509
notAfter
validity period in milliseconds since epoch. - Is
Valid string - Flag that specifies whether the certificate is valid. Flag is set to
Yes
if the certificate is valid,No
if expired, orNot yet
if not yet valid. - Issuer string
- X.509 issuer.
- Public
Key string - Public key component of the X.509 subject public key info.
- Serial
Number string - X.509 serial number.
- Sig
Alg stringName - X.509 signatureAlgorithm.
- Subject string
- X.509 subject.
- Subject
Alternative List<string>Names - X.509 subject alternative names (SANs) extension.
- Valid
From string - X.509
notBefore
validity period in milliseconds since epoch. - Version int
- X.509 version.
- Basic
Constraints string - X.509 basic constraints extension.
- Expiry
Date string - X.509
notAfter
validity period in milliseconds since epoch. - Is
Valid string - Flag that specifies whether the certificate is valid. Flag is set to
Yes
if the certificate is valid,No
if expired, orNot yet
if not yet valid. - Issuer string
- X.509 issuer.
- Public
Key string - Public key component of the X.509 subject public key info.
- Serial
Number string - X.509 serial number.
- Sig
Alg stringName - X.509 signatureAlgorithm.
- Subject string
- X.509 subject.
- Subject
Alternative []stringNames - X.509 subject alternative names (SANs) extension.
- Valid
From string - X.509
notBefore
validity period in milliseconds since epoch. - Version int
- X.509 version.
- basic
Constraints String - X.509 basic constraints extension.
- expiry
Date String - X.509
notAfter
validity period in milliseconds since epoch. - is
Valid String - Flag that specifies whether the certificate is valid. Flag is set to
Yes
if the certificate is valid,No
if expired, orNot yet
if not yet valid. - issuer String
- X.509 issuer.
- public
Key String - Public key component of the X.509 subject public key info.
- serial
Number String - X.509 serial number.
- sig
Alg StringName - X.509 signatureAlgorithm.
- subject String
- X.509 subject.
- subject
Alternative List<String>Names - X.509 subject alternative names (SANs) extension.
- valid
From String - X.509
notBefore
validity period in milliseconds since epoch. - version Integer
- X.509 version.
- basic
Constraints string - X.509 basic constraints extension.
- expiry
Date string - X.509
notAfter
validity period in milliseconds since epoch. - is
Valid string - Flag that specifies whether the certificate is valid. Flag is set to
Yes
if the certificate is valid,No
if expired, orNot yet
if not yet valid. - issuer string
- X.509 issuer.
- public
Key string - Public key component of the X.509 subject public key info.
- serial
Number string - X.509 serial number.
- sig
Alg stringName - X.509 signatureAlgorithm.
- subject string
- X.509 subject.
- subject
Alternative string[]Names - X.509 subject alternative names (SANs) extension.
- valid
From 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, orNot 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_ strname - X.509 signatureAlgorithm.
- subject str
- X.509 subject.
- subject_
alternative_ Sequence[str]names - X.509 subject alternative names (SANs) extension.
- valid_
from str - X.509
notBefore
validity period in milliseconds since epoch. - version int
- X.509 version.
- basic
Constraints String - X.509 basic constraints extension.
- expiry
Date String - X.509
notAfter
validity period in milliseconds since epoch. - is
Valid String - Flag that specifies whether the certificate is valid. Flag is set to
Yes
if the certificate is valid,No
if expired, orNot yet
if not yet valid. - issuer String
- X.509 issuer.
- public
Key String - Public key component of the X.509 subject public key info.
- serial
Number String - X.509 serial number.
- sig
Alg StringName - X.509 signatureAlgorithm.
- subject String
- X.509 subject.
- subject
Alternative List<String>Names - X.509 subject alternative names (SANs) extension.
- valid
From String - X.509
notBefore
validity period in milliseconds since epoch. - version Number
- X.509 version.
GoogleCloudApigeeV1CertificateResponse, GoogleCloudApigeeV1CertificateResponseArgs
- Cert
Info List<Pulumi.Google Native. Apigee. V1. Inputs. Google Cloud Apigee V1Cert Info Response> - Chain of certificates under this name.
- Cert
Info []GoogleCloud Apigee V1Cert Info Response - Chain of certificates under this name.
- cert
Info List<GoogleCloud Apigee V1Cert Info Response> - Chain of certificates under this name.
- cert
Info GoogleCloud Apigee V1Cert Info Response[] - Chain of certificates under this name.
- cert_
info Sequence[GoogleCloud Apigee V1Cert Info Response] - Chain of certificates under this name.
- cert
Info List<Property Map> - Chain of certificates under this name.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.