JavaScript is required to for searching.
탐색 링크 건너뛰기
인쇄 보기 종료
Oracle® ZFS Storage Appliance RESTful 응용 프로그램 프로그래밍 인터페이스 설명서
Oracle 기술 네트워크
라이브러리
PDF
인쇄 보기
피드백
search filter icon
search icon

문서 정보

이 설명서 사용

 1 개요

 2 API 작업

 3 경보 서비스 명령

 4 Analytics Services

 5 하드웨어 서비스

 6 로그 명령

 7 네트워크 명령

 8 문제 서비스 명령

 9 역할 서비스

 10 SAN 서비스

 11 서비스 명령

 12 스토리지 서비스

 13 시스템 명령

 14 사용자 서비스

 15 워크플로우 명령

 16 RESTful 클라이언트

Curl Rest 클라이언트

리소스 데이터 가져오기

새 리소스 만들기

기존 리소스 수정

기존 리소스 삭제

Python RESTful 클라이언트

리소스 가져오기

리소스 만들기

리소스 수정

기존 리소스 삭제

리소스 데이터 가져오기

이 예에서는 간단한 HTTP Get 요청을 사용하여 일부 JSON 데이터를 얻는 방법을 보여 줍니다.

> curl --user ${USER}:${PASSWORD} -k -i https://zfssa.example.com:215/api/nas/v1/pools/gold

 HTTP/1.1 200 OK
 Date: Tue, 23 Jul 2013 12:57:02 GMT
 Server: WSGIServer/0.1 Python/2.6.4
 Content-Length: 284
 Content-Type: application/json
 X-Zfs-Sa-Nas-Api: 1.0

{
   "pool": {
      "profile": "mirror",
      "name": "gold",
      "usage": {
         "available": 895468984832.0,
         "total": 895500681216.0,
         "dedupratio": 100,
         "used": 31696384.0
      },
      "peer": "00000000-0000-0000-0000-000000000000",
      "state": "online",
      "owner": "tanana",
      "asn": "314d252e-c42b-e844-dab1-a3bca680b563"
    }
 }