Go to main content
Oracle® ZFS Storage Appliance RESTful API 설명서, 릴리스 OS8.6.x

인쇄 보기 종료

업데이트 날짜: 2016년 9월
 
 

시스템 업데이트 업로드

이 명령은 새 시스템 업데이트 이미지를 업로드합니다.

curl을 사용하여 명령 업로드의 예:

curl --user root:letmein -k --data-binary @nas@2013.08.24,1-0.pkg.gz \
    --header "Content-Type: application/octet-stream" \
    https://zfssa.example.com/api/system/v1/updates

이미지가 업로드되고 압축 해제된 이후 이미지 업데이트의 등록 정보가 반환됩니다. 성공 시 HTTP 상태가 201(Created)로 설정되고 위치 헤더에서 새 이미지의 상대적 위치가 반환됩니다.

결과 예:

HTTP/1.1 201 Created
X-Zfssa-Appliance-Api: 1.0
Content-Length: 541
Content-Type: application/json
Location: /api/system/v1/updates/nas@2013.08.24,1-0

{
    "update": {
        "date": "Sat Aug 24 2013 17:54:23 GMT+0000 (UTC)",
        "href": "/api/system/v1/updates/nas@2013.08.24,1-0",
        "status": "current",
        "version": "2013.08.24,1-0",
        "update_deferred", "on_request"
    }
}