mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet
mso.getSchema
Explore with Pulumi AI
Data source for MSO schema.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";
const example = mso.getSchema({
    name: "demo_schema",
});
import pulumi
import pulumi_mso as mso
example = mso.get_schema(name="demo_schema")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/mso/mso"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mso.LookupSchema(ctx, &mso.LookupSchemaArgs{
			Name: "demo_schema",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mso = Pulumi.Mso;
return await Deployment.RunAsync(() => 
{
    var example = Mso.GetSchema.Invoke(new()
    {
        Name = "demo_schema",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mso.MsoFunctions;
import com.pulumi.mso.inputs.GetSchemaArgs;
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) {
        final var example = MsoFunctions.getSchema(GetSchemaArgs.builder()
            .name("demo_schema")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: mso:getSchema
      arguments:
        name: demo_schema
Argument Reference
- name- (Required) The name of the Schema.
Attribute Reference
- template_name- (Read-Only) Deprecated. The template name of the Schema.
- tenant_id- (Read-Only) Deprecated. The tenant ID of the Schema.
- description- (Read-Only) The description of the Schema.
- template- (Read-Only) A list of templates for the Schema.- name- (Read-Only) The name of the Template.
- display_name- (Read-Only) The name of the Template as displayed on the MSO UI.
- description- (Read-Only) The description of the Template.
- tenant_id- (Read-Only) The tenant ID of the Template.
- template_type- (Read-Only) The type of the Template.
 
Using getSchema
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSchema(args: GetSchemaArgs, opts?: InvokeOptions): Promise<GetSchemaResult>
function getSchemaOutput(args: GetSchemaOutputArgs, opts?: InvokeOptions): Output<GetSchemaResult>def get_schema(id: Optional[str] = None,
               name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetSchemaResult
def get_schema_output(id: Optional[pulumi.Input[str]] = None,
               name: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetSchemaResult]func LookupSchema(ctx *Context, args *LookupSchemaArgs, opts ...InvokeOption) (*LookupSchemaResult, error)
func LookupSchemaOutput(ctx *Context, args *LookupSchemaOutputArgs, opts ...InvokeOption) LookupSchemaResultOutput> Note: This function is named LookupSchema in the Go SDK.
public static class GetSchema 
{
    public static Task<GetSchemaResult> InvokeAsync(GetSchemaArgs args, InvokeOptions? opts = null)
    public static Output<GetSchemaResult> Invoke(GetSchemaInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSchemaResult> getSchema(GetSchemaArgs args, InvokeOptions options)
public static Output<GetSchemaResult> getSchema(GetSchemaArgs args, InvokeOptions options)
fn::invoke:
  function: mso:index/getSchema:getSchema
  arguments:
    # arguments dictionaryThe following arguments are supported:
getSchema Result
The following output properties are available:
- Description string
- Id string
- Name string
- TemplateName string
- Templates
List<GetSchema Template> 
- TenantId string
- Description string
- Id string
- Name string
- TemplateName string
- Templates
[]GetSchema Template Type 
- TenantId string
- description String
- id String
- name String
- templateName String
- templates
List<GetSchema Template> 
- tenantId String
- description string
- id string
- name string
- templateName string
- templates
GetSchema Template[] 
- tenantId string
- description str
- id str
- name str
- template_name str
- templates
Sequence[GetSchema Template] 
- tenant_id str
- description String
- id String
- name String
- templateName String
- templates List<Property Map>
- tenantId String
Supporting Types
GetSchemaTemplate  
- Description string
- DisplayName string
- Name string
- TemplateType string
- TenantId string
- Description string
- DisplayName string
- Name string
- TemplateType string
- TenantId string
- description String
- displayName String
- name String
- templateType String
- tenantId String
- description string
- displayName string
- name string
- templateType string
- tenantId string
- description str
- display_name str
- name str
- template_type str
- tenant_id str
- description String
- displayName String
- name String
- templateType String
- tenantId String
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the msoTerraform Provider.