VMware Cloud Community
miskaste
Contributor
Contributor
Jump to solution

vCloud director 9.7 API - create new logical VM group

Hi,

I started to explorer API and did some basic stuff. Now I want to create new VM logical group, but I'm out of understanding.

According VMware documentation syntax should be like this:

/cloudapi/1.0.0/logicalVmGroups

{
 
"id": "string",
 
"description": "string",
 
"name": "string",
 
"namedVmGroupReferences": [
  
{
  
"name": "string",
  
"id": "string"
  
}
 
]
}

I'm not familiar with VMware API and confused what I should put in ID? Searched API documentation, but can't find answer.

Thanks!

Reply
0 Kudos
1 Solution

Accepted Solutions
Raducanu
Enthusiast
Enthusiast
Jump to solution

When creating a new vmGroup, you do not have to set an ID.

POST:

{

  "description": "string",

  "name": "TEST",

  "namedVmGroupReferences": []

}

will create an empty vmGoup. In the response you see the new created vmGroup and the generated id

View solution in original post

Reply
0 Kudos
2 Replies
Raducanu
Enthusiast
Enthusiast
Jump to solution

When creating a new vmGroup, you do not have to set an ID.

POST:

{

  "description": "string",

  "name": "TEST",

  "namedVmGroupReferences": []

}

will create an empty vmGoup. In the response you see the new created vmGroup and the generated id

Reply
0 Kudos
miskaste
Contributor
Contributor
Jump to solution

Oh my god, how simple it was !

Thank you!

Reply
0 Kudos