Custom Api Args
    data class CustomApiArgs(val apiName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<CustomApiPropertiesDefinitionArgs>? = null, val resourceGroupName: Output<String>? = null, val subscriptionId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CustomApiArgs> 
A custom API Azure REST API version: 2016-06-01. Prior API version in Azure Native 1.x: 2016-06-01.
Example Usage
Replace a custom API
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var customApi = new AzureNative.Web.CustomApi("customApi", new()
    {
        ApiName = "testCustomApi",
        Properties = new AzureNative.Web.Inputs.CustomApiPropertiesDefinitionArgs
        {
            ApiDefinitions = new AzureNative.Web.Inputs.ApiResourceDefinitionsArgs
            {
                OriginalSwaggerUrl = "https://tempuri.org/swagger.json",
            },
            ApiType = "Rest",
            Capabilities = new() { },
            Description = "",
            DisplayName = "testCustomApi",
            IconUri = "/testIcon.svg",
        },
        ResourceGroupName = "testResourceGroup",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/web/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := web.NewCustomApi(ctx, "customApi", &web.CustomApiArgs{
			ApiName: pulumi.String("testCustomApi"),
			Properties: web.CustomApiPropertiesDefinitionResponse{
				ApiDefinitions: &web.ApiResourceDefinitionsArgs{
					OriginalSwaggerUrl: pulumi.String("https://tempuri.org/swagger.json"),
				},
				ApiType:      pulumi.String("Rest"),
				Capabilities: pulumi.StringArray{},
				Description:  pulumi.String(""),
				DisplayName:  pulumi.String("testCustomApi"),
				IconUri:      pulumi.String("/testIcon.svg"),
			},
			ResourceGroupName: pulumi.String("testResourceGroup"),
		})
		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.web.CustomApi;
import com.pulumi.azurenative.web.CustomApiArgs;
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 customApi = new CustomApi("customApi", CustomApiArgs.builder()
            .apiName("testCustomApi")
            .properties(Map.ofEntries(
                Map.entry("apiDefinitions", Map.of("originalSwaggerUrl", "https://tempuri.org/swagger.json")),
                Map.entry("apiType", "Rest"),
                Map.entry("capabilities", ),
                Map.entry("description", ""),
                Map.entry("displayName", "testCustomApi"),
                Map.entry("iconUri", "/testIcon.svg")
            ))
            .resourceGroupName("testResourceGroup")
            .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:web:CustomApi testCustomApi /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/customApis/{apiName}Content copied to clipboard
Constructors
Link copied to clipboard
                fun CustomApiArgs(apiName: Output<String>? = null, location: Output<String>? = null, properties: Output<CustomApiPropertiesDefinitionArgs>? = null, resourceGroupName: Output<String>? = null, subscriptionId: Output<String>? = null, tags: Output<Map<String, String>>? = null)