1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. ApigApiPublishment
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.ApigApiPublishment

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Example Usage

    Publish a new version of the API

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject("instanceId");
    const envId = config.requireObject("envId");
    const apiId = config.requireObject("apiId");
    const _default = new flexibleengine.ApigApiPublishment("default", {
        instanceId: instanceId,
        envId: envId,
        apiId: apiId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    env_id = config.require_object("envId")
    api_id = config.require_object("apiId")
    default = flexibleengine.ApigApiPublishment("default",
        instance_id=instance_id,
        env_id=env_id,
        api_id=api_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		instanceId := cfg.RequireObject("instanceId")
    		envId := cfg.RequireObject("envId")
    		apiId := cfg.RequireObject("apiId")
    		_, err := flexibleengine.NewApigApiPublishment(ctx, "default", &flexibleengine.ApigApiPublishmentArgs{
    			InstanceId: pulumi.Any(instanceId),
    			EnvId:      pulumi.Any(envId),
    			ApiId:      pulumi.Any(apiId),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var envId = config.RequireObject<dynamic>("envId");
        var apiId = config.RequireObject<dynamic>("apiId");
        var @default = new Flexibleengine.ApigApiPublishment("default", new()
        {
            InstanceId = instanceId,
            EnvId = envId,
            ApiId = apiId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.ApigApiPublishment;
    import com.pulumi.flexibleengine.ApigApiPublishmentArgs;
    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 instanceId = config.get("instanceId");
            final var envId = config.get("envId");
            final var apiId = config.get("apiId");
            var default_ = new ApigApiPublishment("default", ApigApiPublishmentArgs.builder()
                .instanceId(instanceId)
                .envId(envId)
                .apiId(apiId)
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
      envId:
        type: dynamic
      apiId:
        type: dynamic
    resources:
      default:
        type: flexibleengine:ApigApiPublishment
        properties:
          instanceId: ${instanceId}
          envId: ${envId}
          apiId: ${apiId}
    

    Switch to a specified version of the API which is published

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject("instanceId");
    const envId = config.requireObject("envId");
    const apiId = config.requireObject("apiId");
    const versionId = config.requireObject("versionId");
    const _default = new flexibleengine.ApigApiPublishment("default", {
        instanceId: instanceId,
        envId: envId,
        apiId: apiId,
        versionId: versionId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    env_id = config.require_object("envId")
    api_id = config.require_object("apiId")
    version_id = config.require_object("versionId")
    default = flexibleengine.ApigApiPublishment("default",
        instance_id=instance_id,
        env_id=env_id,
        api_id=api_id,
        version_id=version_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		instanceId := cfg.RequireObject("instanceId")
    		envId := cfg.RequireObject("envId")
    		apiId := cfg.RequireObject("apiId")
    		versionId := cfg.RequireObject("versionId")
    		_, err := flexibleengine.NewApigApiPublishment(ctx, "default", &flexibleengine.ApigApiPublishmentArgs{
    			InstanceId: pulumi.Any(instanceId),
    			EnvId:      pulumi.Any(envId),
    			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 Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var envId = config.RequireObject<dynamic>("envId");
        var apiId = config.RequireObject<dynamic>("apiId");
        var versionId = config.RequireObject<dynamic>("versionId");
        var @default = new Flexibleengine.ApigApiPublishment("default", new()
        {
            InstanceId = instanceId,
            EnvId = envId,
            ApiId = apiId,
            VersionId = versionId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.ApigApiPublishment;
    import com.pulumi.flexibleengine.ApigApiPublishmentArgs;
    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 instanceId = config.get("instanceId");
            final var envId = config.get("envId");
            final var apiId = config.get("apiId");
            final var versionId = config.get("versionId");
            var default_ = new ApigApiPublishment("default", ApigApiPublishmentArgs.builder()
                .instanceId(instanceId)
                .envId(envId)
                .apiId(apiId)
                .versionId(versionId)
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
      envId:
        type: dynamic
      apiId:
        type: dynamic
      versionId:
        type: dynamic
    resources:
      default:
        type: flexibleengine:ApigApiPublishment
        properties:
          instanceId: ${instanceId}
          envId: ${envId}
          apiId: ${apiId}
          versionId: ${versionId}
    

    Create ApigApiPublishment Resource

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

    Constructor syntax

    new ApigApiPublishment(name: string, args: ApigApiPublishmentArgs, opts?: CustomResourceOptions);
    @overload
    def ApigApiPublishment(resource_name: str,
                           args: ApigApiPublishmentArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApigApiPublishment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           api_id: Optional[str] = None,
                           env_id: Optional[str] = None,
                           instance_id: Optional[str] = None,
                           apig_api_publishment_id: Optional[str] = None,
                           description: Optional[str] = None,
                           region: Optional[str] = None,
                           version_id: Optional[str] = None)
    func NewApigApiPublishment(ctx *Context, name string, args ApigApiPublishmentArgs, opts ...ResourceOption) (*ApigApiPublishment, error)
    public ApigApiPublishment(string name, ApigApiPublishmentArgs args, CustomResourceOptions? opts = null)
    public ApigApiPublishment(String name, ApigApiPublishmentArgs args)
    public ApigApiPublishment(String name, ApigApiPublishmentArgs args, CustomResourceOptions options)
    
    type: flexibleengine:ApigApiPublishment
    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 ApigApiPublishmentArgs
    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 ApigApiPublishmentArgs
    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 ApigApiPublishmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApigApiPublishmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApigApiPublishmentArgs
    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 apigApiPublishmentResource = new Flexibleengine.ApigApiPublishment("apigApiPublishmentResource", new()
    {
        ApiId = "string",
        EnvId = "string",
        InstanceId = "string",
        ApigApiPublishmentId = "string",
        Description = "string",
        Region = "string",
        VersionId = "string",
    });
    
    example, err := flexibleengine.NewApigApiPublishment(ctx, "apigApiPublishmentResource", &flexibleengine.ApigApiPublishmentArgs{
    	ApiId:                pulumi.String("string"),
    	EnvId:                pulumi.String("string"),
    	InstanceId:           pulumi.String("string"),
    	ApigApiPublishmentId: pulumi.String("string"),
    	Description:          pulumi.String("string"),
    	Region:               pulumi.String("string"),
    	VersionId:            pulumi.String("string"),
    })
    
    var apigApiPublishmentResource = new ApigApiPublishment("apigApiPublishmentResource", ApigApiPublishmentArgs.builder()
        .apiId("string")
        .envId("string")
        .instanceId("string")
        .apigApiPublishmentId("string")
        .description("string")
        .region("string")
        .versionId("string")
        .build());
    
    apig_api_publishment_resource = flexibleengine.ApigApiPublishment("apigApiPublishmentResource",
        api_id="string",
        env_id="string",
        instance_id="string",
        apig_api_publishment_id="string",
        description="string",
        region="string",
        version_id="string")
    
    const apigApiPublishmentResource = new flexibleengine.ApigApiPublishment("apigApiPublishmentResource", {
        apiId: "string",
        envId: "string",
        instanceId: "string",
        apigApiPublishmentId: "string",
        description: "string",
        region: "string",
        versionId: "string",
    });
    
    type: flexibleengine:ApigApiPublishment
    properties:
        apiId: string
        apigApiPublishmentId: string
        description: string
        envId: string
        instanceId: string
        region: string
        versionId: string
    

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

    ApiId string
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    EnvId string
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    InstanceId string
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    ApigApiPublishmentId string
    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 publishment.
    Region string
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    VersionId string
    Specifies the version ID of the current publishment.
    ApiId string
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    EnvId string
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    InstanceId string
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    ApigApiPublishmentId string
    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 publishment.
    Region string
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    VersionId string
    Specifies the version ID of the current publishment.
    apiId String
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    envId String
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    instanceId String
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    apigApiPublishmentId String
    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 publishment.
    region String
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    versionId String
    Specifies the version ID of the current publishment.
    apiId string
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    envId string
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    instanceId string
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    apigApiPublishmentId string
    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 publishment.
    region string
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    versionId string
    Specifies the version ID of the current publishment.
    api_id str
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    env_id str
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    instance_id str
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    apig_api_publishment_id str
    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 publishment.
    region str
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    version_id str
    Specifies the version ID of the current publishment.
    apiId String
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    envId String
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    instanceId String
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    apigApiPublishmentId String
    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 publishment.
    region String
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    versionId String
    Specifies the version ID of the current publishment.

    Outputs

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

    EnvName string
    Environment name to which the current version of the API is published.
    Histories List<ApigApiPublishmentHistory>
    All publish informations of the API. The structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublishId string
    The publish ID of the API in current environment.
    PublishedAt string
    Time when the current version was published.
    EnvName string
    Environment name to which the current version of the API is published.
    Histories []ApigApiPublishmentHistory
    All publish informations of the API. The structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublishId string
    The publish ID of the API in current environment.
    PublishedAt string
    Time when the current version was published.
    envName String
    Environment name to which the current version of the API is published.
    histories List<ApigApiPublishmentHistory>
    All publish informations of the API. The structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    publishId String
    The publish ID of the API in current environment.
    publishedAt String
    Time when the current version was published.
    envName string
    Environment name to which the current version of the API is published.
    histories ApigApiPublishmentHistory[]
    All publish informations of the API. The structure is documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    publishId string
    The publish ID of the API in current environment.
    publishedAt string
    Time when the current version was published.
    env_name str
    Environment name to which the current version of the API is published.
    histories Sequence[ApigApiPublishmentHistory]
    All publish informations of the API. The structure is documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    publish_id str
    The publish ID of the API in current environment.
    published_at str
    Time when the current version was published.
    envName String
    Environment name to which the current version of the API is published.
    histories List<Property Map>
    All publish informations of the API. The structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    publishId String
    The publish ID of the API in current environment.
    publishedAt String
    Time when the current version was published.

    Look up Existing ApigApiPublishment Resource

    Get an existing ApigApiPublishment 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?: ApigApiPublishmentState, opts?: CustomResourceOptions): ApigApiPublishment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_id: Optional[str] = None,
            apig_api_publishment_id: Optional[str] = None,
            description: Optional[str] = None,
            env_id: Optional[str] = None,
            env_name: Optional[str] = None,
            histories: Optional[Sequence[ApigApiPublishmentHistoryArgs]] = None,
            instance_id: Optional[str] = None,
            publish_id: Optional[str] = None,
            published_at: Optional[str] = None,
            region: Optional[str] = None,
            version_id: Optional[str] = None) -> ApigApiPublishment
    func GetApigApiPublishment(ctx *Context, name string, id IDInput, state *ApigApiPublishmentState, opts ...ResourceOption) (*ApigApiPublishment, error)
    public static ApigApiPublishment Get(string name, Input<string> id, ApigApiPublishmentState? state, CustomResourceOptions? opts = null)
    public static ApigApiPublishment get(String name, Output<String> id, ApigApiPublishmentState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:ApigApiPublishment    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 API ID to be published or already published. Changing this will create a new publishment resource.
    ApigApiPublishmentId string
    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 publishment.
    EnvId string
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    EnvName string
    Environment name to which the current version of the API is published.
    Histories List<ApigApiPublishmentHistory>
    All publish informations of the API. The structure is documented below.
    InstanceId string
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    PublishId string
    The publish ID of the API in current environment.
    PublishedAt string
    Time when the current version was published.
    Region string
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    VersionId string
    Specifies the version ID of the current publishment.
    ApiId string
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    ApigApiPublishmentId string
    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 publishment.
    EnvId string
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    EnvName string
    Environment name to which the current version of the API is published.
    Histories []ApigApiPublishmentHistoryArgs
    All publish informations of the API. The structure is documented below.
    InstanceId string
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    PublishId string
    The publish ID of the API in current environment.
    PublishedAt string
    Time when the current version was published.
    Region string
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    VersionId string
    Specifies the version ID of the current publishment.
    apiId String
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    apigApiPublishmentId String
    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 publishment.
    envId String
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    envName String
    Environment name to which the current version of the API is published.
    histories List<ApigApiPublishmentHistory>
    All publish informations of the API. The structure is documented below.
    instanceId String
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    publishId String
    The publish ID of the API in current environment.
    publishedAt String
    Time when the current version was published.
    region String
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    versionId String
    Specifies the version ID of the current publishment.
    apiId string
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    apigApiPublishmentId string
    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 publishment.
    envId string
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    envName string
    Environment name to which the current version of the API is published.
    histories ApigApiPublishmentHistory[]
    All publish informations of the API. The structure is documented below.
    instanceId string
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    publishId string
    The publish ID of the API in current environment.
    publishedAt string
    Time when the current version was published.
    region string
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    versionId string
    Specifies the version ID of the current publishment.
    api_id str
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    apig_api_publishment_id str
    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 publishment.
    env_id str
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    env_name str
    Environment name to which the current version of the API is published.
    histories Sequence[ApigApiPublishmentHistoryArgs]
    All publish informations of the API. The structure is documented below.
    instance_id str
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    publish_id str
    The publish ID of the API in current environment.
    published_at str
    Time when the current version was published.
    region str
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    version_id str
    Specifies the version ID of the current publishment.
    apiId String
    Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
    apigApiPublishmentId String
    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 publishment.
    envId String
    Specifies the environment ID to which the current version of the API will be published or has been published. Changing this will create a new publishment resource.
    envName String
    Environment name to which the current version of the API is published.
    histories List<Property Map>
    All publish informations of the API. The structure is documented below.
    instanceId String
    Specifies an ID of the APIG dedicated instance to which the API belongs to. Changing this will create a new publishment resource.
    publishId String
    The publish ID of the API in current environment.
    publishedAt String
    Time when the current version was published.
    region String
    Specifies the region in which to publish APIs. If omitted, the provider-level region will be used. Changing this will create a new publishment resource.
    versionId String
    Specifies the version ID of the current publishment.

    Supporting Types

    ApigApiPublishmentHistory, ApigApiPublishmentHistoryArgs

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

    Import

    APIs can be imported using their instance_id, env_id and api_id, separated by slashes, e.g.

    $ pulumi import flexibleengine:index/apigApiPublishment:ApigApiPublishment test 
    

    9b0a0a2f97aa43afbf7d852e3ba6a6f9/c5b32727186c4fe6b60408a8a297be09/9a3b3484c08545f9b9b0dcb2de0f5b8a

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud