@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.18 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets the details of the Schema specified by its identifier.
*
* Uses Azure REST API version 2021-04-01-preview.
*/
export declare function getSchema(args: GetSchemaArgs, opts?: pulumi.InvokeOptions): Promise<GetSchemaResult>;
export interface GetSchemaArgs {
/**
* The name of the resource group.
*/
resourceGroupName: string;
/**
* Schema id identifier. Must be unique in the current API Management service instance.
*/
schemaId: string;
/**
* The name of the API Management service.
*/
serviceName: string;
}
/**
* Schema Contract details.
*/
export interface GetSchemaResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Free-form schema entity description.
*/
readonly description?: string;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* Schema Type. Immutable.
*/
readonly schemaType: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
/**
* Json-encoded string for non json-based schema.
*/
readonly value?: string;
}
/**
* Gets the details of the Schema specified by its identifier.
*
* Uses Azure REST API version 2021-04-01-preview.
*/
export declare function getSchemaOutput(args: GetSchemaOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSchemaResult>;
export interface GetSchemaOutputArgs {
/**
* The name of the resource group.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Schema id identifier. Must be unique in the current API Management service instance.
*/
schemaId: pulumi.Input<string>;
/**
* The name of the API Management service.
*/
serviceName: pulumi.Input<string>;
}