I can do incus profile create foo --project bar
.
However, I can’t seem to assign a project anywhere on profile creation using the API.
For example, in Go:
profileReq := api.ProfilesPost{
Name: opts.Username,
ProfilePut: api.ProfilePut{
Description: "...",
Devices: map[string]map[string]string{
"root": {
"type": "disk",
"pool": "foo",
"path": "/",
},
"eth0": {
"name": "eth0",
"type": "nic",
"network": "baz",
},
},
},
}
if err := conn.CreateProfile(profileReq); err != nil {
return conn, err
}
api.ProfilesPost does not expose a Project: ...
?