Api Portal Args
data class ApiPortalArgs(val apiPortalName: Output<String>? = null, val properties: Output<ApiPortalPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val sku: Output<SkuArgs>? = null) : ConvertibleToJava<ApiPortalArgs>
API portal resource API Version: 2022-01-01-preview.
Example Usage
ApiPortals_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var apiPortal = new AzureNative.AppPlatform.ApiPortal("apiPortal", new()
{
ApiPortalName = "default",
Properties = new AzureNative.AppPlatform.Inputs.ApiPortalPropertiesArgs
{
GatewayIds = new[]
{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default",
},
Public = true,
},
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"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewApiPortal(ctx, "apiPortal", &appplatform.ApiPortalArgs{
ApiPortalName: pulumi.String("default"),
Properties: &appplatform.ApiPortalPropertiesArgs{
GatewayIds: pulumi.StringArray{
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default"),
},
Public: pulumi.Bool(true),
},
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.ApiPortal;
import com.pulumi.azurenative.appplatform.ApiPortalArgs;
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 apiPortal = new ApiPortal("apiPortal", ApiPortalArgs.builder()
.apiPortalName("default")
.properties(Map.ofEntries(
Map.entry("gatewayIds", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default"),
Map.entry("public", true)
))
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.sku(Map.ofEntries(
Map.entry("capacity", 2),
Map.entry("name", "E0"),
Map.entry("tier", "Enterprise")
))
.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:ApiPortal default /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apiPortals/default
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(apiPortalName: Output<String>? = null, properties: Output<ApiPortalPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, sku: Output<SkuArgs>? = null)
Properties
Link copied to clipboard
The name of API portal.
Link copied to clipboard
API portal 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.