For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI referenceRelease notes
DocumentationAPI referenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTCancel an action execution
        • POSTCreate a new instance group
        • POSTCreate a new resource model
        • DELDelete a resource model
        • DELDelete an instance group
        • GETExport a resource instance
        • GETExport a resource model
        • GETGet a resource model based on ID
        • GETGet action execution record
        • GETGet instance group
        • GETGet multiple instance groups
        • GETGet resource instance
        • POSTImport a resource model
        • POSTImport an instance into a resource
        • POSTPerforms edits to a resource model
        • POSTRun a resource action
        • POSTRun a resource action against multiple instances
        • GETSearch resource action history documents
        • GETSearch resource instances
        • GETSearch resource models
        • PATCHUpdate a instance group
        • PUTUpdate a resource model
        • PUTUpdate resource instance
        • POSTValidate the actions defined on a resource model
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceLifecycle Manager

Import a resource model

POST
http://localhost:3000/lifecycle-manager/resources/import
POST
/lifecycle-manager/resources/import
$curl -X POST http://localhost:3000/lifecycle-manager/resources/import \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{
> "model": {
> "name": "VLAN Service",
> "description": "This resource model represents something we use on a day-to-day basis.",
> "schema": null,
> "created": null,
> "createdBy": null,
> "lastUpdated": null,
> "lastUpdatedBy": null
> }
>}'
1{
2 "data": {
3 "_id": "62a1f3d2ebedfc54e6e0065c",
4 "name": "VLAN Service"
5 },
6 "message": "Successfully created the requested item",
7 "metadata": {}
8}
Imports a resource model.
Was this page helpful?
Previous

Import an instance into a resource

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Request

importParameters
modelobjectRequired
overwritebooleanOptional

Response

response
dataobject

Errors

500
Internal Server Error