CoreRMO::Add Resource Type


Adds a new resource type definition to the Resource Manager Database. Once added, the resource type can be used in new resource instances and associated with model-specific data. Used by Microsoft. Provisioning Framework (MPF).

XML Input Schema

The following code fragment shows the format for sending data to this procedure. For more information on individual elements and attributes, see the Elements and Attributes table.

<executeData>1..1
  <resourceType>1..1
	<modelName>1..1</modelName>
	<typeName>1..1</typeName>
	<typeDescription>0..1</typeDescription>
  </resourceType>
</executeData>

XML Output Schema

Add Resource Type does not return data.

Elements and Attributes

The following table describes the XML elements and attributes. Unless otherwise indicated, the data type is string.

Element Description, relationships, and attributes
executeData Description:
Encapsulates the procedure's input data.

Children:
resourceType (minOccurs="1" maxOccurs="1")

modelName

Description:
Name of a resource model that exists in the database. Specify the resource model to associate with instances of this resource type.

Parent:
resourceType

resourceType

Description:
Encapsulates data needed to describe a resource type. The resource type must have a unique name and reference an existing resource model.

Parent:
executeData

Children:
modelName(minOccurs="1" maxOccurs="1")
typeDescription (minOccurs="0" maxOccurs="1")
typeName
(minOccurs="1" maxOccurs="1")

typeDescription

Description:
A description can be added to the type to aid users when reviewing types through administration tools.

Parent:
resourceType

typeName

Description:
Name to use to identify the new type. This name must be unique within the set of resource types.

Parent:
resourceType

Example

<request>
  <data/>
  <procedure>  
	<execute procedure="Add Resource Type" namespace="CoreRMO"> 
	<executeData>
		<resourceType>
		<typeName>IISServer</typeName>
		<modelName>BlockModel</modelName>
		<typeDescription>A server that has IIS installed on it and hosts web sites</typeDescription>
		</resourceType>
	</executeData>
	</execute>
  </procedure>
</request>

See Also

CoreRMO Provider, Delete Resource Type, List Resource Types, Resource Manager, Update Resource Type


Up Top of Page
) 1999-2002 Microsoft Corporation. All rights reserved.