vcenter namespaces instances: update spec
The
update_spec
structure contains the specification required to update the configuration on the namespace. This structure is applied partially, and only the specified fields will replace or modify their existing counterparts.Representation:
{
"description" : "string",
"access_list" : [
{
"role" : "EDIT",
"subject_type" : "USER",
"subject" : "string",
"domain" : "string"
},
{
"role" : "EDIT",
"subject_type" : "USER",
"subject" : "string",
"domain" : "string"
}
],
"storage_specs" : [
{
"limit" : 1,
"policy" : "obj-103"
},
{
"limit" : 1,
"policy" : "obj-103"
}
],
"resource_spec" : {
"@class" : "dynamic_structure"
}
}
"description" : "string",
"access_list" : [
{
"role" : "EDIT",
"subject_type" : "USER",
"subject" : "string",
"domain" : "string"
},
{
"role" : "EDIT",
"subject_type" : "USER",
"subject" : "string",
"domain" : "string"
}
],
"storage_specs" : [
{
"limit" : 1,
"policy" : "obj-103"
},
{
"limit" : 1,
"policy" : "obj-103"
}
],
"resource_spec" : {
"@class" : "dynamic_structure"
}
}
Attributes:
Name | Type | Description |
---|---|---|
Required | ||
access_list[].subject_type | string | Type of the subject. Lists the types of subjects who can be associated with a role on the namespace. Value is one of:USER: Single user. GROUP: Group of users. |
access_list[].subject | string | Name of the subject. |
access_list[].domain | string | Domain of the subject. |
access_list[].role | string | Role of the subject on the namespace instance. Lists the default roles which can be associated with a subject on a domain on the namespace. Value is one of: EDIT: This role allows modification of the namespace. VIEW: This is a read-only role on the namespace. |
storage_specs[].policy | string | ID of the storage policy. A Kubernetes storage class is created for this storage policy if it does not exist already. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: SpsStorageProfile . When operations return a value of this structure as a result, the field will be an identifier for the resource type: SpsStorageProfile . |
Optional | ||
description | string | Description for the namespace. Optional. If unset, the description of the namespace will not be modified. |
resource_spec | object | Resource quota updates on the namespace. Refer to vcenter.namespace_management.namespace_resource_options.info.update_resource_quota_type and use get for retrieving the type for the value for this field. For an example of this, see vcenter.namespaces.resource_quota_options_v1_update. Optional. If unset, the resource constraints on the namespace will not be modified. |
access_list | access[] | Access control associated with the namespace. Optional. If unset, access controls on the namespace will not be modified. Existing pods from users will continue to run. |
storage_specs | storage_spec[] | Storage associated with the namespace. Optional. If unset, storage policies and their limit will not be modified. Pods which are already using persistent storage from the earlier version of storage policies will be able to access them till the datastores are attached to the worker nodes. |
storage_specs[].limit | long | The maximum amount of storage (in mebibytes) which can be utilized by the namespace for this specification. Optional. If unset, no limits are placed. |