PATCH /image/{uuid}

PATCH /image/{uuid}

/image/{uuid}

Request
URI
PATCH
https://{api_host}/api/image/{uuid}
COPY
Path Parameters
string
uuid
Required

UUID of the object to fetch

Query Parameters
string
name
Optional

object name

Header Parameters
string
X-Avi-Tenant
Optional

Avi Tenant Header

string
X-Avi-Tenant-UUID
Optional

Avi Tenant Header UUID

string
X-Avi-Version
Required

The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.

string
X-CSRFToken
Optional

Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.


Request Body

Image object creation

Image of type(s) application/json
Optional

Show optional properties

{
    "name": "string"
}
{
    "_last_modified": "string",
    "cloud_info_values": [
        {
            "cloud_data_values": [
                {
                    "key": "string",
                    "values": [
                        "string"
                    ]
                }
            ],
            "cloud_name": "string"
        }
    ],
    "controller_info": {
        "build": {
            "build_no": 0,
            "date": "string",
            "min_version": "string",
            "patch_version": "string",
            "product": "string",
            "product_name": "string",
            "remote_image_ref": "string",
            "tag": "string",
            "version": "string"
        },
        "hash": "string",
        "patch": {
            "patch_type": "string",
            "reboot": false,
            "reboot_list": [
                {
                    "patch_version": "string",
                    "reboot": false
                }
            ]
        },
        "path": "string"
    },
    "controller_patch_name": "string",
    "controller_patch_ref": "string",
    "duration": 0,
    "end_time": "string",
    "events": [
        {
            "nodes_events": [
                {
                    "duration": 0,
                    "end_time": "string",
                    "ip": {
                        "addr": "string",
                        "type": "string"
                    },
                    "message": "string",
                    "start_time": "string",
                    "status": "string",
                    "sub_tasks": [
                        "string"
                    ]
                }
            ],
            "sub_events": [
                {
                    "duration": 0,
                    "end_time": "string",
                    "ip": {
                        "addr": "string",
                        "type": "string"
                    },
                    "message": "string",
                    "start_time": "string",
                    "status": "string",
                    "sub_tasks": [
                        "string"
                    ]
                }
            ],
            "task_name": "string"
        }
    ],
    "fips_mode_transition_applicable": false,
    "img_state": {
        "last_changed_time": {
            "secs": 0,
            "usecs": 0
        },
        "reason": "string",
        "state": "string"
    },
    "migrations": {
        "api_version": "string",
        "controller_host_min_free_disk_size": 0,
        "controller_min_cores": 0,
        "controller_min_docker_version": "string",
        "controller_min_free_disk_size": 0,
        "controller_min_memory": 0,
        "controller_min_total_disk": 0,
        "max_active_versions": 0,
        "min_supported_api_version": "string",
        "podman_controller_host_min_free_disk_size": 0,
        "podman_se_host_min_free_disk_size": 0,
        "rollback_controller_disk_space": 0,
        "rollback_se_disk_space": 0,
        "se_host_min_free_disk_size": 0,
        "se_min_cores": 0,
        "se_min_free_disk_size": 0,
        "se_min_memory": 0,
        "se_min_total_disk": 0,
        "versions": [
            "string"
        ]
    },
    "name": "string",
    "progress": 0,
    "se_info": {
        "build": {
            "build_no": 0,
            "date": "string",
            "min_version": "string",
            "patch_version": "string",
            "product": "string",
            "product_name": "string",
            "remote_image_ref": "string",
            "tag": "string",
            "version": "string"
        },
        "hash": "string",
        "patch": {
            "patch_type": "string",
            "reboot": false,
            "reboot_list": [
                {
                    "patch_version": "string",
                    "reboot": false
                }
            ]
        },
        "path": "string"
    },
    "se_patch_name": "string",
    "se_patch_ref": "string",
    "start_time": "string",
    "tasks_completed": 0,
    "tenant_ref": "string",
    "total_tasks": 0,
    "type": "string",
    "uber_bundle": false,
    "url": "string",
    "uuid": "string"
}
Responses
200

OK

Returns Image of type(s) application/json
"Image Object"
string
_last_modified
Optional

UNIX time since epoch in microseconds. Units(MICROSECONDS).

array of object
cloud_info_values
Optional

This field describes the cloud info specific to the base image. Field introduced in 20.1.1. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

object
controller_info
Optional

controller_info

string
controller_patch_name
Optional

Mandatory Controller patch name that is applied along with this base image. Field introduced in 18.2.10, 20.1.1. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
controller_patch_ref
Optional

It references the controller-patch associated with the Uber image. It is a reference to an object of type Image. Field introduced in 18.2.8, 20.1.1. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

integer As uint32 As uint32
duration
Optional

Time taken to upload the image in seconds. Field introduced in 21.1.3. Unit is SEC. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.

string
end_time
Optional

Image upload end time. Field introduced in 21.1.3. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.

array of object
events
Optional

Image events for image upload operation. Field introduced in 21.1.3. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.

boolean
fips_mode_transition_applicable
Optional
Constraints: default: true

Specifies whether FIPS mode can be enabled on this image. Field introduced in 30.1.1. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.

object
img_state
Optional

img_state

object
migrations
Optional

migrations

string
name
Required

Name of the image. Field introduced in 18.2.6. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

integer As uint32 As uint32
progress
Optional

Image upload progress which holds value between 0-100. Allowed values are 0-100. Field introduced in 21.1.3. Unit is PERCENT. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.

object
se_info
Optional

se_info

string
se_patch_name
Optional

Mandatory ServiceEngine patch name that is applied along with this base image. Field introduced in 18.2.10, 20.1.1. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
se_patch_ref
Optional

It references the Service Engine patch associated with the Uber Image. It is a reference to an object of type Image. Field introduced in 18.2.8, 20.1.1. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
start_time
Optional

Image upload start time. Field introduced in 21.1.3. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.

integer As int32 As int32
tasks_completed
Optional

Completed set of tasks for Image upload. Field introduced in 21.1.3. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.

string
tenant_ref
Optional

Tenant that this object belongs to. It is a reference to an object of type Tenant. Field introduced in 18.2.6. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

integer As int32 As int32
total_tasks
Optional

Total number of tasks for Image upload. Field introduced in 21.1.3. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.

string
type
Optional

Type of the image patch/system. Enum options - IMAGE_TYPE_PATCH, IMAGE_TYPE_SYSTEM, IMAGE_TYPE_MUST_CHECK. Field introduced in 18.2.6. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

boolean
uber_bundle
Optional

Status to check if the image is an uber bundle. Field introduced in 18.2.8, 20.1.1. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.

string
url
Optional

url

string
uuid
Optional

UUID of the image. Field introduced in 18.2.6. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.


401

log in failed

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string"}'