published on Friday, Oct 23, 2026 by opentelekomcloud
published on Friday, Oct 23, 2026 by opentelekomcloud
Up-to-date reference of API arguments for API Gateway SSL certificate management you can get at documentation portal
Associates an SSL certificate with a custom domain of a dedicated gateway instance within T-Cloud Public (formerly OpenTelekomCloud).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const gatewayId = config.requireObject<any>("gatewayId");
const groupId = config.requireObject<any>("groupId");
const domainId = config.requireObject<any>("domainId");
const certId = config.requireObject<any>("certId");
const assoc = new opentelekomcloud.ApigwDomainCertificateAssociateV2("assoc", {
gatewayId: gatewayId,
groupId: groupId,
domainId: domainId,
certificateId: certId,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
gateway_id = config.require_object("gatewayId")
group_id = config.require_object("groupId")
domain_id = config.require_object("domainId")
cert_id = config.require_object("certId")
assoc = opentelekomcloud.ApigwDomainCertificateAssociateV2("assoc",
gateway_id=gateway_id,
group_id=group_id,
domain_id=domain_id,
certificate_id=cert_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"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, "")
gatewayId := cfg.RequireObject("gatewayId")
groupId := cfg.RequireObject("groupId")
domainId := cfg.RequireObject("domainId")
certId := cfg.RequireObject("certId")
_, err := opentelekomcloud.NewApigwDomainCertificateAssociateV2(ctx, "assoc", &opentelekomcloud.ApigwDomainCertificateAssociateV2Args{
GatewayId: pulumi.Any(gatewayId),
GroupId: pulumi.Any(groupId),
DomainId: pulumi.Any(domainId),
CertificateId: pulumi.Any(certId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var gatewayId = config.RequireObject<dynamic>("gatewayId");
var groupId = config.RequireObject<dynamic>("groupId");
var domainId = config.RequireObject<dynamic>("domainId");
var certId = config.RequireObject<dynamic>("certId");
var assoc = new Opentelekomcloud.ApigwDomainCertificateAssociateV2("assoc", new()
{
GatewayId = gatewayId,
GroupId = groupId,
DomainId = domainId,
CertificateId = certId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ApigwDomainCertificateAssociateV2;
import com.pulumi.opentelekomcloud.ApigwDomainCertificateAssociateV2Args;
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) {
final var config = ctx.config();
final var gatewayId = config.get("gatewayId");
final var groupId = config.get("groupId");
final var domainId = config.get("domainId");
final var certId = config.get("certId");
var assoc = new ApigwDomainCertificateAssociateV2("assoc", ApigwDomainCertificateAssociateV2Args.builder()
.gatewayId(gatewayId)
.groupId(groupId)
.domainId(domainId)
.certificateId(certId)
.build());
}
}
configuration:
gatewayId:
type: dynamic
groupId:
type: dynamic
domainId:
type: dynamic
certId:
type: dynamic
resources:
assoc:
type: opentelekomcloud:ApigwDomainCertificateAssociateV2
properties:
gatewayId: ${gatewayId}
groupId: ${groupId}
domainId: ${domainId}
certificateId: ${certId}
Example coming soon!
Create ApigwDomainCertificateAssociateV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApigwDomainCertificateAssociateV2(name: string, args: ApigwDomainCertificateAssociateV2Args, opts?: CustomResourceOptions);@overload
def ApigwDomainCertificateAssociateV2(resource_name: str,
args: ApigwDomainCertificateAssociateV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def ApigwDomainCertificateAssociateV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
domain_id: Optional[str] = None,
gateway_id: Optional[str] = None,
group_id: Optional[str] = None,
apigw_domain_certificate_associate_v2_id: Optional[str] = None,
timeouts: Optional[ApigwDomainCertificateAssociateV2TimeoutsArgs] = None)func NewApigwDomainCertificateAssociateV2(ctx *Context, name string, args ApigwDomainCertificateAssociateV2Args, opts ...ResourceOption) (*ApigwDomainCertificateAssociateV2, error)public ApigwDomainCertificateAssociateV2(string name, ApigwDomainCertificateAssociateV2Args args, CustomResourceOptions? opts = null)
public ApigwDomainCertificateAssociateV2(String name, ApigwDomainCertificateAssociateV2Args args)
public ApigwDomainCertificateAssociateV2(String name, ApigwDomainCertificateAssociateV2Args args, CustomResourceOptions options)
type: opentelekomcloud:ApigwDomainCertificateAssociateV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "opentelekomcloud_apigw_domain_certificate_associate_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ApigwDomainCertificateAssociateV2Args
- 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 ApigwDomainCertificateAssociateV2Args
- 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 ApigwDomainCertificateAssociateV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApigwDomainCertificateAssociateV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApigwDomainCertificateAssociateV2Args
- 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 apigwDomainCertificateAssociateV2Resource = new Opentelekomcloud.ApigwDomainCertificateAssociateV2("apigwDomainCertificateAssociateV2Resource", new()
{
CertificateId = "string",
DomainId = "string",
GatewayId = "string",
GroupId = "string",
ApigwDomainCertificateAssociateV2Id = "string",
Timeouts = new Opentelekomcloud.Inputs.ApigwDomainCertificateAssociateV2TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewApigwDomainCertificateAssociateV2(ctx, "apigwDomainCertificateAssociateV2Resource", &opentelekomcloud.ApigwDomainCertificateAssociateV2Args{
CertificateId: pulumi.String("string"),
DomainId: pulumi.String("string"),
GatewayId: pulumi.String("string"),
GroupId: pulumi.String("string"),
ApigwDomainCertificateAssociateV2Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.ApigwDomainCertificateAssociateV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "opentelekomcloud_apigw_domain_certificate_associate_v2" "apigwDomainCertificateAssociateV2Resource" {
lifecycle {
create_before_destroy = true
}
certificate_id = "string"
domain_id = "string"
gateway_id = "string"
group_id = "string"
apigw_domain_certificate_associate_v2_id = "string"
timeouts = {
create = "string"
delete = "string"
update = "string"
}
}
var apigwDomainCertificateAssociateV2Resource = new ApigwDomainCertificateAssociateV2("apigwDomainCertificateAssociateV2Resource", ApigwDomainCertificateAssociateV2Args.builder()
.certificateId("string")
.domainId("string")
.gatewayId("string")
.groupId("string")
.apigwDomainCertificateAssociateV2Id("string")
.timeouts(ApigwDomainCertificateAssociateV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
apigw_domain_certificate_associate_v2_resource = opentelekomcloud.ApigwDomainCertificateAssociateV2("apigwDomainCertificateAssociateV2Resource",
certificate_id="string",
domain_id="string",
gateway_id="string",
group_id="string",
apigw_domain_certificate_associate_v2_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const apigwDomainCertificateAssociateV2Resource = new opentelekomcloud.ApigwDomainCertificateAssociateV2("apigwDomainCertificateAssociateV2Resource", {
certificateId: "string",
domainId: "string",
gatewayId: "string",
groupId: "string",
apigwDomainCertificateAssociateV2Id: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: opentelekomcloud:ApigwDomainCertificateAssociateV2
properties:
apigwDomainCertificateAssociateV2Id: string
certificateId: string
domainId: string
gatewayId: string
groupId: string
timeouts:
create: string
delete: string
update: string
ApigwDomainCertificateAssociateV2 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 ApigwDomainCertificateAssociateV2 resource accepts the following input properties:
- Certificate
Id string - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- Domain
Id string - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- Gateway
Id string - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- Group
Id string - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- Apigw
Domain stringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - Timeouts
Apigw
Domain Certificate Associate V2Timeouts
- Certificate
Id string - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- Domain
Id string - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- Gateway
Id string - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- Group
Id string - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- Apigw
Domain stringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - Timeouts
Apigw
Domain Certificate Associate V2Timeouts Args
- certificate_
id string - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain_
id string - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway_
id string - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group_
id string - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- apigw_
domain_ stringcertificate_ associate_ v2_ id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - timeouts object
- certificate
Id String - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain
Id String - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway
Id String - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group
Id String - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- apigw
Domain StringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - timeouts
Apigw
Domain Certificate Associate V2Timeouts
- certificate
Id string - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain
Id string - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway
Id string - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group
Id string - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- apigw
Domain stringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - timeouts
Apigw
Domain Certificate Associate V2Timeouts
- certificate_
id str - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain_
id str - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway_
id str - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group_
id str - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- apigw_
domain_ strcertificate_ associate_ v2_ id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - timeouts
Apigw
Domain Certificate Associate V2Timeouts Args
- certificate
Id String - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain
Id String - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway
Id String - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group
Id String - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- apigw
Domain StringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ApigwDomainCertificateAssociateV2 resource produces the following output properties:
Look up Existing ApigwDomainCertificateAssociateV2 Resource
Get an existing ApigwDomainCertificateAssociateV2 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?: ApigwDomainCertificateAssociateV2State, opts?: CustomResourceOptions): ApigwDomainCertificateAssociateV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apigw_domain_certificate_associate_v2_id: Optional[str] = None,
bound: Optional[bool] = None,
certificate_id: Optional[str] = None,
domain_id: Optional[str] = None,
gateway_id: Optional[str] = None,
group_id: Optional[str] = None,
timeouts: Optional[ApigwDomainCertificateAssociateV2TimeoutsArgs] = None) -> ApigwDomainCertificateAssociateV2func GetApigwDomainCertificateAssociateV2(ctx *Context, name string, id IDInput, state *ApigwDomainCertificateAssociateV2State, opts ...ResourceOption) (*ApigwDomainCertificateAssociateV2, error)public static ApigwDomainCertificateAssociateV2 Get(string name, Input<string> id, ApigwDomainCertificateAssociateV2State? state, CustomResourceOptions? opts = null)public static ApigwDomainCertificateAssociateV2 get(String name, Output<String> id, ApigwDomainCertificateAssociateV2State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:ApigwDomainCertificateAssociateV2 get: id: ${id}import {
to = opentelekomcloud_apigw_domain_certificate_associate_v2.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.
- Apigw
Domain stringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - Bound bool
- Indicates whether the certificate is currently bound to the domain.
- Certificate
Id string - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- Domain
Id string - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- Gateway
Id string - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- Group
Id string - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- Timeouts
Apigw
Domain Certificate Associate V2Timeouts
- Apigw
Domain stringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - Bound bool
- Indicates whether the certificate is currently bound to the domain.
- Certificate
Id string - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- Domain
Id string - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- Gateway
Id string - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- Group
Id string - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- Timeouts
Apigw
Domain Certificate Associate V2Timeouts Args
- apigw_
domain_ stringcertificate_ associate_ v2_ id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - bound bool
- Indicates whether the certificate is currently bound to the domain.
- certificate_
id string - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain_
id string - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway_
id string - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group_
id string - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- timeouts object
- apigw
Domain StringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - bound Boolean
- Indicates whether the certificate is currently bound to the domain.
- certificate
Id String - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain
Id String - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway
Id String - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group
Id String - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- timeouts
Apigw
Domain Certificate Associate V2Timeouts
- apigw
Domain stringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - bound boolean
- Indicates whether the certificate is currently bound to the domain.
- certificate
Id string - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain
Id string - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway
Id string - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group
Id string - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- timeouts
Apigw
Domain Certificate Associate V2Timeouts
- apigw_
domain_ strcertificate_ associate_ v2_ id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - bound bool
- Indicates whether the certificate is currently bound to the domain.
- certificate_
id str - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain_
id str - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway_
id str - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group_
id str - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- timeouts
Apigw
Domain Certificate Associate V2Timeouts Args
- apigw
Domain StringCertificate Associate V2Id - The ID of the association in the format
<gateway_id>/<group_id>/<domain_id>/<certificate_id>. - bound Boolean
- Indicates whether the certificate is currently bound to the domain.
- certificate
Id String - Specifies the ID of the SSL certificate to bind to the domain. Changing this will create a new resource.
- domain
Id String - Specifies the ID of the custom domain to bind the certificate to. Changing this will create a new resource.
- gateway
Id String - Specifies the ID of the dedicated gateway instance to which the domain belongs. Changing this will create a new resource.
- group
Id String - Specifies the ID of the API group to which the domain belongs. Changing this will create a new resource.
- timeouts Property Map
Supporting Types
ApigwDomainCertificateAssociateV2Timeouts, ApigwDomainCertificateAssociateV2TimeoutsArgs
Import
Associations can be imported using the ID of the dedicated gateway instance, the ID of the API group, the domain ID and the certificate ID, separated by slashes, e.g.
$ pulumi import opentelekomcloud:index/apigwDomainCertificateAssociateV2:ApigwDomainCertificateAssociateV2 assoc <gateway_id>/<group_id>/<domain_id>/<certificate_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
published on Friday, Oct 23, 2026 by opentelekomcloud