Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
published on Monday, Aug 24, 2026 by Pulumi
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
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) CompaniesResultOutputpublic 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 dictionarydata "alicloud_sslcertificatesservice_companies" "name" {
# arguments
}The following arguments are supported:
- Company
Id 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.
- 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).
- Company
Id 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.
- 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).
- 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).
- company
Id 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.
- 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).
- company
Id 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.
- 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).
- 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).
- 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).
Companies Result
The following output properties are available:
- Companies
List<Pulumi.
Ali Cloud.ssl Certificates Service. Outputs. Companies Company> - 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 int - The ID of the company.
- Keyword string
- Name
Regex string - Output
File string
- Companies
[]Companies
Company - 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.
- Company
Id int - The ID of the company.
- Keyword string
- Name
Regex string - Output
File 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<Companies
Company> - 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 Integer - The ID of the company.
- keyword String
- name
Regex String - output
File String
- companies
Companies
Company[] - 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.
- company
Id number - The ID of the company.
- keyword string
- name
Regex string - output
File string
- companies
Sequence[Companies
Company] - 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.
- company
Id Number - The ID of the company.
- keyword String
- name
Regex String - output
File String
Supporting Types
CompaniesCompany
- 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 int - 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 int - The type of the company.
- Country
Code 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.
- 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.
- 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 int - 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 int - The type of the company.
- Country
Code 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.
- 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.
- 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.
- 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 Integer - 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 Integer - The type of the company.
- country
Code 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.
- 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.
- 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 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.
- 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.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Viewing docs for Alibaba Cloud v3.106.0
published on Monday, Aug 24, 2026 by Pulumi
published on Monday, Aug 24, 2026 by Pulumi