published on Thursday, Jun 25, 2026 by Pulumi
published on Thursday, Jun 25, 2026 by Pulumi
Provides a Api Gateway Stage Model resource.
For information about Api Gateway Stage Model and how to use it, see What is Stage Model.
NOTE: Available since v1.280.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.apigateway.StageModel("default", {
stageModelName: "DEVELOP",
stageModelAlias: "Develop Environment",
description: "Develop stage for testing",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.apigateway.StageModel("default",
stage_model_name="DEVELOP",
stage_model_alias="Develop Environment",
description="Develop stage for testing")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apigateway.NewStageModel(ctx, "default", &apigateway.StageModelArgs{
StageModelName: pulumi.String("DEVELOP"),
StageModelAlias: pulumi.String("Develop Environment"),
Description: pulumi.String("Develop stage for testing"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.ApiGateway.StageModel("default", new()
{
StageModelName = "DEVELOP",
StageModelAlias = "Develop Environment",
Description = "Develop stage for testing",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.apigateway.StageModel;
import com.pulumi.alicloud.apigateway.StageModelArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new StageModel("default", StageModelArgs.builder()
.stageModelName("DEVELOP")
.stageModelAlias("Develop Environment")
.description("Develop stage for testing")
.build());
}
}
resources:
default:
type: alicloud:apigateway:StageModel
properties:
stageModelName: DEVELOP
stageModelAlias: Develop Environment
description: Develop stage for testing
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
resource "alicloud_apigateway_stagemodel" "default" {
stage_model_name = "DEVELOP"
stage_model_alias = "Develop Environment"
description = "Develop stage for testing"
}
📚 Need more examples? VIEW MORE EXAMPLES
Create StageModel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StageModel(name: string, args: StageModelArgs, opts?: CustomResourceOptions);@overload
def StageModel(resource_name: str,
args: StageModelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StageModel(resource_name: str,
opts: Optional[ResourceOptions] = None,
stage_model_alias: Optional[str] = None,
stage_model_name: Optional[str] = None,
description: Optional[str] = None)func NewStageModel(ctx *Context, name string, args StageModelArgs, opts ...ResourceOption) (*StageModel, error)public StageModel(string name, StageModelArgs args, CustomResourceOptions? opts = null)
public StageModel(String name, StageModelArgs args)
public StageModel(String name, StageModelArgs args, CustomResourceOptions options)
type: alicloud:apigateway:StageModel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_apigateway_stagemodel" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args StageModelArgs
- 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 StageModelArgs
- 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 StageModelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StageModelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StageModelArgs
- 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 stageModelResource = new AliCloud.ApiGateway.StageModel("stageModelResource", new()
{
StageModelAlias = "string",
StageModelName = "string",
Description = "string",
});
example, err := apigateway.NewStageModel(ctx, "stageModelResource", &apigateway.StageModelArgs{
StageModelAlias: pulumi.String("string"),
StageModelName: pulumi.String("string"),
Description: pulumi.String("string"),
})
resource "alicloud_apigateway_stagemodel" "stageModelResource" {
stage_model_alias = "string"
stage_model_name = "string"
description = "string"
}
var stageModelResource = new StageModel("stageModelResource", StageModelArgs.builder()
.stageModelAlias("string")
.stageModelName("string")
.description("string")
.build());
stage_model_resource = alicloud.apigateway.StageModel("stageModelResource",
stage_model_alias="string",
stage_model_name="string",
description="string")
const stageModelResource = new alicloud.apigateway.StageModel("stageModelResource", {
stageModelAlias: "string",
stageModelName: "string",
description: "string",
});
type: alicloud:apigateway:StageModel
properties:
description: string
stageModelAlias: string
stageModelName: string
StageModel 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 StageModel resource accepts the following input properties:
- Stage
Model stringAlias - The alias of the Stage Model.
- Stage
Model stringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - Description string
- The description of the Stage Model.
- Stage
Model stringAlias - The alias of the Stage Model.
- Stage
Model stringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - Description string
- The description of the Stage Model.
- stage_
model_ stringalias - The alias of the Stage Model.
- stage_
model_ stringname - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - description string
- The description of the Stage Model.
- stage
Model StringAlias - The alias of the Stage Model.
- stage
Model StringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - description String
- The description of the Stage Model.
- stage
Model stringAlias - The alias of the Stage Model.
- stage
Model stringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - description string
- The description of the Stage Model.
- stage_
model_ stralias - The alias of the Stage Model.
- stage_
model_ strname - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - description str
- The description of the Stage Model.
- stage
Model StringAlias - The alias of the Stage Model.
- stage
Model StringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - description String
- The description of the Stage Model.
Outputs
All input properties are implicitly available as output properties. Additionally, the StageModel resource produces the following output properties:
- Created
Time string - The creation time of the Stage Model.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
Time string - The last modified time of the Stage Model.
- Stage
Model stringId - The ID of the Stage Model.
- Type string
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- Created
Time string - The creation time of the Stage Model.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
Time string - The last modified time of the Stage Model.
- Stage
Model stringId - The ID of the Stage Model.
- Type string
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created_
time string - The creation time of the Stage Model.
- id string
- The provider-assigned unique ID for this managed resource.
- modified_
time string - The last modified time of the Stage Model.
- stage_
model_ stringid - The ID of the Stage Model.
- type string
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created
Time String - The creation time of the Stage Model.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
Time String - The last modified time of the Stage Model.
- stage
Model StringId - The ID of the Stage Model.
- type String
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created
Time string - The creation time of the Stage Model.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
Time string - The last modified time of the Stage Model.
- stage
Model stringId - The ID of the Stage Model.
- type string
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created_
time str - The creation time of the Stage Model.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
time str - The last modified time of the Stage Model.
- stage_
model_ strid - The ID of the Stage Model.
- type str
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created
Time String - The creation time of the Stage Model.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
Time String - The last modified time of the Stage Model.
- stage
Model StringId - The ID of the Stage Model.
- type String
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
Look up Existing StageModel Resource
Get an existing StageModel 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?: StageModelState, opts?: CustomResourceOptions): StageModel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
modified_time: Optional[str] = None,
stage_model_alias: Optional[str] = None,
stage_model_id: Optional[str] = None,
stage_model_name: Optional[str] = None,
type: Optional[str] = None) -> StageModelfunc GetStageModel(ctx *Context, name string, id IDInput, state *StageModelState, opts ...ResourceOption) (*StageModel, error)public static StageModel Get(string name, Input<string> id, StageModelState? state, CustomResourceOptions? opts = null)public static StageModel get(String name, Output<String> id, StageModelState state, CustomResourceOptions options)resources: _: type: alicloud:apigateway:StageModel get: id: ${id}import {
to = alicloud_apigateway_stagemodel.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
Time string - The creation time of the Stage Model.
- Description string
- The description of the Stage Model.
- Modified
Time string - The last modified time of the Stage Model.
- Stage
Model stringAlias - The alias of the Stage Model.
- Stage
Model stringId - The ID of the Stage Model.
- Stage
Model stringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - Type string
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- Created
Time string - The creation time of the Stage Model.
- Description string
- The description of the Stage Model.
- Modified
Time string - The last modified time of the Stage Model.
- Stage
Model stringAlias - The alias of the Stage Model.
- Stage
Model stringId - The ID of the Stage Model.
- Stage
Model stringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - Type string
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created_
time string - The creation time of the Stage Model.
- description string
- The description of the Stage Model.
- modified_
time string - The last modified time of the Stage Model.
- stage_
model_ stringalias - The alias of the Stage Model.
- stage_
model_ stringid - The ID of the Stage Model.
- stage_
model_ stringname - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - type string
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created
Time String - The creation time of the Stage Model.
- description String
- The description of the Stage Model.
- modified
Time String - The last modified time of the Stage Model.
- stage
Model StringAlias - The alias of the Stage Model.
- stage
Model StringId - The ID of the Stage Model.
- stage
Model StringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - type String
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created
Time string - The creation time of the Stage Model.
- description string
- The description of the Stage Model.
- modified
Time string - The last modified time of the Stage Model.
- stage
Model stringAlias - The alias of the Stage Model.
- stage
Model stringId - The ID of the Stage Model.
- stage
Model stringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - type string
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created_
time str - The creation time of the Stage Model.
- description str
- The description of the Stage Model.
- modified_
time str - The last modified time of the Stage Model.
- stage_
model_ stralias - The alias of the Stage Model.
- stage_
model_ strid - The ID of the Stage Model.
- stage_
model_ strname - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - type str
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
- created
Time String - The creation time of the Stage Model.
- description String
- The description of the Stage Model.
- modified
Time String - The last modified time of the Stage Model.
- stage
Model StringAlias - The alias of the Stage Model.
- stage
Model StringId - The ID of the Stage Model.
- stage
Model StringName - The name of the Stage Model. It must be 2-10 uppercase letters or digits. Valid values: cannot be
RELEASE,PRE, orTEST. - type String
- The type of the Stage Model. Valid values:
SYSTEM,CUSTOM.
Import
Api Gateway Stage Model can be imported using the id, e.g.
$ pulumi import alicloud:apigateway/stageModel:StageModel example <stage_model_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Thursday, Jun 25, 2026 by Pulumi