Schema

class Schema : KotlinCustomResource

Schema definition. Uses Azure REST API version 2024-09-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-09-01-preview.

Example Usage

Create_Schema

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var schema = new AzureNative.DeviceRegistry.Schema("schema", new()
{
Description = "This is a sample Schema",
DisplayName = "My Schema",
Format = AzureNative.DeviceRegistry.Format.JsonSchema_draft7,
ResourceGroupName = "myResourceGroup",
SchemaName = "my-schema",
SchemaRegistryName = "my-schema-registry",
SchemaType = AzureNative.DeviceRegistry.SchemaType.MessageSchema,
Tags =
{
{ "sampleKey", "sampleValue" },
},
});
});
package main
import (
deviceregistry "github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceregistry.NewSchema(ctx, "schema", &deviceregistry.SchemaArgs{
Description: pulumi.String("This is a sample Schema"),
DisplayName: pulumi.String("My Schema"),
Format: pulumi.String(deviceregistry.Format_JsonSchema_draft7),
ResourceGroupName: pulumi.String("myResourceGroup"),
SchemaName: pulumi.String("my-schema"),
SchemaRegistryName: pulumi.String("my-schema-registry"),
SchemaType: pulumi.String(deviceregistry.SchemaTypeMessageSchema),
Tags: pulumi.StringMap{
"sampleKey": pulumi.String("sampleValue"),
},
})
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.deviceregistry.Schema;
import com.pulumi.azurenative.deviceregistry.SchemaArgs;
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 schema = new Schema("schema", SchemaArgs.builder()
.description("This is a sample Schema")
.displayName("My Schema")
.format("JsonSchema/draft-07")
.resourceGroupName("myResourceGroup")
.schemaName("my-schema")
.schemaRegistryName("my-schema-registry")
.schemaType("MessageSchema")
.tags(Map.of("sampleKey", "sampleValue"))
.build());
}
}

Import

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

$ pulumi import azure-native:deviceregistry:Schema my-schema /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

Human-readable description of the schema.

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

Human-readable display name.

Link copied to clipboard
val format: Output<String>

Format of the schema.

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

The name of the resource

Link copied to clipboard

Provisioning state of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val schemaType: Output<String>

Type of the schema.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Schema tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val uuid: Output<String>

Globally unique, immutable, non-reusable id.