Go to main content

Oracle® ZFS Storage Appliance RESTful API 설명서, 릴리스 OS8.8.x

인쇄 보기 종료

업데이트 날짜: 2021년 8월
 
 

스크립트 업로드 및 실행

어플라이언스에서 스크립트를 업로드 및 실행합니다.

루트 사용자는 어플라이언스로 업로드된 모든 스크립트를 확인하고 이에 액세스할 수 있습니다. 비루트 사용자는 자신의 스크립트만 확인하고 이에 액세스할 수 있습니다.

스크립트 작성에 대한 자세한 내용은 Working with CLI Scripting in Oracle ZFS Storage Appliance Administration Guide, Release OS8.8.x을 참조하십시오.

이 스크립트는 어플라이언스의 모든 공유를 나열합니다.

요청 예:

$ curl -kv --user root:pw --data-binary @listShares.aksh \
  https://hostname:215/api/workflow/v1/scripts

POST /api/workflow/v1/scripts HTTP/1.1
Host: zfs-storage.example.com:215
Authorization: Basic Tm8gcGVla2luZyE=
User-Agent: curl/7.45.0
Accept: */*
Content-Length: 12
Content-Type: application/x-www-form-urlencoded

결과 예:

HTTP/1.1 201 Created
Date: Mon, 27 Mar 2017 22:16:38 GMT
X-Zfssa-Workflow-Api: 1.1
X-Zfssa-Version: user/generic@2017.02.27,1-0
X-Zfssa-Api-Version: 1.0
Content-Type: plain/text; charset=utf-8
Transfer-Encoding: chunked

default
share1
share2
fs1
lun1