1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. sslcertificatesservice
  6. Companies
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi

    This data source provides SSL Certificate Service Companies available to the user.What is Company

    NOTE: Available since v1.285.0.

    Example 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 defaultCompany = 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",
    });
    const _default = alicloud.sslcertificatesservice.CompaniesOutput({
        ids: [defaultCompany.id],
        nameRegex: defaultCompany.companyName,
    });
    export const alicloudSslCertificatesServiceCompanyExampleId = _default.apply(_default => _default.companies?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default_company = 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")
    default = alicloud.sslcertificatesservice.companies_output(ids=[default_company.id],
        name_regex=default_company.company_name)
    pulumi.export("alicloudSslCertificatesServiceCompanyExampleId", default.companies[0].id)
    
    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
    		}
    		defaultCompany, 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
    		}
    		_default := sslcertificatesservice.CompaniesOutput(ctx, sslcertificatesservice.CompaniesOutputArgs{
    			Ids: pulumi.StringArray{
    				defaultCompany.ID().ToIDOutput().ToStringOutput(),
    			},
    			NameRegex: defaultCompany.CompanyName,
    		}, nil)
    		ctx.Export("alicloudSslCertificatesServiceCompanyExampleId", _default.ApplyT(func(_default sslcertificatesservice.CompaniesResult) (*int, error) {
    			return _default.Companies[0].Id, nil
    		}).(pulumi.IntPtrOutput))
    		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 defaultCompany = 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",
        });
    
        var @default = AliCloud.SslCertificatesService.Companies.Invoke(new()
        {
            Ids = new[]
            {
                defaultCompany.Id,
            },
            NameRegex = defaultCompany.CompanyName,
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudSslCertificatesServiceCompanyExampleId"] = @default.Apply(@default => @default.Apply(companiesResult => companiesResult.Companies[0]?.Id)),
        };
    });
    
    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 com.pulumi.alicloud.sslcertificatesservice.SslcertificatesserviceFunctions;
    import com.pulumi.alicloud.sslcertificatesservice.inputs.CompaniesArgs;
    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 defaultCompany = new Company("defaultCompany", CompanyArgs.builder()
                .companyAddress("西安市")
                .companyName("example公司1")
                .department("example部门1")
                .city("西安")
                .companyType(1)
                .countryCode("111122")
                .postCode("11112233")
                .companyCode("12312311")
                .companyPhone("15101081174")
                .province("陕西")
                .lang("zh")
                .build());
    
            final var default = SslcertificatesserviceFunctions.Companies(CompaniesArgs.builder()
                .ids(defaultCompany.id())
                .nameRegex(defaultCompany.companyName())
                .build());
    
            ctx.export("alicloudSslCertificatesServiceCompanyExampleId", default_.applyValue(_default_ -> _default_.companies()[0].id()));
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultCompany:
        type: alicloud:sslcertificatesservice:Company
        name: default
        properties:
          companyAddress: 西安市
          companyName: example公司1
          department: example部门1
          city: 西安
          companyType: '1'
          countryCode: '111122'
          postCode: '11112233'
          companyCode: '12312311'
          companyPhone: '15101081174'
          province: 陕西
          lang: zh
    variables:
      default:
        fn::invoke:
          function: alicloud:sslcertificatesservice:Companies
          arguments:
            ids:
              - ${defaultCompany.id}
            nameRegex: ${defaultCompany.companyName}
    outputs:
      alicloudSslCertificatesServiceCompanyExampleId: ${default.companies[0].id}
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    data "alicloud_sslcertificatesservice_companies" "default" {
      ids        = [alicloud_sslcertificatesservice_company.default.id]
      name_regex = alicloud_sslcertificatesservice_company.default.company_name
    }
    
    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"
    }
    output "alicloudSslCertificatesServiceCompanyExampleId" {
      value = data.alicloud_sslcertificatesservice_companies.default.companies[0].id
    }
    

    Using Companies

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function companies(args: CompaniesArgs, opts?: InvokeOptions): Promise<CompaniesResult>
    function companiesOutput(args: CompaniesOutputArgs, opts?: InvokeOutputOptions): Output<CompaniesResult>
    def companies(company_id: Optional[int] = None,
                  ids: Optional[Sequence[str]] = None,
                  keyword: Optional[str] = None,
                  name_regex: Optional[str] = None,
                  output_file: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> CompaniesResult
    def companies_output(company_id: pulumi.Input[Optional[int]] = None,
                  ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                  keyword: pulumi.Input[Optional[str]] = None,
                  name_regex: pulumi.Input[Optional[str]] = None,
                  output_file: pulumi.Input[Optional[str]] = None,
                  opts: Optional[InvokeOutputOptions] = None) -> Output[CompaniesResult]
    func Companies(ctx *Context, args *CompaniesArgs, opts ...InvokeOption) (*CompaniesResult, error)
    func CompaniesOutput(ctx *Context, args *CompaniesOutputArgs, opts ...InvokeOption) CompaniesResultOutput
    public static class Companies 
    {
        public static Task<CompaniesResult> InvokeAsync(CompaniesArgs args, InvokeOptions? opts = null)
        public static Output<CompaniesResult> Invoke(CompaniesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<CompaniesResult> Invoke(CompaniesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<CompaniesResult> companies(CompaniesArgs args, InvokeOptions options)
    public static Output<CompaniesResult> companies(CompaniesArgs args, InvokeOptions options)
    public static Output<CompaniesResult> companies(CompaniesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: alicloud:sslcertificatesservice:Companies
      arguments:
        # arguments dictionary
    data "alicloud_sslcertificatesservice_companies" "name" {
        # arguments
    }

    The following arguments are supported:

    CompanyId int
    The ID of the company used to filter the results.
    Ids List<string>
    A list of Company IDs.
    Keyword string
    The keyword used to filter the companies.
    NameRegex string
    A regex string to filter results by Company name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    CompanyId int
    The ID of the company used to filter the results.
    Ids []string
    A list of Company IDs.
    Keyword string
    The keyword used to filter the companies.
    NameRegex string
    A regex string to filter results by Company name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    company_id number
    The ID of the company used to filter the results.
    ids list(string)
    A list of Company IDs.
    keyword string
    The keyword used to filter the companies.
    name_regex string
    A regex string to filter results by Company name.
    output_file string
    File name where to save data source results (after running pulumi preview).
    companyId Integer
    The ID of the company used to filter the results.
    ids List<String>
    A list of Company IDs.
    keyword String
    The keyword used to filter the companies.
    nameRegex String
    A regex string to filter results by Company name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    companyId number
    The ID of the company used to filter the results.
    ids string[]
    A list of Company IDs.
    keyword string
    The keyword used to filter the companies.
    nameRegex string
    A regex string to filter results by Company name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    company_id int
    The ID of the company used to filter the results.
    ids Sequence[str]
    A list of Company IDs.
    keyword str
    The keyword used to filter the companies.
    name_regex str
    A regex string to filter results by Company name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    companyId Number
    The ID of the company used to filter the results.
    ids List<String>
    A list of Company IDs.
    keyword String
    The keyword used to filter the companies.
    nameRegex String
    A regex string to filter results by Company name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    Companies Result

    The following output properties are available:

    Companies List<Pulumi.AliCloud.sslCertificatesService.Outputs.CompaniesCompany>
    A list of Company Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Company IDs.
    Names List<string>
    A list of name of Companies.
    CompanyId int
    The ID of the company.
    Keyword string
    NameRegex string
    OutputFile string
    Companies []CompaniesCompany
    A list of Company Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Company IDs.
    Names []string
    A list of name of Companies.
    CompanyId int
    The ID of the company.
    Keyword string
    NameRegex string
    OutputFile string
    companies list(object)
    A list of Company Entries. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids list(string)
    A list of Company IDs.
    names list(string)
    A list of name of Companies.
    company_id number
    The ID of the company.
    keyword string
    name_regex string
    output_file string
    companies List<CompaniesCompany>
    A list of Company Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Company IDs.
    names List<String>
    A list of name of Companies.
    companyId Integer
    The ID of the company.
    keyword String
    nameRegex String
    outputFile String
    companies CompaniesCompany[]
    A list of Company Entries. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Company IDs.
    names string[]
    A list of name of Companies.
    companyId number
    The ID of the company.
    keyword string
    nameRegex string
    outputFile string
    companies Sequence[CompaniesCompany]
    A list of Company Entries. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Company IDs.
    names Sequence[str]
    A list of name of Companies.
    company_id int
    The ID of the company.
    keyword str
    name_regex str
    output_file str
    companies List<Property Map>
    A list of Company Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Company IDs.
    names List<String>
    A list of name of Companies.
    companyId Number
    The ID of the company.
    keyword String
    nameRegex String
    outputFile String

    Supporting Types

    CompaniesCompany

    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.
    CompanyId int
    The ID of the company used to filter the results.
    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.
    Id int
    The ID 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.
    CompanyId int
    The ID of the company used to filter the results.
    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.
    Id int
    The ID 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_id number
    The ID of the company used to filter the results.
    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.
    id number
    The ID 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.
    companyId Integer
    The ID of the company used to filter the results.
    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.
    id Integer
    The ID 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.
    companyId number
    The ID of the company used to filter the results.
    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.
    id number
    The ID 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_id int
    The ID of the company used to filter the results.
    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.
    id int
    The ID 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.
    companyId Number
    The ID of the company used to filter the results.
    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.
    id Number
    The ID 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.

    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.106.0
    published on Monday, Aug 24, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial