1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. apigee
  5. KeystoresAliasesKeyCertFile
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.apigee.KeystoresAliasesKeyCertFile

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    An alias from a key/certificate pair.

    To get more information about KeystoresAliasesKeyCertFile, see:

    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={
            "cert_infos": [{
                "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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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
    OrgId string
    Organization ID associated with the alias, without organization/ prefix
    CertsInfo KeystoresAliasesKeyCertFileCertsInfo
    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
    OrgId string
    Organization ID associated with the alias, without organization/ prefix
    CertsInfo KeystoresAliasesKeyCertFileCertsInfoArgs
    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
    orgId String
    Organization ID associated with the alias, without organization/ prefix
    certsInfo KeystoresAliasesKeyCertFileCertsInfo
    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
    orgId string
    Organization ID associated with the alias, without organization/ prefix
    certsInfo KeystoresAliasesKeyCertFileCertsInfo
    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 KeystoresAliasesKeyCertFileCertsInfoArgs
    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
    orgId String
    Organization ID associated with the alias, without organization/ prefix
    certsInfo 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Optional.Type of Alias
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Optional.Type of Alias
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Optional.Type of Alias
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    Optional.Type of Alias
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    Optional.Type of Alias
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Optional.Type of Alias

    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.
    The following state arguments are supported:
    Alias string
    Alias Name
    Cert string
    Cert content


    CertsInfo KeystoresAliasesKeyCertFileCertsInfo
    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
    OrgId 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


    CertsInfo KeystoresAliasesKeyCertFileCertsInfoArgs
    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
    OrgId 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


    certsInfo KeystoresAliasesKeyCertFileCertsInfo
    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
    orgId 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


    certsInfo KeystoresAliasesKeyCertFileCertsInfo
    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
    orgId 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 KeystoresAliasesKeyCertFileCertsInfoArgs
    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


    certsInfo 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
    orgId 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

    CertInfos List<KeystoresAliasesKeyCertFileCertsInfoCertInfo>
    (Output) List of all properties in the object. Structure is documented below.
    CertInfos []KeystoresAliasesKeyCertFileCertsInfoCertInfo
    (Output) List of all properties in the object. Structure is documented below.
    certInfos List<KeystoresAliasesKeyCertFileCertsInfoCertInfo>
    (Output) List of all properties in the object. Structure is documented below.
    certInfos KeystoresAliasesKeyCertFileCertsInfoCertInfo[]
    (Output) List of all properties in the object. Structure is documented below.
    cert_infos Sequence[KeystoresAliasesKeyCertFileCertsInfoCertInfo]
    (Output) List of all properties in the object. Structure is documented below.
    certInfos List<Property Map>
    (Output) List of all properties in the object. Structure is documented below.

    KeystoresAliasesKeyCertFileCertsInfoCertInfo, KeystoresAliasesKeyCertFileCertsInfoCertInfoArgs

    BasicConstraints string
    (Output) X.509 basic constraints extension.
    ExpiryDate string
    (Output) X.509 notAfter validity period in milliseconds since epoch.
    IsValid 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.
    PublicKey string
    (Output) Public key component of the X.509 subject public key info.
    SerialNumber string
    (Output) X.509 serial number.
    SigAlgName string
    (Output) X.509 signatureAlgorithm.
    Subject string
    (Output) X.509 subject.
    SubjectAlternativeNames List<string>
    (Output) X.509 subject alternative names (SANs) extension.
    ValidFrom string
    (Output) X.509 notBefore validity period in milliseconds since epoch.
    Version int
    (Output) X.509 version.
    BasicConstraints string
    (Output) X.509 basic constraints extension.
    ExpiryDate string
    (Output) X.509 notAfter validity period in milliseconds since epoch.
    IsValid 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.
    PublicKey string
    (Output) Public key component of the X.509 subject public key info.
    SerialNumber string
    (Output) X.509 serial number.
    SigAlgName string
    (Output) X.509 signatureAlgorithm.
    Subject string
    (Output) X.509 subject.
    SubjectAlternativeNames []string
    (Output) X.509 subject alternative names (SANs) extension.
    ValidFrom string
    (Output) X.509 notBefore validity period in milliseconds since epoch.
    Version int
    (Output) X.509 version.
    basicConstraints String
    (Output) X.509 basic constraints extension.
    expiryDate String
    (Output) X.509 notAfter validity period in milliseconds since epoch.
    isValid 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.
    publicKey String
    (Output) Public key component of the X.509 subject public key info.
    serialNumber String
    (Output) X.509 serial number.
    sigAlgName String
    (Output) X.509 signatureAlgorithm.
    subject String
    (Output) X.509 subject.
    subjectAlternativeNames List<String>
    (Output) X.509 subject alternative names (SANs) extension.
    validFrom String
    (Output) X.509 notBefore validity period in milliseconds since epoch.
    version Integer
    (Output) X.509 version.
    basicConstraints string
    (Output) X.509 basic constraints extension.
    expiryDate string
    (Output) X.509 notAfter validity period in milliseconds since epoch.
    isValid 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.
    publicKey string
    (Output) Public key component of the X.509 subject public key info.
    serialNumber string
    (Output) X.509 serial number.
    sigAlgName string
    (Output) X.509 signatureAlgorithm.
    subject string
    (Output) X.509 subject.
    subjectAlternativeNames string[]
    (Output) X.509 subject alternative names (SANs) extension.
    validFrom 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_name str
    (Output) X.509 signatureAlgorithm.
    subject str
    (Output) X.509 subject.
    subject_alternative_names Sequence[str]
    (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.
    basicConstraints String
    (Output) X.509 basic constraints extension.
    expiryDate String
    (Output) X.509 notAfter validity period in milliseconds since epoch.
    isValid 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.
    publicKey String
    (Output) Public key component of the X.509 subject public key info.
    serialNumber String
    (Output) X.509 serial number.
    sigAlgName String
    (Output) X.509 signatureAlgorithm.
    subject String
    (Output) X.509 subject.
    subjectAlternativeNames List<String>
    (Output) X.509 subject alternative names (SANs) extension.
    validFrom 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.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi