ContentType

class ContentType : KotlinCustomResource

Content type contract details. API Version: 2020-12-01.

Example Usage

ApiManagementCreateContentType

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var contentType = new AzureNative.ApiManagement.ContentType("contentType", new()
{
ContentTypeId = "page",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewContentType(ctx, "contentType", &apimanagement.ContentTypeArgs{
ContentTypeId: pulumi.String("page"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.ContentType;
import com.pulumi.azurenative.apimanagement.ContentTypeArgs;
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 contentType = new ContentType("contentType", ContentTypeArgs.builder()
.contentTypeId("page")
.resourceGroupName("rg1")
.serviceName("apimService1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:apimanagement:ContentType page /contentTypes/page

Properties

Link copied to clipboard
val description: Output<String>?

Content type description.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val schema: Output<Any>?

Content type schema.

Link copied to clipboard
val type: Output<String>

Resource type for API Management resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>?

Content type version.