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:
- EnvironmentId string
- Format string
- Required. Format of the data. Valid values include: selfsignedcert,keycertfile, orpkcs12
- 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 exceptselfsignedcert; 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
AssetOr Archive 
- File to upload.
- IgnoreExpiry boolValidation 
- Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.
- IgnoreNewline 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-datapart with namepassword. Password for the private key file, if required.
- EnvironmentId string
- Format string
- Required. Format of the data. Valid values include: selfsignedcert,keycertfile, orpkcs12
- 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 exceptselfsignedcert; 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.Asset Or Archive 
- File to upload.
- IgnoreExpiry boolValidation 
- Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.
- IgnoreNewline 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-datapart with namepassword. Password for the private key file, if required.
- environmentId String
- format String
- Required. Format of the data. Valid values include: selfsignedcert,keycertfile, orpkcs12
- 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 exceptselfsignedcert; 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
AssetOr Archive 
- File to upload.
- ignoreExpiry BooleanValidation 
- Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.
- ignoreNewline 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-datapart with namepassword. Password for the private key file, if required.
- environmentId string
- format string
- Required. Format of the data. Valid values include: selfsignedcert,keycertfile, orpkcs12
- 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 exceptselfsignedcert; 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.
- ignoreExpiry booleanValidation 
- Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.
- ignoreNewline 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-datapart 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-datapart with namepassword. Password for the private key file, if required.
- environmentId String
- format String
- Required. Format of the data. Valid values include: selfsignedcert,keycertfile, orpkcs12
- 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 exceptselfsignedcert; 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.
- ignoreExpiry BooleanValidation 
- Flag that specifies whether to ignore expiry validation. If set to true, no expiry validation will be performed.
- ignoreNewline 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-datapart 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:
- CertsInfo 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.
- CertsInfo 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.
- certsInfo 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.
- certsInfo 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.
- 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, GoogleCloudApigeeV1CertInfoResponseArgs            
- BasicConstraints string
- X.509 basic constraints extension.
- ExpiryDate string
- X.509 notAftervalidity period in milliseconds since epoch.
- IsValid string
- Flag that specifies whether the certificate is valid. Flag is set to Yesif the certificate is valid,Noif expired, orNot yetif 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.
- SigAlg stringName 
- X.509 signatureAlgorithm.
- Subject string
- X.509 subject.
- SubjectAlternative List<string>Names 
- X.509 subject alternative names (SANs) extension.
- ValidFrom string
- X.509 notBeforevalidity period in milliseconds since epoch.
- Version int
- X.509 version.
- BasicConstraints string
- X.509 basic constraints extension.
- ExpiryDate string
- X.509 notAftervalidity period in milliseconds since epoch.
- IsValid string
- Flag that specifies whether the certificate is valid. Flag is set to Yesif the certificate is valid,Noif expired, orNot yetif 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.
- SigAlg stringName 
- X.509 signatureAlgorithm.
- Subject string
- X.509 subject.
- SubjectAlternative []stringNames 
- X.509 subject alternative names (SANs) extension.
- ValidFrom string
- X.509 notBeforevalidity period in milliseconds since epoch.
- Version int
- X.509 version.
- basicConstraints String
- X.509 basic constraints extension.
- expiryDate String
- X.509 notAftervalidity period in milliseconds since epoch.
- isValid String
- Flag that specifies whether the certificate is valid. Flag is set to Yesif the certificate is valid,Noif expired, orNot yetif 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.
- sigAlg StringName 
- X.509 signatureAlgorithm.
- subject String
- X.509 subject.
- subjectAlternative List<String>Names 
- X.509 subject alternative names (SANs) extension.
- validFrom String
- X.509 notBeforevalidity period in milliseconds since epoch.
- version Integer
- X.509 version.
- basicConstraints string
- X.509 basic constraints extension.
- expiryDate string
- X.509 notAftervalidity period in milliseconds since epoch.
- isValid string
- Flag that specifies whether the certificate is valid. Flag is set to Yesif the certificate is valid,Noif expired, orNot yetif 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.
- sigAlg stringName 
- X.509 signatureAlgorithm.
- subject string
- X.509 subject.
- subjectAlternative string[]Names 
- X.509 subject alternative names (SANs) extension.
- validFrom string
- X.509 notBeforevalidity period in milliseconds since epoch.
- version number
- X.509 version.
- basic_constraints str
- X.509 basic constraints extension.
- expiry_date str
- X.509 notAftervalidity period in milliseconds since epoch.
- is_valid str
- Flag that specifies whether the certificate is valid. Flag is set to Yesif the certificate is valid,Noif expired, orNot yetif 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 notBeforevalidity period in milliseconds since epoch.
- version int
- X.509 version.
- basicConstraints String
- X.509 basic constraints extension.
- expiryDate String
- X.509 notAftervalidity period in milliseconds since epoch.
- isValid String
- Flag that specifies whether the certificate is valid. Flag is set to Yesif the certificate is valid,Noif expired, orNot yetif 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.
- sigAlg StringName 
- X.509 signatureAlgorithm.
- subject String
- X.509 subject.
- subjectAlternative List<String>Names 
- X.509 subject alternative names (SANs) extension.
- validFrom String
- X.509 notBeforevalidity period in milliseconds since epoch.
- version Number
- X.509 version.
GoogleCloudApigeeV1CertificateResponse, GoogleCloudApigeeV1CertificateResponseArgs          
- CertInfo List<Pulumi.Google Native. Apigee. V1. Inputs. Google Cloud Apigee V1Cert Info Response> 
- Chain of certificates under this name.
- CertInfo []GoogleCloud Apigee V1Cert Info Response 
- Chain of certificates under this name.
- certInfo List<GoogleCloud Apigee V1Cert Info Response> 
- Chain of certificates under this name.
- certInfo 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.
- certInfo 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.