1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. ApigwApiPublishmentV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.ApigwApiPublishmentV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Example Usage

    Publish a new version of the API

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const gatewayId = config.requireObject("gatewayId");
    const environmentId = config.requireObject("environmentId");
    const apiId = config.requireObject("apiId");
    const _default = new opentelekomcloud.ApigwApiPublishmentV2("default", {
        gatewayId: gatewayId,
        environmentId: environmentId,
        apiId: apiId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    gateway_id = config.require_object("gatewayId")
    environment_id = config.require_object("environmentId")
    api_id = config.require_object("apiId")
    default = opentelekomcloud.ApigwApiPublishmentV2("default",
        gateway_id=gateway_id,
        environment_id=environment_id,
        api_id=api_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")
    		environmentId := cfg.RequireObject("environmentId")
    		apiId := cfg.RequireObject("apiId")
    		_, err := opentelekomcloud.NewApigwApiPublishmentV2(ctx, "default", &opentelekomcloud.ApigwApiPublishmentV2Args{
    			GatewayId:     pulumi.Any(gatewayId),
    			EnvironmentId: pulumi.Any(environmentId),
    			ApiId:         pulumi.Any(apiId),
    		})
    		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 environmentId = config.RequireObject<dynamic>("environmentId");
        var apiId = config.RequireObject<dynamic>("apiId");
        var @default = new Opentelekomcloud.ApigwApiPublishmentV2("default", new()
        {
            GatewayId = gatewayId,
            EnvironmentId = environmentId,
            ApiId = apiId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ApigwApiPublishmentV2;
    import com.pulumi.opentelekomcloud.ApigwApiPublishmentV2Args;
    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 environmentId = config.get("environmentId");
            final var apiId = config.get("apiId");
            var default_ = new ApigwApiPublishmentV2("default", ApigwApiPublishmentV2Args.builder()
                .gatewayId(gatewayId)
                .environmentId(environmentId)
                .apiId(apiId)
                .build());
    
        }
    }
    
    configuration:
      gatewayId:
        type: dynamic
      environmentId:
        type: dynamic
      apiId:
        type: dynamic
    resources:
      default:
        type: opentelekomcloud:ApigwApiPublishmentV2
        properties:
          gatewayId: ${gatewayId}
          environmentId: ${environmentId}
          apiId: ${apiId}
    

    Switch to a specified version of the API which is published

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const gatewayId = config.requireObject("gatewayId");
    const environmentId = config.requireObject("environmentId");
    const apiId = config.requireObject("apiId");
    const versionId = config.requireObject("versionId");
    const _default = new opentelekomcloud.ApigwApiPublishmentV2("default", {
        gatewayId: gatewayId,
        environmentId: environmentId,
        apiId: apiId,
        versionId: versionId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    gateway_id = config.require_object("gatewayId")
    environment_id = config.require_object("environmentId")
    api_id = config.require_object("apiId")
    version_id = config.require_object("versionId")
    default = opentelekomcloud.ApigwApiPublishmentV2("default",
        gateway_id=gateway_id,
        environment_id=environment_id,
        api_id=api_id,
        version_id=version_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")
    		environmentId := cfg.RequireObject("environmentId")
    		apiId := cfg.RequireObject("apiId")
    		versionId := cfg.RequireObject("versionId")
    		_, err := opentelekomcloud.NewApigwApiPublishmentV2(ctx, "default", &opentelekomcloud.ApigwApiPublishmentV2Args{
    			GatewayId:     pulumi.Any(gatewayId),
    			EnvironmentId: pulumi.Any(environmentId),
    			ApiId:         pulumi.Any(apiId),
    			VersionId:     pulumi.Any(versionId),
    		})
    		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 environmentId = config.RequireObject<dynamic>("environmentId");
        var apiId = config.RequireObject<dynamic>("apiId");
        var versionId = config.RequireObject<dynamic>("versionId");
        var @default = new Opentelekomcloud.ApigwApiPublishmentV2("default", new()
        {
            GatewayId = gatewayId,
            EnvironmentId = environmentId,
            ApiId = apiId,
            VersionId = versionId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ApigwApiPublishmentV2;
    import com.pulumi.opentelekomcloud.ApigwApiPublishmentV2Args;
    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 environmentId = config.get("environmentId");
            final var apiId = config.get("apiId");
            final var versionId = config.get("versionId");
            var default_ = new ApigwApiPublishmentV2("default", ApigwApiPublishmentV2Args.builder()
                .gatewayId(gatewayId)
                .environmentId(environmentId)
                .apiId(apiId)
                .versionId(versionId)
                .build());
    
        }
    }
    
    configuration:
      gatewayId:
        type: dynamic
      environmentId:
        type: dynamic
      apiId:
        type: dynamic
      versionId:
        type: dynamic
    resources:
      default:
        type: opentelekomcloud:ApigwApiPublishmentV2
        properties:
          gatewayId: ${gatewayId}
          environmentId: ${environmentId}
          apiId: ${apiId}
          versionId: ${versionId}
    

    Create ApigwApiPublishmentV2 Resource

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

    Constructor syntax

    new ApigwApiPublishmentV2(name: string, args: ApigwApiPublishmentV2Args, opts?: CustomResourceOptions);
    @overload
    def ApigwApiPublishmentV2(resource_name: str,
                              args: ApigwApiPublishmentV2Args,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApigwApiPublishmentV2(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              api_id: Optional[str] = None,
                              environment_id: Optional[str] = None,
                              gateway_id: Optional[str] = None,
                              apigw_api_publishment_v2_id: Optional[str] = None,
                              description: Optional[str] = None,
                              version_id: Optional[str] = None)
    func NewApigwApiPublishmentV2(ctx *Context, name string, args ApigwApiPublishmentV2Args, opts ...ResourceOption) (*ApigwApiPublishmentV2, error)
    public ApigwApiPublishmentV2(string name, ApigwApiPublishmentV2Args args, CustomResourceOptions? opts = null)
    public ApigwApiPublishmentV2(String name, ApigwApiPublishmentV2Args args)
    public ApigwApiPublishmentV2(String name, ApigwApiPublishmentV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:ApigwApiPublishmentV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ApigwApiPublishmentV2Args
    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 ApigwApiPublishmentV2Args
    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 ApigwApiPublishmentV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApigwApiPublishmentV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApigwApiPublishmentV2Args
    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 apigwApiPublishmentV2Resource = new Opentelekomcloud.ApigwApiPublishmentV2("apigwApiPublishmentV2Resource", new()
    {
        ApiId = "string",
        EnvironmentId = "string",
        GatewayId = "string",
        ApigwApiPublishmentV2Id = "string",
        Description = "string",
        VersionId = "string",
    });
    
    example, err := opentelekomcloud.NewApigwApiPublishmentV2(ctx, "apigwApiPublishmentV2Resource", &opentelekomcloud.ApigwApiPublishmentV2Args{
    	ApiId:                   pulumi.String("string"),
    	EnvironmentId:           pulumi.String("string"),
    	GatewayId:               pulumi.String("string"),
    	ApigwApiPublishmentV2Id: pulumi.String("string"),
    	Description:             pulumi.String("string"),
    	VersionId:               pulumi.String("string"),
    })
    
    var apigwApiPublishmentV2Resource = new ApigwApiPublishmentV2("apigwApiPublishmentV2Resource", ApigwApiPublishmentV2Args.builder()
        .apiId("string")
        .environmentId("string")
        .gatewayId("string")
        .apigwApiPublishmentV2Id("string")
        .description("string")
        .versionId("string")
        .build());
    
    apigw_api_publishment_v2_resource = opentelekomcloud.ApigwApiPublishmentV2("apigwApiPublishmentV2Resource",
        api_id="string",
        environment_id="string",
        gateway_id="string",
        apigw_api_publishment_v2_id="string",
        description="string",
        version_id="string")
    
    const apigwApiPublishmentV2Resource = new opentelekomcloud.ApigwApiPublishmentV2("apigwApiPublishmentV2Resource", {
        apiId: "string",
        environmentId: "string",
        gatewayId: "string",
        apigwApiPublishmentV2Id: "string",
        description: "string",
        versionId: "string",
    });
    
    type: opentelekomcloud:ApigwApiPublishmentV2
    properties:
        apiId: string
        apigwApiPublishmentV2Id: string
        description: string
        environmentId: string
        gatewayId: string
        versionId: string
    

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

    ApiId string
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    EnvironmentId string
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    GatewayId string
    ApigwApiPublishmentV2Id string
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    Description string
    Specifies the description of the current publish.
    VersionId string
    Specifies the version ID of the current publish.
    ApiId string
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    EnvironmentId string
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    GatewayId string
    ApigwApiPublishmentV2Id string
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    Description string
    Specifies the description of the current publish.
    VersionId string
    Specifies the version ID of the current publish.
    apiId String
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    environmentId String
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    gatewayId String
    apigwApiPublishmentV2Id String
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    description String
    Specifies the description of the current publish.
    versionId String
    Specifies the version ID of the current publish.
    apiId string
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    environmentId string
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    gatewayId string
    apigwApiPublishmentV2Id string
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    description string
    Specifies the description of the current publish.
    versionId string
    Specifies the version ID of the current publish.
    api_id str
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    environment_id str
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    gateway_id str
    apigw_api_publishment_v2_id str
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    description str
    Specifies the description of the current publish.
    version_id str
    Specifies the version ID of the current publish.
    apiId String
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    environmentId String
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    gatewayId String
    apigwApiPublishmentV2Id String
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    description String
    Specifies the description of the current publish.
    versionId String
    Specifies the version ID of the current publish.

    Outputs

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

    ApiName string
    EnvironmentName string
    The name of the environment to which the current version of the API is published.
    Histories List<ApigwApiPublishmentV2History>
    All publish history of the API. The object structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublishId string
    The publishing ID of the API in current environment.
    PublishedAt string
    Time when the current version was published.
    Region string
    The region in which to APIs was published.
    ApiName string
    EnvironmentName string
    The name of the environment to which the current version of the API is published.
    Histories []ApigwApiPublishmentV2History
    All publish history of the API. The object structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublishId string
    The publishing ID of the API in current environment.
    PublishedAt string
    Time when the current version was published.
    Region string
    The region in which to APIs was published.
    apiName String
    environmentName String
    The name of the environment to which the current version of the API is published.
    histories List<ApigwApiPublishmentV2History>
    All publish history of the API. The object structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    publishId String
    The publishing ID of the API in current environment.
    publishedAt String
    Time when the current version was published.
    region String
    The region in which to APIs was published.
    apiName string
    environmentName string
    The name of the environment to which the current version of the API is published.
    histories ApigwApiPublishmentV2History[]
    All publish history of the API. The object structure is documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    publishId string
    The publishing ID of the API in current environment.
    publishedAt string
    Time when the current version was published.
    region string
    The region in which to APIs was published.
    api_name str
    environment_name str
    The name of the environment to which the current version of the API is published.
    histories Sequence[ApigwApiPublishmentV2History]
    All publish history of the API. The object structure is documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    publish_id str
    The publishing ID of the API in current environment.
    published_at str
    Time when the current version was published.
    region str
    The region in which to APIs was published.
    apiName String
    environmentName String
    The name of the environment to which the current version of the API is published.
    histories List<Property Map>
    All publish history of the API. The object structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    publishId String
    The publishing ID of the API in current environment.
    publishedAt String
    Time when the current version was published.
    region String
    The region in which to APIs was published.

    Look up Existing ApigwApiPublishmentV2 Resource

    Get an existing ApigwApiPublishmentV2 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?: ApigwApiPublishmentV2State, opts?: CustomResourceOptions): ApigwApiPublishmentV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_id: Optional[str] = None,
            api_name: Optional[str] = None,
            apigw_api_publishment_v2_id: Optional[str] = None,
            description: Optional[str] = None,
            environment_id: Optional[str] = None,
            environment_name: Optional[str] = None,
            gateway_id: Optional[str] = None,
            histories: Optional[Sequence[ApigwApiPublishmentV2HistoryArgs]] = None,
            publish_id: Optional[str] = None,
            published_at: Optional[str] = None,
            region: Optional[str] = None,
            version_id: Optional[str] = None) -> ApigwApiPublishmentV2
    func GetApigwApiPublishmentV2(ctx *Context, name string, id IDInput, state *ApigwApiPublishmentV2State, opts ...ResourceOption) (*ApigwApiPublishmentV2, error)
    public static ApigwApiPublishmentV2 Get(string name, Input<string> id, ApigwApiPublishmentV2State? state, CustomResourceOptions? opts = null)
    public static ApigwApiPublishmentV2 get(String name, Output<String> id, ApigwApiPublishmentV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:ApigwApiPublishmentV2    get:      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:
    ApiId string
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    ApiName string
    ApigwApiPublishmentV2Id string
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    Description string
    Specifies the description of the current publish.
    EnvironmentId string
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    EnvironmentName string
    The name of the environment to which the current version of the API is published.
    GatewayId string
    Histories List<ApigwApiPublishmentV2History>
    All publish history of the API. The object structure is documented below.
    PublishId string
    The publishing ID of the API in current environment.
    PublishedAt string
    Time when the current version was published.
    Region string
    The region in which to APIs was published.
    VersionId string
    Specifies the version ID of the current publish.
    ApiId string
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    ApiName string
    ApigwApiPublishmentV2Id string
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    Description string
    Specifies the description of the current publish.
    EnvironmentId string
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    EnvironmentName string
    The name of the environment to which the current version of the API is published.
    GatewayId string
    Histories []ApigwApiPublishmentV2HistoryArgs
    All publish history of the API. The object structure is documented below.
    PublishId string
    The publishing ID of the API in current environment.
    PublishedAt string
    Time when the current version was published.
    Region string
    The region in which to APIs was published.
    VersionId string
    Specifies the version ID of the current publish.
    apiId String
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    apiName String
    apigwApiPublishmentV2Id String
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    description String
    Specifies the description of the current publish.
    environmentId String
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    environmentName String
    The name of the environment to which the current version of the API is published.
    gatewayId String
    histories List<ApigwApiPublishmentV2History>
    All publish history of the API. The object structure is documented below.
    publishId String
    The publishing ID of the API in current environment.
    publishedAt String
    Time when the current version was published.
    region String
    The region in which to APIs was published.
    versionId String
    Specifies the version ID of the current publish.
    apiId string
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    apiName string
    apigwApiPublishmentV2Id string
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    description string
    Specifies the description of the current publish.
    environmentId string
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    environmentName string
    The name of the environment to which the current version of the API is published.
    gatewayId string
    histories ApigwApiPublishmentV2History[]
    All publish history of the API. The object structure is documented below.
    publishId string
    The publishing ID of the API in current environment.
    publishedAt string
    Time when the current version was published.
    region string
    The region in which to APIs was published.
    versionId string
    Specifies the version ID of the current publish.
    api_id str
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    api_name str
    apigw_api_publishment_v2_id str
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    description str
    Specifies the description of the current publish.
    environment_id str
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    environment_name str
    The name of the environment to which the current version of the API is published.
    gateway_id str
    histories Sequence[ApigwApiPublishmentV2HistoryArgs]
    All publish history of the API. The object structure is documented below.
    publish_id str
    The publishing ID of the API in current environment.
    published_at str
    Time when the current version was published.
    region str
    The region in which to APIs was published.
    version_id str
    Specifies the version ID of the current publish.
    apiId String
    Specifies the ID of the API to be published or already published. Changing this will create a new resource.
    apiName String
    apigwApiPublishmentV2Id String
    The resource ID, which is constructed from the instance ID, environment ID, and API ID, separated by slashes.
    description String
    Specifies the description of the current publish.
    environmentId String
    Specifies the ID of the environment to which the current version of the API will be published or has been published. Changing this will create a new resource.
    environmentName String
    The name of the environment to which the current version of the API is published.
    gatewayId String
    histories List<Property Map>
    All publish history of the API. The object structure is documented below.
    publishId String
    The publishing ID of the API in current environment.
    publishedAt String
    Time when the current version was published.
    region String
    The region in which to APIs was published.
    versionId String
    Specifies the version ID of the current publish.

    Supporting Types

    ApigwApiPublishmentV2History, ApigwApiPublishmentV2HistoryArgs

    Description string
    Specifies the description of the current publish.
    VersionId string
    Specifies the version ID of the current publish.
    Description string
    Specifies the description of the current publish.
    VersionId string
    Specifies the version ID of the current publish.
    description String
    Specifies the description of the current publish.
    versionId String
    Specifies the version ID of the current publish.
    description string
    Specifies the description of the current publish.
    versionId string
    Specifies the version ID of the current publish.
    description str
    Specifies the description of the current publish.
    version_id str
    Specifies the version ID of the current publish.
    description String
    Specifies the description of the current publish.
    versionId String
    Specifies the version ID of the current publish.

    Import

    The publishment can be imported using related instance_id, environment_id and api_id, separated by slashes, e.g.

    $ pulumi import opentelekomcloud:index/apigwApiPublishmentV2:ApigwApiPublishmentV2 pub <instance_id>/<environment_id>/<api_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 opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud