Gateway Args
data class GatewayArgs(val gatewayName: Output<String>? = null, val properties: Output<GatewayPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val sku: Output<SkuArgs>? = null) : ConvertibleToJava<GatewayArgs>
Spring Cloud Gateway resource Uses Azure REST API version 2023-05-01-preview. In version 1.x of the Azure Native provider, it used API version 2022-01-01-preview. Other available API versions: 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-01-01-preview, 2024-05-01-preview.
Example Usage
Gateways_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var gateway = new AzureNative.AppPlatform.Gateway("gateway", new()
{
GatewayName = "default",
Properties = new AzureNative.AppPlatform.Inputs.GatewayPropertiesArgs
{
Public = true,
ResourceRequests = new AzureNative.AppPlatform.Inputs.GatewayResourceRequestsArgs
{
Cpu = "1",
Memory = "1G",
},
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
Sku = new AzureNative.AppPlatform.Inputs.SkuArgs
{
Capacity = 2,
Name = "E0",
Tier = "Enterprise",
},
});
});
Content copied to clipboard
package main
import (
appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewGateway(ctx, "gateway", &appplatform.GatewayArgs{
GatewayName: pulumi.String("default"),
Properties: &appplatform.GatewayPropertiesArgs{
Public: pulumi.Bool(true),
ResourceRequests: &appplatform.GatewayResourceRequestsArgs{
Cpu: pulumi.String("1"),
Memory: pulumi.String("1G"),
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myservice"),
Sku: &appplatform.SkuArgs{
Capacity: pulumi.Int(2),
Name: pulumi.String("E0"),
Tier: pulumi.String("Enterprise"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.appplatform.Gateway;
import com.pulumi.azurenative.appplatform.GatewayArgs;
import com.pulumi.azurenative.appplatform.inputs.GatewayPropertiesArgs;
import com.pulumi.azurenative.appplatform.inputs.GatewayResourceRequestsArgs;
import com.pulumi.azurenative.appplatform.inputs.SkuArgs;
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) {
var gateway = new Gateway("gateway", GatewayArgs.builder()
.gatewayName("default")
.properties(GatewayPropertiesArgs.builder()
.public_(true)
.resourceRequests(GatewayResourceRequestsArgs.builder()
.cpu("1")
.memory("1G")
.build())
.build())
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.sku(SkuArgs.builder()
.capacity(2)
.name("E0")
.tier("Enterprise")
.build())
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:appplatform:Gateway default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(gatewayName: Output<String>? = null, properties: Output<GatewayPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, sku: Output<SkuArgs>? = null)
Properties
Link copied to clipboard
The name of Spring Cloud Gateway.
Link copied to clipboard
Spring Cloud Gateway properties payload
Link copied to clipboard
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
Link copied to clipboard
The name of the Service resource.