mso.SchemaTemplateDeployNdo
Explore with Pulumi AI
Manages deploy and redeploy operations of schema templates for NDO v3.7 and higher.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";
const templateDeployer = new mso.SchemaTemplateDeployNdo("templateDeployer", {
schemaId: mso_schema.schema1.id,
templateName: "Template1",
});
import pulumi
import pulumi_mso as mso
template_deployer = mso.SchemaTemplateDeployNdo("templateDeployer",
schema_id=mso_schema["schema1"]["id"],
template_name="Template1")
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.NewSchemaTemplateDeployNdo(ctx, "templateDeployer", &mso.SchemaTemplateDeployNdoArgs{
SchemaId: pulumi.Any(mso_schema.Schema1.Id),
TemplateName: pulumi.String("Template1"),
})
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 templateDeployer = new Mso.SchemaTemplateDeployNdo("templateDeployer", new()
{
SchemaId = mso_schema.Schema1.Id,
TemplateName = "Template1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mso.SchemaTemplateDeployNdo;
import com.pulumi.mso.SchemaTemplateDeployNdoArgs;
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 templateDeployer = new SchemaTemplateDeployNdo("templateDeployer", SchemaTemplateDeployNdoArgs.builder()
.schemaId(mso_schema.schema1().id())
.templateName("Template1")
.build());
}
}
resources:
templateDeployer:
type: mso:SchemaTemplateDeployNdo
properties:
schemaId: ${mso_schema.schema1.id}
templateName: Template1
Argument Reference
schema_id
- (Required) The schema-id of the template.template_name
- (Required) The name of the template to deploy or redeploy.re_deploy
- (Optional) Boolean flag indicating whether to re-deploy the template to the associated sites. Default is false, which would trigger a regular deploy operation.
Notes
- This resource requires ‘platform = “nd”’ to be configured in the provider configuration section.
- This resource is intentionally created non-idempotent so that it deploys the template in every run, it will not fail if there is no change and we deploy or redeploy the template again. When destroying the resource, no action is taken.
- Prior to deploy or redeploy a schema validation is executed. When schema validation fails, the resource will fail and deploy or redeploy will not be executed.
- A template can only be undeployed from a site by disassociating the site from the template with the resource mso_schema_site.
Attribute Reference
No attributes are exported.
Create SchemaTemplateDeployNdo Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SchemaTemplateDeployNdo(name: string, args: SchemaTemplateDeployNdoArgs, opts?: CustomResourceOptions);
@overload
def SchemaTemplateDeployNdo(resource_name: str,
args: SchemaTemplateDeployNdoArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SchemaTemplateDeployNdo(resource_name: str,
opts: Optional[ResourceOptions] = None,
schema_id: Optional[str] = None,
template_name: Optional[str] = None,
force_apply: Optional[str] = None,
re_deploy: Optional[bool] = None,
schema_template_deploy_ndo_id: Optional[str] = None)
func NewSchemaTemplateDeployNdo(ctx *Context, name string, args SchemaTemplateDeployNdoArgs, opts ...ResourceOption) (*SchemaTemplateDeployNdo, error)
public SchemaTemplateDeployNdo(string name, SchemaTemplateDeployNdoArgs args, CustomResourceOptions? opts = null)
public SchemaTemplateDeployNdo(String name, SchemaTemplateDeployNdoArgs args)
public SchemaTemplateDeployNdo(String name, SchemaTemplateDeployNdoArgs args, CustomResourceOptions options)
type: mso:SchemaTemplateDeployNdo
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SchemaTemplateDeployNdoArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SchemaTemplateDeployNdoArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SchemaTemplateDeployNdoArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaTemplateDeployNdoArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchemaTemplateDeployNdoArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var schemaTemplateDeployNdoResource = new Mso.SchemaTemplateDeployNdo("schemaTemplateDeployNdoResource", new()
{
SchemaId = "string",
TemplateName = "string",
ForceApply = "string",
ReDeploy = false,
SchemaTemplateDeployNdoId = "string",
});
example, err := mso.NewSchemaTemplateDeployNdo(ctx, "schemaTemplateDeployNdoResource", &mso.SchemaTemplateDeployNdoArgs{
SchemaId: pulumi.String("string"),
TemplateName: pulumi.String("string"),
ForceApply: pulumi.String("string"),
ReDeploy: pulumi.Bool(false),
SchemaTemplateDeployNdoId: pulumi.String("string"),
})
var schemaTemplateDeployNdoResource = new SchemaTemplateDeployNdo("schemaTemplateDeployNdoResource", SchemaTemplateDeployNdoArgs.builder()
.schemaId("string")
.templateName("string")
.forceApply("string")
.reDeploy(false)
.schemaTemplateDeployNdoId("string")
.build());
schema_template_deploy_ndo_resource = mso.SchemaTemplateDeployNdo("schemaTemplateDeployNdoResource",
schema_id="string",
template_name="string",
force_apply="string",
re_deploy=False,
schema_template_deploy_ndo_id="string")
const schemaTemplateDeployNdoResource = new mso.SchemaTemplateDeployNdo("schemaTemplateDeployNdoResource", {
schemaId: "string",
templateName: "string",
forceApply: "string",
reDeploy: false,
schemaTemplateDeployNdoId: "string",
});
type: mso:SchemaTemplateDeployNdo
properties:
forceApply: string
reDeploy: false
schemaId: string
schemaTemplateDeployNdoId: string
templateName: string
SchemaTemplateDeployNdo Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SchemaTemplateDeployNdo resource accepts the following input properties:
- Schema
Id string - Template
Name string - Force
Apply string - Re
Deploy bool - Schema
Template stringDeploy Ndo Id
- Schema
Id string - Template
Name string - Force
Apply string - Re
Deploy bool - Schema
Template stringDeploy Ndo Id
- schema
Id String - template
Name String - force
Apply String - re
Deploy Boolean - schema
Template StringDeploy Ndo Id
- schema
Id string - template
Name string - force
Apply string - re
Deploy boolean - schema
Template stringDeploy Ndo Id
- schema_
id str - template_
name str - force_
apply str - re_
deploy bool - schema_
template_ strdeploy_ ndo_ id
- schema
Id String - template
Name String - force
Apply String - re
Deploy Boolean - schema
Template StringDeploy Ndo Id
Outputs
All input properties are implicitly available as output properties. Additionally, the SchemaTemplateDeployNdo resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SchemaTemplateDeployNdo Resource
Get an existing SchemaTemplateDeployNdo resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SchemaTemplateDeployNdoState, opts?: CustomResourceOptions): SchemaTemplateDeployNdo
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
force_apply: Optional[str] = None,
re_deploy: Optional[bool] = None,
schema_id: Optional[str] = None,
schema_template_deploy_ndo_id: Optional[str] = None,
template_name: Optional[str] = None) -> SchemaTemplateDeployNdo
func GetSchemaTemplateDeployNdo(ctx *Context, name string, id IDInput, state *SchemaTemplateDeployNdoState, opts ...ResourceOption) (*SchemaTemplateDeployNdo, error)
public static SchemaTemplateDeployNdo Get(string name, Input<string> id, SchemaTemplateDeployNdoState? state, CustomResourceOptions? opts = null)
public static SchemaTemplateDeployNdo get(String name, Output<String> id, SchemaTemplateDeployNdoState state, CustomResourceOptions options)
resources: _: type: mso:SchemaTemplateDeployNdo get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Force
Apply string - Re
Deploy bool - Schema
Id string - Schema
Template stringDeploy Ndo Id - Template
Name string
- Force
Apply string - Re
Deploy bool - Schema
Id string - Schema
Template stringDeploy Ndo Id - Template
Name string
- force
Apply String - re
Deploy Boolean - schema
Id String - schema
Template StringDeploy Ndo Id - template
Name String
- force
Apply string - re
Deploy boolean - schema
Id string - schema
Template stringDeploy Ndo Id - template
Name string
- force_
apply str - re_
deploy bool - schema_
id str - schema_
template_ strdeploy_ ndo_ id - template_
name str
- force
Apply String - re
Deploy Boolean - schema
Id String - schema
Template StringDeploy Ndo Id - template
Name String
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
mso
Terraform Provider.