> For the complete documentation index, see [llms.txt](https://docs.ionos.com/ruby-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/ruby-sdk/models/resource.md).

# Resource

## Properties

\| **entities** | [**ResourceEntities**](/ruby-sdk/models/resourceentities.md) | | \[optional] |

\| **href** | **String** | URL to the object representation (absolute path). | \[optional]\[readonly] |

\| **id** | **String** | The resource's unique identifier. | \[optional]\[readonly] |

\| **metadata** | [**DatacenterElementMetadata**](/ruby-sdk/models/datacenterelementmetadata.md) | | \[optional] |

\| **properties** | [**ResourceProperties**](/ruby-sdk/models/resourceproperties.md) | | \[optional] |

\| **type** | [**Type**](/ruby-sdk/models/type.md) | The type of the resource. | \[optional] |

## Example

```ruby
require 'ionoscloud'


instance = Ionoscloud::Resource.new(
  entities: null,

  href: https://<API_HOST>/cloudapi/v6/um/resources/datacenter/15f67991-0f51-4efc-a8ad-ef1fb31a480c,

  id: 15f67991-0f51-4efc-a8ad-ef1fb31a480c,

  metadata: null,

  properties: null,

  type: "group"
)
```
