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

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
configuration:
  instanceId:
    type: dynamic
  envId:
    type: dynamic
  apiId:
    type: dynamic
resources:
  default:
    type: flexibleengine:ApigApiPublishment
    properties:
      instanceId: ${instanceId}
      envId: ${envId}
      apiId: ${apiId}
Copy

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ApigApiPublishmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ApigApiPublishmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ApigApiPublishmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
var apigApiPublishmentResource = new ApigApiPublishment("apigApiPublishmentResource", ApigApiPublishmentArgs.builder()
    .apiId("string")
    .envId("string")
    .instanceId("string")
    .apigApiPublishmentId("string")
    .description("string")
    .region("string")
    .versionId("string")
    .build());
Copy
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")
Copy
const apigApiPublishmentResource = new flexibleengine.ApigApiPublishment("apigApiPublishmentResource", {
    apiId: "string",
    envId: "string",
    instanceId: "string",
    apigApiPublishmentId: "string",
    description: "string",
    region: "string",
    versionId: "string",
});
Copy
type: flexibleengine:ApigApiPublishment
properties:
    apiId: string
    apigApiPublishmentId: string
    description: string
    envId: string
    instanceId: string
    region: string
    versionId: string
Copy

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 This property is required. string
Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
EnvId This property is required. 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 This property is required. 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 This property is required. string
Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
EnvId This property is required. 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 This property is required. 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 This property is required. String
Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
envId This property is required. 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 This property is required. 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 This property is required. string
Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
envId This property is required. 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 This property is required. 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 This property is required. str
Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
env_id This property is required. 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 This property is required. 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 This property is required. String
Specifies the API ID to be published or already published. Changing this will create a new publishment resource.
envId This property is required. 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 This property is required. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required. string
Specifies the description of the current publishment.
VersionId This property is required. string
Specifies the version ID of the current publishment.
Description This property is required. string
Specifies the description of the current publishment.
VersionId This property is required. string
Specifies the version ID of the current publishment.
description This property is required. String
Specifies the description of the current publishment.
versionId This property is required. String
Specifies the version ID of the current publishment.
description This property is required. string
Specifies the description of the current publishment.
versionId This property is required. string
Specifies the version ID of the current publishment.
description This property is required. str
Specifies the description of the current publishment.
version_id This property is required. str
Specifies the version ID of the current publishment.
description This property is required. String
Specifies the description of the current publishment.
versionId This property is required. 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 
Copy

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.