1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. apigee
  5. KeystoresAliasesSelfSignedCert
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.apigee.KeystoresAliasesSelfSignedCert

Explore with Pulumi AI

An Environment Keystore Alias for Self Signed Certificate Format in Apigee

To get more information about KeystoresAliasesSelfSignedCert, see:

Example Usage

Apigee Env Keystore Alias Self Signed Cert

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const project = new gcp.organizations.Project("project", {
    projectId: "my-project",
    name: "my-project",
    orgId: "123456789",
    billingAccount: "000000-0000000-0000000-000000",
    deletionPolicy: "DELETE",
});
const apigee = new gcp.projects.Service("apigee", {
    project: project.projectId,
    service: "apigee.googleapis.com",
});
const servicenetworking = new gcp.projects.Service("servicenetworking", {
    project: project.projectId,
    service: "servicenetworking.googleapis.com",
}, {
    dependsOn: [apigee],
});
const compute = new gcp.projects.Service("compute", {
    project: project.projectId,
    service: "compute.googleapis.com",
}, {
    dependsOn: [servicenetworking],
});
const apigeeNetwork = new gcp.compute.Network("apigee_network", {
    name: "apigee-network",
    project: project.projectId,
}, {
    dependsOn: [compute],
});
const apigeeRange = new gcp.compute.GlobalAddress("apigee_range", {
    name: "apigee-range",
    purpose: "VPC_PEERING",
    addressType: "INTERNAL",
    prefixLength: 16,
    network: apigeeNetwork.id,
    project: project.projectId,
});
const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigee_vpc_connection", {
    network: apigeeNetwork.id,
    service: "servicenetworking.googleapis.com",
    reservedPeeringRanges: [apigeeRange.name],
}, {
    dependsOn: [servicenetworking],
});
const apigeeOrg = new gcp.apigee.Organization("apigee_org", {
    analyticsRegion: "us-central1",
    projectId: project.projectId,
    authorizedNetwork: apigeeNetwork.id,
}, {
    dependsOn: [
        apigeeVpcConnection,
        apigee,
    ],
});
const apigeeEnvironmentKeystoreSsAlias = new gcp.apigee.Environment("apigee_environment_keystore_ss_alias", {
    orgId: apigeeOrg.id,
    name: "env-name",
    description: "Apigee Environment",
    displayName: "environment-1",
});
const apigeeEnvironmentKeystoreAlias = new gcp.apigee.EnvKeystore("apigee_environment_keystore_alias", {
    name: "env-keystore",
    envId: apigeeEnvironmentKeystoreSsAlias.id,
});
const apigeeEnvironmentKeystoreSsAliasKeystoresAliasesSelfSignedCert = new gcp.apigee.KeystoresAliasesSelfSignedCert("apigee_environment_keystore_ss_alias", {
    environment: apigeeEnvironmentKeystoreSsAlias.name,
    orgId: apigeeOrg.name,
    keystore: apigeeEnvironmentKeystoreAlias.name,
    alias: "alias",
    keySize: "1024",
    sigAlg: "SHA512withRSA",
    certValidityInDays: 4,
    subject: {
        commonName: "selfsigned_example",
        countryCode: "US",
        locality: "TX",
        org: "CCE",
        orgUnit: "PSO",
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

project = gcp.organizations.Project("project",
    project_id="my-project",
    name="my-project",
    org_id="123456789",
    billing_account="000000-0000000-0000000-000000",
    deletion_policy="DELETE")
apigee = gcp.projects.Service("apigee",
    project=project.project_id,
    service="apigee.googleapis.com")
servicenetworking = gcp.projects.Service("servicenetworking",
    project=project.project_id,
    service="servicenetworking.googleapis.com",
    opts = pulumi.ResourceOptions(depends_on=[apigee]))
compute = gcp.projects.Service("compute",
    project=project.project_id,
    service="compute.googleapis.com",
    opts = pulumi.ResourceOptions(depends_on=[servicenetworking]))
apigee_network = gcp.compute.Network("apigee_network",
    name="apigee-network",
    project=project.project_id,
    opts = pulumi.ResourceOptions(depends_on=[compute]))
apigee_range = gcp.compute.GlobalAddress("apigee_range",
    name="apigee-range",
    purpose="VPC_PEERING",
    address_type="INTERNAL",
    prefix_length=16,
    network=apigee_network.id,
    project=project.project_id)
apigee_vpc_connection = gcp.servicenetworking.Connection("apigee_vpc_connection",
    network=apigee_network.id,
    service="servicenetworking.googleapis.com",
    reserved_peering_ranges=[apigee_range.name],
    opts = pulumi.ResourceOptions(depends_on=[servicenetworking]))
apigee_org = gcp.apigee.Organization("apigee_org",
    analytics_region="us-central1",
    project_id=project.project_id,
    authorized_network=apigee_network.id,
    opts = pulumi.ResourceOptions(depends_on=[
            apigee_vpc_connection,
            apigee,
        ]))
apigee_environment_keystore_ss_alias = gcp.apigee.Environment("apigee_environment_keystore_ss_alias",
    org_id=apigee_org.id,
    name="env-name",
    description="Apigee Environment",
    display_name="environment-1")
apigee_environment_keystore_alias = gcp.apigee.EnvKeystore("apigee_environment_keystore_alias",
    name="env-keystore",
    env_id=apigee_environment_keystore_ss_alias.id)
apigee_environment_keystore_ss_alias_keystores_aliases_self_signed_cert = gcp.apigee.KeystoresAliasesSelfSignedCert("apigee_environment_keystore_ss_alias",
    environment=apigee_environment_keystore_ss_alias.name,
    org_id=apigee_org.name,
    keystore=apigee_environment_keystore_alias.name,
    alias="alias",
    key_size="1024",
    sig_alg="SHA512withRSA",
    cert_validity_in_days=4,
    subject={
        "common_name": "selfsigned_example",
        "country_code": "US",
        "locality": "TX",
        "org": "CCE",
        "org_unit": "PSO",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/apigee"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/servicenetworking"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		project, err := organizations.NewProject(ctx, "project", &organizations.ProjectArgs{
			ProjectId:      pulumi.String("my-project"),
			Name:           pulumi.String("my-project"),
			OrgId:          pulumi.String("123456789"),
			BillingAccount: pulumi.String("000000-0000000-0000000-000000"),
			DeletionPolicy: pulumi.String("DELETE"),
		})
		if err != nil {
			return err
		}
		apigee, err := projects.NewService(ctx, "apigee", &projects.ServiceArgs{
			Project: project.ProjectId,
			Service: pulumi.String("apigee.googleapis.com"),
		})
		if err != nil {
			return err
		}
		servicenetworking, err := projects.NewService(ctx, "servicenetworking", &projects.ServiceArgs{
			Project: project.ProjectId,
			Service: pulumi.String("servicenetworking.googleapis.com"),
		}, pulumi.DependsOn([]pulumi.Resource{
			apigee,
		}))
		if err != nil {
			return err
		}
		compute, err := projects.NewService(ctx, "compute", &projects.ServiceArgs{
			Project: project.ProjectId,
			Service: pulumi.String("compute.googleapis.com"),
		}, pulumi.DependsOn([]pulumi.Resource{
			servicenetworking,
		}))
		if err != nil {
			return err
		}
		apigeeNetwork, err := compute.NewNetwork(ctx, "apigee_network", &compute.NetworkArgs{
			Name:    pulumi.String("apigee-network"),
			Project: project.ProjectId,
		}, pulumi.DependsOn([]pulumi.Resource{
			compute,
		}))
		if err != nil {
			return err
		}
		apigeeRange, err := compute.NewGlobalAddress(ctx, "apigee_range", &compute.GlobalAddressArgs{
			Name:         pulumi.String("apigee-range"),
			Purpose:      pulumi.String("VPC_PEERING"),
			AddressType:  pulumi.String("INTERNAL"),
			PrefixLength: pulumi.Int(16),
			Network:      apigeeNetwork.ID(),
			Project:      project.ProjectId,
		})
		if err != nil {
			return err
		}
		apigeeVpcConnection, err := servicenetworking.NewConnection(ctx, "apigee_vpc_connection", &servicenetworking.ConnectionArgs{
			Network: apigeeNetwork.ID(),
			Service: pulumi.String("servicenetworking.googleapis.com"),
			ReservedPeeringRanges: pulumi.StringArray{
				apigeeRange.Name,
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			servicenetworking,
		}))
		if err != nil {
			return err
		}
		apigeeOrg, err := apigee.NewOrganization(ctx, "apigee_org", &apigee.OrganizationArgs{
			AnalyticsRegion:   pulumi.String("us-central1"),
			ProjectId:         project.ProjectId,
			AuthorizedNetwork: apigeeNetwork.ID(),
		}, pulumi.DependsOn([]pulumi.Resource{
			apigeeVpcConnection,
			apigee,
		}))
		if err != nil {
			return err
		}
		apigeeEnvironmentKeystoreSsAlias, err := apigee.NewEnvironment(ctx, "apigee_environment_keystore_ss_alias", &apigee.EnvironmentArgs{
			OrgId:       apigeeOrg.ID(),
			Name:        pulumi.String("env-name"),
			Description: pulumi.String("Apigee Environment"),
			DisplayName: pulumi.String("environment-1"),
		})
		if err != nil {
			return err
		}
		apigeeEnvironmentKeystoreAlias, err := apigee.NewEnvKeystore(ctx, "apigee_environment_keystore_alias", &apigee.EnvKeystoreArgs{
			Name:  pulumi.String("env-keystore"),
			EnvId: apigeeEnvironmentKeystoreSsAlias.ID(),
		})
		if err != nil {
			return err
		}
		_, err = apigee.NewKeystoresAliasesSelfSignedCert(ctx, "apigee_environment_keystore_ss_alias", &apigee.KeystoresAliasesSelfSignedCertArgs{
			Environment:        apigeeEnvironmentKeystoreSsAlias.Name,
			OrgId:              apigeeOrg.Name,
			Keystore:           apigeeEnvironmentKeystoreAlias.Name,
			Alias:              pulumi.String("alias"),
			KeySize:            pulumi.String("1024"),
			SigAlg:             pulumi.String("SHA512withRSA"),
			CertValidityInDays: pulumi.Int(4),
			Subject: &apigee.KeystoresAliasesSelfSignedCertSubjectArgs{
				CommonName:  pulumi.String("selfsigned_example"),
				CountryCode: pulumi.String("US"),
				Locality:    pulumi.String("TX"),
				Org:         pulumi.String("CCE"),
				OrgUnit:     pulumi.String("PSO"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var project = new Gcp.Organizations.Project("project", new()
    {
        ProjectId = "my-project",
        Name = "my-project",
        OrgId = "123456789",
        BillingAccount = "000000-0000000-0000000-000000",
        DeletionPolicy = "DELETE",
    });

    var apigee = new Gcp.Projects.Service("apigee", new()
    {
        Project = project.ProjectId,
        ServiceName = "apigee.googleapis.com",
    });

    var servicenetworking = new Gcp.Projects.Service("servicenetworking", new()
    {
        Project = project.ProjectId,
        ServiceName = "servicenetworking.googleapis.com",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            apigee,
        },
    });

    var compute = new Gcp.Projects.Service("compute", new()
    {
        Project = project.ProjectId,
        ServiceName = "compute.googleapis.com",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            servicenetworking,
        },
    });

    var apigeeNetwork = new Gcp.Compute.Network("apigee_network", new()
    {
        Name = "apigee-network",
        Project = project.ProjectId,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            compute,
        },
    });

    var apigeeRange = new Gcp.Compute.GlobalAddress("apigee_range", new()
    {
        Name = "apigee-range",
        Purpose = "VPC_PEERING",
        AddressType = "INTERNAL",
        PrefixLength = 16,
        Network = apigeeNetwork.Id,
        Project = project.ProjectId,
    });

    var apigeeVpcConnection = new Gcp.ServiceNetworking.Connection("apigee_vpc_connection", new()
    {
        Network = apigeeNetwork.Id,
        Service = "servicenetworking.googleapis.com",
        ReservedPeeringRanges = new[]
        {
            apigeeRange.Name,
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            servicenetworking,
        },
    });

    var apigeeOrg = new Gcp.Apigee.Organization("apigee_org", new()
    {
        AnalyticsRegion = "us-central1",
        ProjectId = project.ProjectId,
        AuthorizedNetwork = apigeeNetwork.Id,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            apigeeVpcConnection,
            apigee,
        },
    });

    var apigeeEnvironmentKeystoreSsAlias = new Gcp.Apigee.Environment("apigee_environment_keystore_ss_alias", new()
    {
        OrgId = apigeeOrg.Id,
        Name = "env-name",
        Description = "Apigee Environment",
        DisplayName = "environment-1",
    });

    var apigeeEnvironmentKeystoreAlias = new Gcp.Apigee.EnvKeystore("apigee_environment_keystore_alias", new()
    {
        Name = "env-keystore",
        EnvId = apigeeEnvironmentKeystoreSsAlias.Id,
    });

    var apigeeEnvironmentKeystoreSsAliasKeystoresAliasesSelfSignedCert = new Gcp.Apigee.KeystoresAliasesSelfSignedCert("apigee_environment_keystore_ss_alias", new()
    {
        Environment = apigeeEnvironmentKeystoreSsAlias.Name,
        OrgId = apigeeOrg.Name,
        Keystore = apigeeEnvironmentKeystoreAlias.Name,
        Alias = "alias",
        KeySize = "1024",
        SigAlg = "SHA512withRSA",
        CertValidityInDays = 4,
        Subject = new Gcp.Apigee.Inputs.KeystoresAliasesSelfSignedCertSubjectArgs
        {
            CommonName = "selfsigned_example",
            CountryCode = "US",
            Locality = "TX",
            Org = "CCE",
            OrgUnit = "PSO",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.apigee.Organization;
import com.pulumi.gcp.apigee.OrganizationArgs;
import com.pulumi.gcp.apigee.Environment;
import com.pulumi.gcp.apigee.EnvironmentArgs;
import com.pulumi.gcp.apigee.EnvKeystore;
import com.pulumi.gcp.apigee.EnvKeystoreArgs;
import com.pulumi.gcp.apigee.KeystoresAliasesSelfSignedCert;
import com.pulumi.gcp.apigee.KeystoresAliasesSelfSignedCertArgs;
import com.pulumi.gcp.apigee.inputs.KeystoresAliasesSelfSignedCertSubjectArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var project = new Project("project", ProjectArgs.builder()
            .projectId("my-project")
            .name("my-project")
            .orgId("123456789")
            .billingAccount("000000-0000000-0000000-000000")
            .deletionPolicy("DELETE")
            .build());

        var apigee = new Service("apigee", ServiceArgs.builder()
            .project(project.projectId())
            .service("apigee.googleapis.com")
            .build());

        var servicenetworking = new Service("servicenetworking", ServiceArgs.builder()
            .project(project.projectId())
            .service("servicenetworking.googleapis.com")
            .build(), CustomResourceOptions.builder()
                .dependsOn(apigee)
                .build());

        var compute = new Service("compute", ServiceArgs.builder()
            .project(project.projectId())
            .service("compute.googleapis.com")
            .build(), CustomResourceOptions.builder()
                .dependsOn(servicenetworking)
                .build());

        var apigeeNetwork = new Network("apigeeNetwork", NetworkArgs.builder()
            .name("apigee-network")
            .project(project.projectId())
            .build(), CustomResourceOptions.builder()
                .dependsOn(compute)
                .build());

        var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
            .name("apigee-range")
            .purpose("VPC_PEERING")
            .addressType("INTERNAL")
            .prefixLength(16)
            .network(apigeeNetwork.id())
            .project(project.projectId())
            .build());

        var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
            .network(apigeeNetwork.id())
            .service("servicenetworking.googleapis.com")
            .reservedPeeringRanges(apigeeRange.name())
            .build(), CustomResourceOptions.builder()
                .dependsOn(servicenetworking)
                .build());

        var apigeeOrg = new Organization("apigeeOrg", OrganizationArgs.builder()
            .analyticsRegion("us-central1")
            .projectId(project.projectId())
            .authorizedNetwork(apigeeNetwork.id())
            .build(), CustomResourceOptions.builder()
                .dependsOn(                
                    apigeeVpcConnection,
                    apigee)
                .build());

        var apigeeEnvironmentKeystoreSsAlias = new Environment("apigeeEnvironmentKeystoreSsAlias", EnvironmentArgs.builder()
            .orgId(apigeeOrg.id())
            .name("env-name")
            .description("Apigee Environment")
            .displayName("environment-1")
            .build());

        var apigeeEnvironmentKeystoreAlias = new EnvKeystore("apigeeEnvironmentKeystoreAlias", EnvKeystoreArgs.builder()
            .name("env-keystore")
            .envId(apigeeEnvironmentKeystoreSsAlias.id())
            .build());

        var apigeeEnvironmentKeystoreSsAliasKeystoresAliasesSelfSignedCert = new KeystoresAliasesSelfSignedCert("apigeeEnvironmentKeystoreSsAliasKeystoresAliasesSelfSignedCert", KeystoresAliasesSelfSignedCertArgs.builder()
            .environment(apigeeEnvironmentKeystoreSsAlias.name())
            .orgId(apigeeOrg.name())
            .keystore(apigeeEnvironmentKeystoreAlias.name())
            .alias("alias")
            .keySize("1024")
            .sigAlg("SHA512withRSA")
            .certValidityInDays(4)
            .subject(KeystoresAliasesSelfSignedCertSubjectArgs.builder()
                .commonName("selfsigned_example")
                .countryCode("US")
                .locality("TX")
                .org("CCE")
                .orgUnit("PSO")
                .build())
            .build());

    }
}
Copy
resources:
  project:
    type: gcp:organizations:Project
    properties:
      projectId: my-project
      name: my-project
      orgId: '123456789'
      billingAccount: 000000-0000000-0000000-000000
      deletionPolicy: DELETE
  apigee:
    type: gcp:projects:Service
    properties:
      project: ${project.projectId}
      service: apigee.googleapis.com
  servicenetworking:
    type: gcp:projects:Service
    properties:
      project: ${project.projectId}
      service: servicenetworking.googleapis.com
    options:
      dependsOn:
        - ${apigee}
  compute:
    type: gcp:projects:Service
    properties:
      project: ${project.projectId}
      service: compute.googleapis.com
    options:
      dependsOn:
        - ${servicenetworking}
  apigeeNetwork:
    type: gcp:compute:Network
    name: apigee_network
    properties:
      name: apigee-network
      project: ${project.projectId}
    options:
      dependsOn:
        - ${compute}
  apigeeRange:
    type: gcp:compute:GlobalAddress
    name: apigee_range
    properties:
      name: apigee-range
      purpose: VPC_PEERING
      addressType: INTERNAL
      prefixLength: 16
      network: ${apigeeNetwork.id}
      project: ${project.projectId}
  apigeeVpcConnection:
    type: gcp:servicenetworking:Connection
    name: apigee_vpc_connection
    properties:
      network: ${apigeeNetwork.id}
      service: servicenetworking.googleapis.com
      reservedPeeringRanges:
        - ${apigeeRange.name}
    options:
      dependsOn:
        - ${servicenetworking}
  apigeeOrg:
    type: gcp:apigee:Organization
    name: apigee_org
    properties:
      analyticsRegion: us-central1
      projectId: ${project.projectId}
      authorizedNetwork: ${apigeeNetwork.id}
    options:
      dependsOn:
        - ${apigeeVpcConnection}
        - ${apigee}
  apigeeEnvironmentKeystoreSsAlias:
    type: gcp:apigee:Environment
    name: apigee_environment_keystore_ss_alias
    properties:
      orgId: ${apigeeOrg.id}
      name: env-name
      description: Apigee Environment
      displayName: environment-1
  apigeeEnvironmentKeystoreAlias:
    type: gcp:apigee:EnvKeystore
    name: apigee_environment_keystore_alias
    properties:
      name: env-keystore
      envId: ${apigeeEnvironmentKeystoreSsAlias.id}
  apigeeEnvironmentKeystoreSsAliasKeystoresAliasesSelfSignedCert:
    type: gcp:apigee:KeystoresAliasesSelfSignedCert
    name: apigee_environment_keystore_ss_alias
    properties:
      environment: ${apigeeEnvironmentKeystoreSsAlias.name}
      orgId: ${apigeeOrg.name}
      keystore: ${apigeeEnvironmentKeystoreAlias.name}
      alias: alias
      keySize: 1024
      sigAlg: SHA512withRSA
      certValidityInDays: 4
      subject:
        commonName: selfsigned_example
        countryCode: US
        locality: TX
        org: CCE
        orgUnit: PSO
Copy

Create KeystoresAliasesSelfSignedCert Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new KeystoresAliasesSelfSignedCert(name: string, args: KeystoresAliasesSelfSignedCertArgs, opts?: CustomResourceOptions);
@overload
def KeystoresAliasesSelfSignedCert(resource_name: str,
                                   args: KeystoresAliasesSelfSignedCertArgs,
                                   opts: Optional[ResourceOptions] = None)

@overload
def KeystoresAliasesSelfSignedCert(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   alias: Optional[str] = None,
                                   environment: Optional[str] = None,
                                   keystore: Optional[str] = None,
                                   org_id: Optional[str] = None,
                                   sig_alg: Optional[str] = None,
                                   subject: Optional[KeystoresAliasesSelfSignedCertSubjectArgs] = None,
                                   cert_validity_in_days: Optional[int] = None,
                                   key_size: Optional[str] = None,
                                   subject_alternative_dns_names: Optional[KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs] = None)
func NewKeystoresAliasesSelfSignedCert(ctx *Context, name string, args KeystoresAliasesSelfSignedCertArgs, opts ...ResourceOption) (*KeystoresAliasesSelfSignedCert, error)
public KeystoresAliasesSelfSignedCert(string name, KeystoresAliasesSelfSignedCertArgs args, CustomResourceOptions? opts = null)
public KeystoresAliasesSelfSignedCert(String name, KeystoresAliasesSelfSignedCertArgs args)
public KeystoresAliasesSelfSignedCert(String name, KeystoresAliasesSelfSignedCertArgs args, CustomResourceOptions options)
type: gcp:apigee:KeystoresAliasesSelfSignedCert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. KeystoresAliasesSelfSignedCertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. KeystoresAliasesSelfSignedCertArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. KeystoresAliasesSelfSignedCertArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. KeystoresAliasesSelfSignedCertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. KeystoresAliasesSelfSignedCertArgs
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 keystoresAliasesSelfSignedCertResource = new Gcp.Apigee.KeystoresAliasesSelfSignedCert("keystoresAliasesSelfSignedCertResource", new()
{
    Alias = "string",
    Environment = "string",
    Keystore = "string",
    OrgId = "string",
    SigAlg = "string",
    Subject = new Gcp.Apigee.Inputs.KeystoresAliasesSelfSignedCertSubjectArgs
    {
        CommonName = "string",
        CountryCode = "string",
        Email = "string",
        Locality = "string",
        Org = "string",
        OrgUnit = "string",
        State = "string",
    },
    CertValidityInDays = 0,
    KeySize = "string",
    SubjectAlternativeDnsNames = new Gcp.Apigee.Inputs.KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs
    {
        SubjectAlternativeName = "string",
    },
});
Copy
example, err := apigee.NewKeystoresAliasesSelfSignedCert(ctx, "keystoresAliasesSelfSignedCertResource", &apigee.KeystoresAliasesSelfSignedCertArgs{
	Alias:       pulumi.String("string"),
	Environment: pulumi.String("string"),
	Keystore:    pulumi.String("string"),
	OrgId:       pulumi.String("string"),
	SigAlg:      pulumi.String("string"),
	Subject: &apigee.KeystoresAliasesSelfSignedCertSubjectArgs{
		CommonName:  pulumi.String("string"),
		CountryCode: pulumi.String("string"),
		Email:       pulumi.String("string"),
		Locality:    pulumi.String("string"),
		Org:         pulumi.String("string"),
		OrgUnit:     pulumi.String("string"),
		State:       pulumi.String("string"),
	},
	CertValidityInDays: pulumi.Int(0),
	KeySize:            pulumi.String("string"),
	SubjectAlternativeDnsNames: &apigee.KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs{
		SubjectAlternativeName: pulumi.String("string"),
	},
})
Copy
var keystoresAliasesSelfSignedCertResource = new KeystoresAliasesSelfSignedCert("keystoresAliasesSelfSignedCertResource", KeystoresAliasesSelfSignedCertArgs.builder()
    .alias("string")
    .environment("string")
    .keystore("string")
    .orgId("string")
    .sigAlg("string")
    .subject(KeystoresAliasesSelfSignedCertSubjectArgs.builder()
        .commonName("string")
        .countryCode("string")
        .email("string")
        .locality("string")
        .org("string")
        .orgUnit("string")
        .state("string")
        .build())
    .certValidityInDays(0)
    .keySize("string")
    .subjectAlternativeDnsNames(KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs.builder()
        .subjectAlternativeName("string")
        .build())
    .build());
Copy
keystores_aliases_self_signed_cert_resource = gcp.apigee.KeystoresAliasesSelfSignedCert("keystoresAliasesSelfSignedCertResource",
    alias="string",
    environment="string",
    keystore="string",
    org_id="string",
    sig_alg="string",
    subject={
        "common_name": "string",
        "country_code": "string",
        "email": "string",
        "locality": "string",
        "org": "string",
        "org_unit": "string",
        "state": "string",
    },
    cert_validity_in_days=0,
    key_size="string",
    subject_alternative_dns_names={
        "subject_alternative_name": "string",
    })
Copy
const keystoresAliasesSelfSignedCertResource = new gcp.apigee.KeystoresAliasesSelfSignedCert("keystoresAliasesSelfSignedCertResource", {
    alias: "string",
    environment: "string",
    keystore: "string",
    orgId: "string",
    sigAlg: "string",
    subject: {
        commonName: "string",
        countryCode: "string",
        email: "string",
        locality: "string",
        org: "string",
        orgUnit: "string",
        state: "string",
    },
    certValidityInDays: 0,
    keySize: "string",
    subjectAlternativeDnsNames: {
        subjectAlternativeName: "string",
    },
});
Copy
type: gcp:apigee:KeystoresAliasesSelfSignedCert
properties:
    alias: string
    certValidityInDays: 0
    environment: string
    keySize: string
    keystore: string
    orgId: string
    sigAlg: string
    subject:
        commonName: string
        countryCode: string
        email: string
        locality: string
        org: string
        orgUnit: string
        state: string
    subjectAlternativeDnsNames:
        subjectAlternativeName: string
Copy

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

Alias
This property is required.
Changes to this property will trigger replacement.
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.
Environment
This property is required.
Changes to this property will trigger replacement.
string
The Apigee environment name
Keystore
This property is required.
Changes to this property will trigger replacement.
string
The Apigee keystore name associated in an Apigee environment
OrgId
This property is required.
Changes to this property will trigger replacement.
string
The Apigee Organization name associated with the Apigee environment
SigAlg
This property is required.
Changes to this property will trigger replacement.
string
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
Subject
This property is required.
Changes to this property will trigger replacement.
KeystoresAliasesSelfSignedCertSubject
Subject details. Structure is documented below.
CertValidityInDays Changes to this property will trigger replacement. int
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
KeySize Changes to this property will trigger replacement. string
Key size. Default and maximum value is 2048 bits.
SubjectAlternativeDnsNames Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNames
List of alternative host names. Maximum length is 255 characters for each value.
Alias
This property is required.
Changes to this property will trigger replacement.
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.
Environment
This property is required.
Changes to this property will trigger replacement.
string
The Apigee environment name
Keystore
This property is required.
Changes to this property will trigger replacement.
string
The Apigee keystore name associated in an Apigee environment
OrgId
This property is required.
Changes to this property will trigger replacement.
string
The Apigee Organization name associated with the Apigee environment
SigAlg
This property is required.
Changes to this property will trigger replacement.
string
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
Subject
This property is required.
Changes to this property will trigger replacement.
KeystoresAliasesSelfSignedCertSubjectArgs
Subject details. Structure is documented below.
CertValidityInDays Changes to this property will trigger replacement. int
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
KeySize Changes to this property will trigger replacement. string
Key size. Default and maximum value is 2048 bits.
SubjectAlternativeDnsNames Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs
List of alternative host names. Maximum length is 255 characters for each value.
alias
This property is required.
Changes to this property will trigger replacement.
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.
environment
This property is required.
Changes to this property will trigger replacement.
String
The Apigee environment name
keystore
This property is required.
Changes to this property will trigger replacement.
String
The Apigee keystore name associated in an Apigee environment
orgId
This property is required.
Changes to this property will trigger replacement.
String
The Apigee Organization name associated with the Apigee environment
sigAlg
This property is required.
Changes to this property will trigger replacement.
String
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
subject
This property is required.
Changes to this property will trigger replacement.
KeystoresAliasesSelfSignedCertSubject
Subject details. Structure is documented below.
certValidityInDays Changes to this property will trigger replacement. Integer
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
keySize Changes to this property will trigger replacement. String
Key size. Default and maximum value is 2048 bits.
subjectAlternativeDnsNames Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNames
List of alternative host names. Maximum length is 255 characters for each value.
alias
This property is required.
Changes to this property will trigger replacement.
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.
environment
This property is required.
Changes to this property will trigger replacement.
string
The Apigee environment name
keystore
This property is required.
Changes to this property will trigger replacement.
string
The Apigee keystore name associated in an Apigee environment
orgId
This property is required.
Changes to this property will trigger replacement.
string
The Apigee Organization name associated with the Apigee environment
sigAlg
This property is required.
Changes to this property will trigger replacement.
string
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
subject
This property is required.
Changes to this property will trigger replacement.
KeystoresAliasesSelfSignedCertSubject
Subject details. Structure is documented below.
certValidityInDays Changes to this property will trigger replacement. number
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
keySize Changes to this property will trigger replacement. string
Key size. Default and maximum value is 2048 bits.
subjectAlternativeDnsNames Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNames
List of alternative host names. Maximum length is 255 characters for each value.
alias
This property is required.
Changes to this property will trigger replacement.
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.
environment
This property is required.
Changes to this property will trigger replacement.
str
The Apigee environment name
keystore
This property is required.
Changes to this property will trigger replacement.
str
The Apigee keystore name associated in an Apigee environment
org_id
This property is required.
Changes to this property will trigger replacement.
str
The Apigee Organization name associated with the Apigee environment
sig_alg
This property is required.
Changes to this property will trigger replacement.
str
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
subject
This property is required.
Changes to this property will trigger replacement.
KeystoresAliasesSelfSignedCertSubjectArgs
Subject details. Structure is documented below.
cert_validity_in_days Changes to this property will trigger replacement. int
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
key_size Changes to this property will trigger replacement. str
Key size. Default and maximum value is 2048 bits.
subject_alternative_dns_names Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs
List of alternative host names. Maximum length is 255 characters for each value.
alias
This property is required.
Changes to this property will trigger replacement.
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.
environment
This property is required.
Changes to this property will trigger replacement.
String
The Apigee environment name
keystore
This property is required.
Changes to this property will trigger replacement.
String
The Apigee keystore name associated in an Apigee environment
orgId
This property is required.
Changes to this property will trigger replacement.
String
The Apigee Organization name associated with the Apigee environment
sigAlg
This property is required.
Changes to this property will trigger replacement.
String
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
subject
This property is required.
Changes to this property will trigger replacement.
Property Map
Subject details. Structure is documented below.
certValidityInDays Changes to this property will trigger replacement. Number
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
keySize Changes to this property will trigger replacement. String
Key size. Default and maximum value is 2048 bits.
subjectAlternativeDnsNames Changes to this property will trigger replacement. Property Map
List of alternative host names. Maximum length is 255 characters for each value.

Outputs

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

CertsInfos List<KeystoresAliasesSelfSignedCertCertsInfo>
Chain of certificates under this alias. Structure is documented below.
Id string
The provider-assigned unique ID for this managed resource.
Type string
Optional.Type of Alias
CertsInfos []KeystoresAliasesSelfSignedCertCertsInfo
Chain of certificates under this alias. Structure is documented below.
Id string
The provider-assigned unique ID for this managed resource.
Type string
Optional.Type of Alias
certsInfos List<KeystoresAliasesSelfSignedCertCertsInfo>
Chain of certificates under this alias. Structure is documented below.
id String
The provider-assigned unique ID for this managed resource.
type String
Optional.Type of Alias
certsInfos KeystoresAliasesSelfSignedCertCertsInfo[]
Chain of certificates under this alias. Structure is documented below.
id string
The provider-assigned unique ID for this managed resource.
type string
Optional.Type of Alias
certs_infos Sequence[KeystoresAliasesSelfSignedCertCertsInfo]
Chain of certificates under this alias. Structure is documented below.
id str
The provider-assigned unique ID for this managed resource.
type str
Optional.Type of Alias
certsInfos List<Property Map>
Chain of certificates under this alias. Structure is documented below.
id String
The provider-assigned unique ID for this managed resource.
type String
Optional.Type of Alias

Look up Existing KeystoresAliasesSelfSignedCert Resource

Get an existing KeystoresAliasesSelfSignedCert 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?: KeystoresAliasesSelfSignedCertState, opts?: CustomResourceOptions): KeystoresAliasesSelfSignedCert
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alias: Optional[str] = None,
        cert_validity_in_days: Optional[int] = None,
        certs_infos: Optional[Sequence[KeystoresAliasesSelfSignedCertCertsInfoArgs]] = None,
        environment: Optional[str] = None,
        key_size: Optional[str] = None,
        keystore: Optional[str] = None,
        org_id: Optional[str] = None,
        sig_alg: Optional[str] = None,
        subject: Optional[KeystoresAliasesSelfSignedCertSubjectArgs] = None,
        subject_alternative_dns_names: Optional[KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs] = None,
        type: Optional[str] = None) -> KeystoresAliasesSelfSignedCert
func GetKeystoresAliasesSelfSignedCert(ctx *Context, name string, id IDInput, state *KeystoresAliasesSelfSignedCertState, opts ...ResourceOption) (*KeystoresAliasesSelfSignedCert, error)
public static KeystoresAliasesSelfSignedCert Get(string name, Input<string> id, KeystoresAliasesSelfSignedCertState? state, CustomResourceOptions? opts = null)
public static KeystoresAliasesSelfSignedCert get(String name, Output<String> id, KeystoresAliasesSelfSignedCertState state, CustomResourceOptions options)
resources:  _:    type: gcp:apigee:KeystoresAliasesSelfSignedCert    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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.
CertValidityInDays Changes to this property will trigger replacement. int
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
CertsInfos List<KeystoresAliasesSelfSignedCertCertsInfo>
Chain of certificates under this alias. Structure is documented below.
Environment Changes to this property will trigger replacement. string
The Apigee environment name
KeySize Changes to this property will trigger replacement. string
Key size. Default and maximum value is 2048 bits.
Keystore Changes to this property will trigger replacement. string
The Apigee keystore name associated in an Apigee environment
OrgId Changes to this property will trigger replacement. string
The Apigee Organization name associated with the Apigee environment
SigAlg Changes to this property will trigger replacement. string
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
Subject Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubject
Subject details. Structure is documented below.
SubjectAlternativeDnsNames Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNames
List of alternative host names. Maximum length is 255 characters for each value.
Type string
Optional.Type of Alias
Alias Changes to this property will trigger replacement. 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.
CertValidityInDays Changes to this property will trigger replacement. int
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
CertsInfos []KeystoresAliasesSelfSignedCertCertsInfoArgs
Chain of certificates under this alias. Structure is documented below.
Environment Changes to this property will trigger replacement. string
The Apigee environment name
KeySize Changes to this property will trigger replacement. string
Key size. Default and maximum value is 2048 bits.
Keystore Changes to this property will trigger replacement. string
The Apigee keystore name associated in an Apigee environment
OrgId Changes to this property will trigger replacement. string
The Apigee Organization name associated with the Apigee environment
SigAlg Changes to this property will trigger replacement. string
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
Subject Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectArgs
Subject details. Structure is documented below.
SubjectAlternativeDnsNames Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs
List of alternative host names. Maximum length is 255 characters for each value.
Type string
Optional.Type of Alias
alias Changes to this property will trigger replacement. 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.
certValidityInDays Changes to this property will trigger replacement. Integer
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
certsInfos List<KeystoresAliasesSelfSignedCertCertsInfo>
Chain of certificates under this alias. Structure is documented below.
environment Changes to this property will trigger replacement. String
The Apigee environment name
keySize Changes to this property will trigger replacement. String
Key size. Default and maximum value is 2048 bits.
keystore Changes to this property will trigger replacement. String
The Apigee keystore name associated in an Apigee environment
orgId Changes to this property will trigger replacement. String
The Apigee Organization name associated with the Apigee environment
sigAlg Changes to this property will trigger replacement. String
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
subject Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubject
Subject details. Structure is documented below.
subjectAlternativeDnsNames Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNames
List of alternative host names. Maximum length is 255 characters for each value.
type String
Optional.Type of Alias
alias Changes to this property will trigger replacement. 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.
certValidityInDays Changes to this property will trigger replacement. number
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
certsInfos KeystoresAliasesSelfSignedCertCertsInfo[]
Chain of certificates under this alias. Structure is documented below.
environment Changes to this property will trigger replacement. string
The Apigee environment name
keySize Changes to this property will trigger replacement. string
Key size. Default and maximum value is 2048 bits.
keystore Changes to this property will trigger replacement. string
The Apigee keystore name associated in an Apigee environment
orgId Changes to this property will trigger replacement. string
The Apigee Organization name associated with the Apigee environment
sigAlg Changes to this property will trigger replacement. string
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
subject Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubject
Subject details. Structure is documented below.
subjectAlternativeDnsNames Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNames
List of alternative host names. Maximum length is 255 characters for each value.
type string
Optional.Type of Alias
alias Changes to this property will trigger replacement. 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.
cert_validity_in_days Changes to this property will trigger replacement. int
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
certs_infos Sequence[KeystoresAliasesSelfSignedCertCertsInfoArgs]
Chain of certificates under this alias. Structure is documented below.
environment Changes to this property will trigger replacement. str
The Apigee environment name
key_size Changes to this property will trigger replacement. str
Key size. Default and maximum value is 2048 bits.
keystore Changes to this property will trigger replacement. str
The Apigee keystore name associated in an Apigee environment
org_id Changes to this property will trigger replacement. str
The Apigee Organization name associated with the Apigee environment
sig_alg Changes to this property will trigger replacement. str
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
subject Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectArgs
Subject details. Structure is documented below.
subject_alternative_dns_names Changes to this property will trigger replacement. KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs
List of alternative host names. Maximum length is 255 characters for each value.
type str
Optional.Type of Alias
alias Changes to this property will trigger replacement. 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.
certValidityInDays Changes to this property will trigger replacement. Number
Validity duration of certificate, in days. Accepts positive non-zero value. Defaults to 365.
certsInfos List<Property Map>
Chain of certificates under this alias. Structure is documented below.
environment Changes to this property will trigger replacement. String
The Apigee environment name
keySize Changes to this property will trigger replacement. String
Key size. Default and maximum value is 2048 bits.
keystore Changes to this property will trigger replacement. String
The Apigee keystore name associated in an Apigee environment
orgId Changes to this property will trigger replacement. String
The Apigee Organization name associated with the Apigee environment
sigAlg Changes to this property will trigger replacement. String
Signature algorithm to generate private key. Valid values are SHA512withRSA, SHA384withRSA, and SHA256withRSA
subject Changes to this property will trigger replacement. Property Map
Subject details. Structure is documented below.
subjectAlternativeDnsNames Changes to this property will trigger replacement. Property Map
List of alternative host names. Maximum length is 255 characters for each value.
type String
Optional.Type of Alias

Supporting Types

KeystoresAliasesSelfSignedCertCertsInfo
, KeystoresAliasesSelfSignedCertCertsInfoArgs

CertInfos List<KeystoresAliasesSelfSignedCertCertsInfoCertInfo>
(Output) List of all properties in the object. Structure is documented below.
CertInfos []KeystoresAliasesSelfSignedCertCertsInfoCertInfo
(Output) List of all properties in the object. Structure is documented below.
certInfos List<KeystoresAliasesSelfSignedCertCertsInfoCertInfo>
(Output) List of all properties in the object. Structure is documented below.
certInfos KeystoresAliasesSelfSignedCertCertsInfoCertInfo[]
(Output) List of all properties in the object. Structure is documented below.
cert_infos Sequence[KeystoresAliasesSelfSignedCertCertsInfoCertInfo]
(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.

KeystoresAliasesSelfSignedCertCertsInfoCertInfo
, KeystoresAliasesSelfSignedCertCertsInfoCertInfoArgs

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
Subject details. Structure is documented below.
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
Subject details. Structure is documented below.
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
Subject details. Structure is documented below.
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
Subject details. Structure is documented below.
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
Subject details. Structure is documented below.
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
Subject details. Structure is documented below.
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.

KeystoresAliasesSelfSignedCertSubject
, KeystoresAliasesSelfSignedCertSubjectArgs

CommonName Changes to this property will trigger replacement. string
Common name of the organization. Maximum length is 64 characters.
CountryCode Changes to this property will trigger replacement. string
Two-letter country code. Example, IN for India, US for United States of America.
Email Changes to this property will trigger replacement. string
Email address. Max 255 characters.


Locality Changes to this property will trigger replacement. string
City or town name. Maximum length is 128 characters.
Org Changes to this property will trigger replacement. string
Organization name. Maximum length is 64 characters.
OrgUnit Changes to this property will trigger replacement. string
Organization team name. Maximum length is 64 characters.
State Changes to this property will trigger replacement. string
State or district name. Maximum length is 128 characters.
CommonName Changes to this property will trigger replacement. string
Common name of the organization. Maximum length is 64 characters.
CountryCode Changes to this property will trigger replacement. string
Two-letter country code. Example, IN for India, US for United States of America.
Email Changes to this property will trigger replacement. string
Email address. Max 255 characters.


Locality Changes to this property will trigger replacement. string
City or town name. Maximum length is 128 characters.
Org Changes to this property will trigger replacement. string
Organization name. Maximum length is 64 characters.
OrgUnit Changes to this property will trigger replacement. string
Organization team name. Maximum length is 64 characters.
State Changes to this property will trigger replacement. string
State or district name. Maximum length is 128 characters.
commonName Changes to this property will trigger replacement. String
Common name of the organization. Maximum length is 64 characters.
countryCode Changes to this property will trigger replacement. String
Two-letter country code. Example, IN for India, US for United States of America.
email Changes to this property will trigger replacement. String
Email address. Max 255 characters.


locality Changes to this property will trigger replacement. String
City or town name. Maximum length is 128 characters.
org Changes to this property will trigger replacement. String
Organization name. Maximum length is 64 characters.
orgUnit Changes to this property will trigger replacement. String
Organization team name. Maximum length is 64 characters.
state Changes to this property will trigger replacement. String
State or district name. Maximum length is 128 characters.
commonName Changes to this property will trigger replacement. string
Common name of the organization. Maximum length is 64 characters.
countryCode Changes to this property will trigger replacement. string
Two-letter country code. Example, IN for India, US for United States of America.
email Changes to this property will trigger replacement. string
Email address. Max 255 characters.


locality Changes to this property will trigger replacement. string
City or town name. Maximum length is 128 characters.
org Changes to this property will trigger replacement. string
Organization name. Maximum length is 64 characters.
orgUnit Changes to this property will trigger replacement. string
Organization team name. Maximum length is 64 characters.
state Changes to this property will trigger replacement. string
State or district name. Maximum length is 128 characters.
common_name Changes to this property will trigger replacement. str
Common name of the organization. Maximum length is 64 characters.
country_code Changes to this property will trigger replacement. str
Two-letter country code. Example, IN for India, US for United States of America.
email Changes to this property will trigger replacement. str
Email address. Max 255 characters.


locality Changes to this property will trigger replacement. str
City or town name. Maximum length is 128 characters.
org Changes to this property will trigger replacement. str
Organization name. Maximum length is 64 characters.
org_unit Changes to this property will trigger replacement. str
Organization team name. Maximum length is 64 characters.
state Changes to this property will trigger replacement. str
State or district name. Maximum length is 128 characters.
commonName Changes to this property will trigger replacement. String
Common name of the organization. Maximum length is 64 characters.
countryCode Changes to this property will trigger replacement. String
Two-letter country code. Example, IN for India, US for United States of America.
email Changes to this property will trigger replacement. String
Email address. Max 255 characters.


locality Changes to this property will trigger replacement. String
City or town name. Maximum length is 128 characters.
org Changes to this property will trigger replacement. String
Organization name. Maximum length is 64 characters.
orgUnit Changes to this property will trigger replacement. String
Organization team name. Maximum length is 64 characters.
state Changes to this property will trigger replacement. String
State or district name. Maximum length is 128 characters.

KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNames
, KeystoresAliasesSelfSignedCertSubjectAlternativeDnsNamesArgs

SubjectAlternativeName Changes to this property will trigger replacement. string
Subject Alternative Name
SubjectAlternativeName Changes to this property will trigger replacement. string
Subject Alternative Name
subjectAlternativeName Changes to this property will trigger replacement. String
Subject Alternative Name
subjectAlternativeName Changes to this property will trigger replacement. string
Subject Alternative Name
subject_alternative_name Changes to this property will trigger replacement. str
Subject Alternative Name
subjectAlternativeName Changes to this property will trigger replacement. String
Subject Alternative Name

Import

KeystoresAliasesSelfSignedCert 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, KeystoresAliasesSelfSignedCert can be imported using one of the formats above. For example:

$ pulumi import gcp:apigee/keystoresAliasesSelfSignedCert:KeystoresAliasesSelfSignedCert default organizations/{{org_id}}/environments/{{environment}}/keystores/{{keystore}}/aliases/{{alias}}
Copy
$ pulumi import gcp:apigee/keystoresAliasesSelfSignedCert:KeystoresAliasesSelfSignedCert default {{org_id}}/{{environment}}/{{keystore}}/{{alias}}
Copy

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.