1. Types
2. vcenter
3. ovf
4. library item

## vcenter ovf library item: storage group mapping

The `storage_group_mapping` structure defines the storage deployment target and storage provisioning type for a section of type vmw:StorageGroupSection in the OVF descriptor.

### Representations:

- JSON
- XML

{
"datastore_id": "obj-103",
"provisioning": "thin",
"storage_profile_id": "obj-103",
"type": "DATASTORE"
}
<?xml version="1.0" ?>
<ns0:StorageGroupMapping xmlns:ns0="http://vmware.com/vcenter/ovf/library_item" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<datastore_id>obj-103</datastore_id>
<storage_profile_id>obj-103</storage_profile_id>
<type>DATASTORE</type>
<provisioning>thin</provisioning>
</ns0:StorageGroupMapping>

#### Attributes:

Name | Type | Description
--- | --- | ---
Required
type | string | Type of storage deployment target to use for the vmw:StorageGroupSection section. The specified value must be DATASTORE or STORAGE_PROFILE. Defines the supported types of storage targets for sections of type vmw:StroageGroupSection in the OVF descriptor. Value is one of: DATASTORE: Storage deployment target is a datastore. STORAGE_PROFILE: Storage deployment target is a storage profile.
Optional
datastore_id | string | Target datastore to be used for the storage group. Optional. It is only relevant when type has value DATASTORE. This field is optional and it is only relevant when the value of `type` is DATASTORE.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: `Datastore`. When operations return a value of this structure as a result, the field will be an identifier for the resource type: `Datastore`.
storage_profile_id | string | Target storage profile to be used for the storage group. Optional. It is only relevant when type has value STORAGE_PROFILE. This field is optional and it is only relevant when the value of `type` is STORAGE_PROFILE.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: `StorageProfile`. When operations return a value of this structure as a result, the field will be an identifier for the resource type: `StorageProfile`.
provisioning | string | Target provisioning type to use for the storage group. Optional. If unset, vcenter.ovf.library_item.resource_pool_deployment_spec.storage_provisioning will be used.