1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. sslcertificatesservice
  6. Company
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi

    Provides a Certificate Management Service (Original SSL Certificate) Company resource.

    For information about Certificate Management Service (Original SSL Certificate) Company and how to use it, see What is Company.

    NOTE: Available since v1.285.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.sslcertificatesservice.Company("default", {
        companyAddress: "西安市",
        companyName: "example公司1",
        department: "example部门1",
        city: "西安",
        companyType: 1,
        countryCode: "111122",
        postCode: "11112233",
        companyCode: "12312311",
        companyPhone: "15101081174",
        province: "陕西",
        lang: "zh",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.sslcertificatesservice.Company("default",
        company_address="西安市",
        company_name="example公司1",
        department="example部门1",
        city="西安",
        company_type=1,
        country_code="111122",
        post_code="11112233",
        company_code="12312311",
        company_phone="15101081174",
        province="陕西",
        lang="zh")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sslcertificatesservice"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := sslcertificatesservice.NewCompany(ctx, "default", &sslcertificatesservice.CompanyArgs{
    			CompanyAddress: pulumi.String("西安市"),
    			CompanyName:    pulumi.String("example公司1"),
    			Department:     pulumi.String("example部门1"),
    			City:           pulumi.String("西安"),
    			CompanyType:    pulumi.Int(1),
    			CountryCode:    pulumi.String("111122"),
    			PostCode:       pulumi.String("11112233"),
    			CompanyCode:    pulumi.String("12312311"),
    			CompanyPhone:   pulumi.String("15101081174"),
    			Province:       pulumi.String("陕西"),
    			Lang:           pulumi.String("zh"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.SslCertificatesService.Company("default", new()
        {
            CompanyAddress = "西安市",
            CompanyName = "example公司1",
            Department = "example部门1",
            City = "西安",
            CompanyType = 1,
            CountryCode = "111122",
            PostCode = "11112233",
            CompanyCode = "12312311",
            CompanyPhone = "15101081174",
            Province = "陕西",
            Lang = "zh",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.sslcertificatesservice.Company;
    import com.pulumi.alicloud.sslcertificatesservice.CompanyArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new Company("default", CompanyArgs.builder()
                .companyAddress("西安市")
                .companyName("example公司1")
                .department("example部门1")
                .city("西安")
                .companyType(1)
                .countryCode("111122")
                .postCode("11112233")
                .companyCode("12312311")
                .companyPhone("15101081174")
                .province("陕西")
                .lang("zh")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:sslcertificatesservice:Company
        properties:
          companyAddress: 西安市
          companyName: example公司1
          department: example部门1
          city: 西安
          companyType: '1'
          countryCode: '111122'
          postCode: '11112233'
          companyCode: '12312311'
          companyPhone: '15101081174'
          province: 陕西
          lang: zh
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    resource "alicloud_sslcertificatesservice_company" "default" {
      company_address = "西安市"
      company_name    = "example公司1"
      department      = "example部门1"
      city            = "西安"
      company_type    = "1"
      country_code    = "111122"
      post_code       = "11112233"
      company_code    = "12312311"
      company_phone   = "15101081174"
      province        = "陕西"
      lang            = "zh"
    }
    variable "name" {
      type    = string
      default = "terraform-example"
    }
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create Company Resource

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

    Constructor syntax

    new Company(name: string, args: CompanyArgs, opts?: CustomResourceOptions);
    @overload
    def Company(resource_name: str,
                args: CompanyArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Company(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                city: Optional[str] = None,
                company_address: Optional[str] = None,
                company_code: Optional[str] = None,
                company_name: Optional[str] = None,
                company_phone: Optional[str] = None,
                company_type: Optional[int] = None,
                country_code: Optional[str] = None,
                lang: Optional[str] = None,
                post_code: Optional[str] = None,
                province: Optional[str] = None,
                company_email: Optional[str] = None,
                department: Optional[str] = None)
    func NewCompany(ctx *Context, name string, args CompanyArgs, opts ...ResourceOption) (*Company, error)
    public Company(string name, CompanyArgs args, CustomResourceOptions? opts = null)
    public Company(String name, CompanyArgs args)
    public Company(String name, CompanyArgs args, CustomResourceOptions options)
    
    type: alicloud:sslcertificatesservice:Company
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_sslcertificatesservice_company" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CompanyArgs
    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 CompanyArgs
    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 CompanyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CompanyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CompanyArgs
    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 companyResource = new AliCloud.SslCertificatesService.Company("companyResource", new()
    {
        City = "string",
        CompanyAddress = "string",
        CompanyCode = "string",
        CompanyName = "string",
        CompanyPhone = "string",
        CompanyType = 0,
        CountryCode = "string",
        Lang = "string",
        PostCode = "string",
        Province = "string",
        CompanyEmail = "string",
        Department = "string",
    });
    
    example, err := sslcertificatesservice.NewCompany(ctx, "companyResource", &sslcertificatesservice.CompanyArgs{
    	City:           pulumi.String("string"),
    	CompanyAddress: pulumi.String("string"),
    	CompanyCode:    pulumi.String("string"),
    	CompanyName:    pulumi.String("string"),
    	CompanyPhone:   pulumi.String("string"),
    	CompanyType:    pulumi.Int(0),
    	CountryCode:    pulumi.String("string"),
    	Lang:           pulumi.String("string"),
    	PostCode:       pulumi.String("string"),
    	Province:       pulumi.String("string"),
    	CompanyEmail:   pulumi.String("string"),
    	Department:     pulumi.String("string"),
    })
    
    resource "alicloud_sslcertificatesservice_company" "companyResource" {
      lifecycle {
        create_before_destroy = true
      }
      city            = "string"
      company_address = "string"
      company_code    = "string"
      company_name    = "string"
      company_phone   = "string"
      company_type    = 0
      country_code    = "string"
      lang            = "string"
      post_code       = "string"
      province        = "string"
      company_email   = "string"
      department      = "string"
    }
    
    var companyResource = new Company("companyResource", CompanyArgs.builder()
        .city("string")
        .companyAddress("string")
        .companyCode("string")
        .companyName("string")
        .companyPhone("string")
        .companyType(0)
        .countryCode("string")
        .lang("string")
        .postCode("string")
        .province("string")
        .companyEmail("string")
        .department("string")
        .build());
    
    company_resource = alicloud.sslcertificatesservice.Company("companyResource",
        city="string",
        company_address="string",
        company_code="string",
        company_name="string",
        company_phone="string",
        company_type=0,
        country_code="string",
        lang="string",
        post_code="string",
        province="string",
        company_email="string",
        department="string")
    
    const companyResource = new alicloud.sslcertificatesservice.Company("companyResource", {
        city: "string",
        companyAddress: "string",
        companyCode: "string",
        companyName: "string",
        companyPhone: "string",
        companyType: 0,
        countryCode: "string",
        lang: "string",
        postCode: "string",
        province: "string",
        companyEmail: "string",
        department: "string",
    });
    
    type: alicloud:sslcertificatesservice:Company
    properties:
        city: string
        companyAddress: string
        companyCode: string
        companyEmail: string
        companyName: string
        companyPhone: string
        companyType: 0
        countryCode: string
        department: string
        lang: string
        postCode: string
        province: string
    

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

    City string
    The city where the company is located.
    CompanyAddress string
    The address of the company.
    CompanyCode string
    The code of the company.
    CompanyName string
    The name of the company.
    CompanyPhone string
    The contact phone number of the company.
    CompanyType int
    The type of the company.
    CountryCode string
    The country code of the company.
    Lang string
    The natural language of the content within the request and response.
    PostCode string
    The postal code of the company.
    Province string
    The province where the company is located.
    CompanyEmail string
    The email address of the company.
    Department string
    The department of the company.
    City string
    The city where the company is located.
    CompanyAddress string
    The address of the company.
    CompanyCode string
    The code of the company.
    CompanyName string
    The name of the company.
    CompanyPhone string
    The contact phone number of the company.
    CompanyType int
    The type of the company.
    CountryCode string
    The country code of the company.
    Lang string
    The natural language of the content within the request and response.
    PostCode string
    The postal code of the company.
    Province string
    The province where the company is located.
    CompanyEmail string
    The email address of the company.
    Department string
    The department of the company.
    city string
    The city where the company is located.
    company_address string
    The address of the company.
    company_code string
    The code of the company.
    company_name string
    The name of the company.
    company_phone string
    The contact phone number of the company.
    company_type number
    The type of the company.
    country_code string
    The country code of the company.
    lang string
    The natural language of the content within the request and response.
    post_code string
    The postal code of the company.
    province string
    The province where the company is located.
    company_email string
    The email address of the company.
    department string
    The department of the company.
    city String
    The city where the company is located.
    companyAddress String
    The address of the company.
    companyCode String
    The code of the company.
    companyName String
    The name of the company.
    companyPhone String
    The contact phone number of the company.
    companyType Integer
    The type of the company.
    countryCode String
    The country code of the company.
    lang String
    The natural language of the content within the request and response.
    postCode String
    The postal code of the company.
    province String
    The province where the company is located.
    companyEmail String
    The email address of the company.
    department String
    The department of the company.
    city string
    The city where the company is located.
    companyAddress string
    The address of the company.
    companyCode string
    The code of the company.
    companyName string
    The name of the company.
    companyPhone string
    The contact phone number of the company.
    companyType number
    The type of the company.
    countryCode string
    The country code of the company.
    lang string
    The natural language of the content within the request and response.
    postCode string
    The postal code of the company.
    province string
    The province where the company is located.
    companyEmail string
    The email address of the company.
    department string
    The department of the company.
    city str
    The city where the company is located.
    company_address str
    The address of the company.
    company_code str
    The code of the company.
    company_name str
    The name of the company.
    company_phone str
    The contact phone number of the company.
    company_type int
    The type of the company.
    country_code str
    The country code of the company.
    lang str
    The natural language of the content within the request and response.
    post_code str
    The postal code of the company.
    province str
    The province where the company is located.
    company_email str
    The email address of the company.
    department str
    The department of the company.
    city String
    The city where the company is located.
    companyAddress String
    The address of the company.
    companyCode String
    The code of the company.
    companyName String
    The name of the company.
    companyPhone String
    The contact phone number of the company.
    companyType Number
    The type of the company.
    countryCode String
    The country code of the company.
    lang String
    The natural language of the content within the request and response.
    postCode String
    The postal code of the company.
    province String
    The province where the company is located.
    companyEmail String
    The email address of the company.
    department String
    The department of the company.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Company Resource

    Get an existing Company 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?: CompanyState, opts?: CustomResourceOptions): Company
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            city: Optional[str] = None,
            company_address: Optional[str] = None,
            company_code: Optional[str] = None,
            company_email: Optional[str] = None,
            company_name: Optional[str] = None,
            company_phone: Optional[str] = None,
            company_type: Optional[int] = None,
            country_code: Optional[str] = None,
            department: Optional[str] = None,
            lang: Optional[str] = None,
            post_code: Optional[str] = None,
            province: Optional[str] = None) -> Company
    func GetCompany(ctx *Context, name string, id IDInput, state *CompanyState, opts ...ResourceOption) (*Company, error)
    public static Company Get(string name, Input<string> id, CompanyState? state, CustomResourceOptions? opts = null)
    public static Company get(String name, Output<String> id, CompanyState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:sslcertificatesservice:Company    get:      id: ${id}
    import {
      to = alicloud_sslcertificatesservice_company.example
      id = "${id}"
    }
    
    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:
    City string
    The city where the company is located.
    CompanyAddress string
    The address of the company.
    CompanyCode string
    The code of the company.
    CompanyEmail string
    The email address of the company.
    CompanyName string
    The name of the company.
    CompanyPhone string
    The contact phone number of the company.
    CompanyType int
    The type of the company.
    CountryCode string
    The country code of the company.
    Department string
    The department of the company.
    Lang string
    The natural language of the content within the request and response.
    PostCode string
    The postal code of the company.
    Province string
    The province where the company is located.
    City string
    The city where the company is located.
    CompanyAddress string
    The address of the company.
    CompanyCode string
    The code of the company.
    CompanyEmail string
    The email address of the company.
    CompanyName string
    The name of the company.
    CompanyPhone string
    The contact phone number of the company.
    CompanyType int
    The type of the company.
    CountryCode string
    The country code of the company.
    Department string
    The department of the company.
    Lang string
    The natural language of the content within the request and response.
    PostCode string
    The postal code of the company.
    Province string
    The province where the company is located.
    city string
    The city where the company is located.
    company_address string
    The address of the company.
    company_code string
    The code of the company.
    company_email string
    The email address of the company.
    company_name string
    The name of the company.
    company_phone string
    The contact phone number of the company.
    company_type number
    The type of the company.
    country_code string
    The country code of the company.
    department string
    The department of the company.
    lang string
    The natural language of the content within the request and response.
    post_code string
    The postal code of the company.
    province string
    The province where the company is located.
    city String
    The city where the company is located.
    companyAddress String
    The address of the company.
    companyCode String
    The code of the company.
    companyEmail String
    The email address of the company.
    companyName String
    The name of the company.
    companyPhone String
    The contact phone number of the company.
    companyType Integer
    The type of the company.
    countryCode String
    The country code of the company.
    department String
    The department of the company.
    lang String
    The natural language of the content within the request and response.
    postCode String
    The postal code of the company.
    province String
    The province where the company is located.
    city string
    The city where the company is located.
    companyAddress string
    The address of the company.
    companyCode string
    The code of the company.
    companyEmail string
    The email address of the company.
    companyName string
    The name of the company.
    companyPhone string
    The contact phone number of the company.
    companyType number
    The type of the company.
    countryCode string
    The country code of the company.
    department string
    The department of the company.
    lang string
    The natural language of the content within the request and response.
    postCode string
    The postal code of the company.
    province string
    The province where the company is located.
    city str
    The city where the company is located.
    company_address str
    The address of the company.
    company_code str
    The code of the company.
    company_email str
    The email address of the company.
    company_name str
    The name of the company.
    company_phone str
    The contact phone number of the company.
    company_type int
    The type of the company.
    country_code str
    The country code of the company.
    department str
    The department of the company.
    lang str
    The natural language of the content within the request and response.
    post_code str
    The postal code of the company.
    province str
    The province where the company is located.
    city String
    The city where the company is located.
    companyAddress String
    The address of the company.
    companyCode String
    The code of the company.
    companyEmail String
    The email address of the company.
    companyName String
    The name of the company.
    companyPhone String
    The contact phone number of the company.
    companyType Number
    The type of the company.
    countryCode String
    The country code of the company.
    department String
    The department of the company.
    lang String
    The natural language of the content within the request and response.
    postCode String
    The postal code of the company.
    province String
    The province where the company is located.

    Import

    Certificate Management Service (Original SSL Certificate) Company can be imported using the id, e.g.

    $ pulumi import alicloud:sslcertificatesservice/company:Company example <company_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo alicloud logo
    Viewing docs for Alibaba Cloud v3.108.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial