작업
작업 실행
Qiskit Runtime 의 기본 함수를 호출합니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.direct-access-job.create
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.direct-access-job.create
입력
이름, 유형 | 설명 |
|---|---|
backend 필수 string | 백엔드 이름 예: "ibm_rensselaer" |
id 필수 string | 작업 식별자. UUID로 권장됨 |
log_level string | 프로그램의 로깅 수준 가능한 값: infodebugwarningerrorcritical기본값: warning |
program_id 필수 string | 프로그램 ID 예: "sampler" |
storage 필수 object | |
timeout_secs 필수 integer | 작업이 시간 초과되어 취소되기까지의 시간(초). 시스템 실행 시간(벽시계 시간이 아님)을 기준으로 합니다. 시스템 실행 시간은 시스템이 귀하의 작업을 처리하는 데 할당된 시간입니다. |
curl -X POST \
'<YOUR_QSA_URL>/v1/jobs' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"id":"example","program_id":"sampler","backend":"ibm_rensselaer","timeout_secs":1,"storage":{}}'import requests
response = requests.request(
"POST",
"<YOUR_QSA_URL>/v1/jobs",
headers={
"Accept": "application/json",
"Content-Type": "application/json"
},
data="{\"id\":\"example\",\"program_id\":\"sampler\",\"backend\":\"ibm_rensselaer\",\"timeout_secs\":1,\"storage\":{}}"
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 204 | 작업이 성공적으로 제출되었을 때 반환됨. |
| 400 | 잘못된 입력이 수신되었을 때 반환됩니다. |
| 401 | 인증에 실패했을 때 반환됩니다. |
| 404 | 백엔드를 찾을 수 없을 때 반환됨 |
| 408 | 요청을 읽는 데 너무 오래 걸렸을 때 반환됨. |
| 409 | 동일한 작업 ID를 가진 중복 작업이 제출되었을 때 반환됩니다. |
| 413 | 요청 본문이 너무 클 때 반환됩니다. |
| 422 | 요청 유효성 검사가 실패했을 때 반환됩니다. 오류 메시지에는 특정 유효성 검사 오류에 대한 세부 정보가 포함되어 있습니다. |
| 423 | 요청된 백엔드는 예약되어 있으며 예약 범위를 벗어난 작업은 실행할 수 없습니다. |
| 429 | 백엔드 동시 작업 제한에 도달했을 때 반환됩니다. 기존 작업이 종료된 후 다시 시도하고, 종료된 작업을 삭제하여 추가 작업을 제출하십시오. |
작업 가져오기
현재 인증된 클라이언트가 제출한 모든 작업 목록을 생성 시간 순으로 오름차순으로 정렬하여 가져옵니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.direct-access-job.list
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.direct-access-job.list
입력
정보 |
|---|
| 이 엔드포인트는 입력을 허용하지 않습니다. |
curl -X GET \
'<YOUR_QSA_URL>/v1/jobs' \
-H 'Accept: application/json'import requests
response = requests.request(
"GET",
"<YOUR_QSA_URL>/v1/jobs",
headers={
"Accept": "application/json"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 200 | 작업이 성공적으로 검색되었을 때 반환됨. |
| 401 | 인증에 실패했을 때 반환됩니다. |
{
"jobs": [
{
"backend": "ibm_rensselaer",
"created_time": "example",
"end_time": "example",
"id": "example",
"log_level": "info",
"metrics": {
"circuits_execution_time_ns": 1,
"timestamps": {
"created": "example",
"finished": "example"
}
},
"program_id": "sampler",
"reason_code": 1,
"reason_message": "example",
"reason_solution": "example",
"status": "Running",
"storage": {
"input": {
"bucket_crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket",
"object_name": "example",
"presigned_url": "example",
"region": "us-east",
"region_type": "regional",
"runtime_instance_crn": "crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::",
"type": "s3_compatible"
},
"logs": {
"bucket_crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket",
"object_name": "example",
"presigned_url": "example",
"region": "us-east",
"region_type": "regional",
"runtime_instance_crn": "crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::",
"type": "s3_compatible"
},
"results": {
"bucket_crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket",
"object_name": "example",
"presigned_url": "example",
"region": "us-east",
"region_type": "regional",
"runtime_instance_crn": "crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::",
"type": "s3_compatible"
}
},
"timeout_secs": 1,
"usage": {
"quantum_nanoseconds": 1
}
}
]
}{
"additionalProperties": false,
"properties": {
"jobs": {
"items": {
"additionalProperties": false,
"properties": {
"backend": {
"description": "백엔드 이름",
"examples": [
"ibm_rensselaer"
],
"type": "string"
},
"created_time": {
"description": "작업 생성 시간.",
"format": "date-time",
"type": "string"
},
"end_time": {
"description": "작업이 종단 상태에 도달한 시간.",
"format": "date-time",
"type": "string"
},
"id": {
"description": "작업 고유 식별자 (UUID V4 )",
"type": "string"
},
"log_level": {
"description": "프로그램의 로깅 수준",
"enum": [
"info",
"debug",
"warning",
"error",
"critical"
],
"type": "string"
},
"metrics": {
"description": "작업 실행 지표.",
"additionalProperties": false,
"properties": {
"circuits_execution_time_ns": {
"description": "QPU에서 회로 전체 실행 시간(나노초 단위).",
"format": "int64",
"type": "integer"
},
"timestamps": {
"description": "직무 수명 주기 타임스탬프.",
"additionalProperties": false,
"properties": {
"created": {
"description": "직무가 생성된 시점.",
"format": "date-time",
"type": "string"
},
"finished": {
"description": "업무가 최종 단계에 도달한 시점.",
"format": "date-time",
"type": "string"
}
},
"required": [
"created"
],
"type": "object"
}
},
"required": [
"timestamps"
],
"type": "object"
},
"program_id": {
"description": "프로그램 ID",
"examples": [
"sampler"
],
"type": "string"
},
"reason_code": {
"description": "작업이 실패했을 때 이 필드에는 숫자 오류 코드가 설정됩니다.",
"format": "int64",
"type": "integer"
},
"reason_message": {
"description": "작업이 특정 상태에 있는 이유를 설명하는 사유 메시지. 예: 작업이 실패한 경우, 이 필드에는 오류 메시지가 표시됩니다.",
"type": "string"
},
"reason_solution": {
"description": "실패 시 취해야 할 다음 단계.",
"type": "string"
},
"status": {
"description": "작업의 현재 상태입니다.",
"enum": [
"Running",
"Completed",
"Cancelled",
"Failed"
],
"type": "string"
},
"storage": {
"additionalProperties": false,
"properties": {
"input": {
"description": "입력이 읽힐 위치. 기본 프로그램에 필수적입니다.",
"additionalProperties": false,
"properties": {
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대한 완전히 지정된 CRN bucket\\_crn은 type이 ibmcloud_cos 일 때 필수입니다",
"examples": [
"crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
],
"type": "string"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷 내 객체의 이름/ID. ibmcloud_cos 유형일 때 object\\_name이 필요합니다",
"type": "string"
},
"presigned_url": {
"description": "작업 매개변수를 읽거나 결과 및 로그를 기록하기 위한 사전 서명된 GET 또는 PUT URL. presigned\\_url은 type이 s3_compatible 일 때 필수입니다",
"type": "string"
},
"region": {
"description": "ibmcloud_cos 유형일 때 region이 필요합니다",
"examples": [
"us-east"
],
"pattern": "^[a-zA-Z-]+$",
"type": "string"
},
"region_type": {
"description": "IBM Cloud Object Storage ( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )에 정의된 대로 지역, 크로스 지역 또는 단일 데이터 센터. region\\_type은 type이 ibmcloud_cos 일 때 필수입니다",
"enum": [
"regional",
"cross-region",
"single-site"
],
"type": "string"
},
"runtime_instance_crn": {
"description": "제공된 저장 위치에 접근 권한이 있는 런타임 인스턴스의 서비스 CRN. runtime\\_instance\\_crn은 type이 ibmcloud_cos 일 때 필요합니다",
"examples": [
"crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::"
],
"type": "string"
},
"type": {
"enum": [
"s3_compatible"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"logs": {
"description": "작업 로그가 저장될 위치.",
"additionalProperties": false,
"properties": {
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대한 완전히 지정된 CRN bucket\\_crn은 type이 ibmcloud_cos 일 때 필수입니다",
"examples": [
"crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
],
"type": "string"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷 내 객체의 이름/ID. ibmcloud_cos 유형일 때 object\\_name이 필요합니다",
"type": "string"
},
"presigned_url": {
"description": "작업 매개변수를 읽거나 결과 및 로그를 기록하기 위한 사전 서명된 GET 또는 PUT URL. presigned\\_url은 type이 s3_compatible 일 때 필수입니다",
"type": "string"
},
"region": {
"description": "ibmcloud_cos 유형일 때 region이 필요합니다",
"examples": [
"us-east"
],
"pattern": "^[a-zA-Z-]+$",
"type": "string"
},
"region_type": {
"description": "IBM Cloud Object Storage ( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )에 정의된 대로 지역, 크로스 지역 또는 단일 데이터 센터. region\\_type은 type이 ibmcloud_cos 일 때 필수입니다",
"enum": [
"regional",
"cross-region",
"single-site"
],
"type": "string"
},
"runtime_instance_crn": {
"description": "제공된 저장 위치에 접근 권한이 있는 런타임 인스턴스의 서비스 CRN. runtime\\_instance\\_crn은 type이 ibmcloud_cos 일 때 필요합니다",
"examples": [
"crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::"
],
"type": "string"
},
"type": {
"enum": [
"s3_compatible"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"results": {
"description": "작업 결과가 저장될 위치. 기본 프로그램에 필수적입니다.",
"additionalProperties": false,
"properties": {
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대한 완전히 지정된 CRN bucket\\_crn은 type이 ibmcloud_cos 일 때 필수입니다",
"examples": [
"crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
],
"type": "string"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷 내 객체의 이름/ID. ibmcloud_cos 유형일 때 object\\_name이 필요합니다",
"type": "string"
},
"presigned_url": {
"description": "작업 매개변수를 읽거나 결과 및 로그를 기록하기 위한 사전 서명된 GET 또는 PUT URL. presigned\\_url은 type이 s3_compatible 일 때 필수입니다",
"type": "string"
},
"region": {
"description": "ibmcloud_cos 유형일 때 region이 필요합니다",
"examples": [
"us-east"
],
"pattern": "^[a-zA-Z-]+$",
"type": "string"
},
"region_type": {
"description": "IBM Cloud Object Storage ( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )에 정의된 대로 지역, 크로스 지역 또는 단일 데이터 센터. region\\_type은 type이 ibmcloud_cos 일 때 필수입니다",
"enum": [
"regional",
"cross-region",
"single-site"
],
"type": "string"
},
"runtime_instance_crn": {
"description": "제공된 저장 위치에 접근 권한이 있는 런타임 인스턴스의 서비스 CRN. runtime\\_instance\\_crn은 type이 ibmcloud_cos 일 때 필요합니다",
"examples": [
"crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::"
],
"type": "string"
},
"type": {
"enum": [
"s3_compatible"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"type": "object"
},
"timeout_secs": {
"description": "작업이 시간 초과되어 취소되기까지의 시간(초).",
"format": "int64",
"type": "integer"
},
"usage": {
"description": "작업 사용 내역.",
"additionalProperties": false,
"properties": {
"quantum_nanoseconds": {
"description": "양자 장치에서의 실행 시간 (나노초 단위)",
"format": "int64",
"type": "integer"
}
},
"type": "object"
}
},
"required": [
"id",
"program_id",
"backend",
"status",
"created_time"
],
"type": "object"
},
"type": [
"array",
"null"
]
}
},
"required": [
"jobs"
],
"type": "object"
}ID로 일자리 찾기
현재 인증된 클라이언트에 대해 고유 식별자를 사용하여 단일 작업을 가져옵니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.direct-access-job.read
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.direct-access-job.read
입력
이름, 유형 | 설명 |
|---|---|
job-id 필수 string |
curl -X GET \
'<YOUR_QSA_URL>/v1/jobs/{job-id}' \
-H 'Accept: application/json'import requests
response = requests.request(
"GET",
"<YOUR_QSA_URL>/v1/jobs/{job-id}",
headers={
"Accept": "application/json"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 200 | 작업이 성공적으로 검색되었습니다. |
| 401 | 인증에 실패했을 때 반환됩니다. |
| 404 | 인증된 클라이언트에 속한 제공된 ID에 대한 작업이 발견되지 않았습니다. |
{
"backend": "ibm_rensselaer",
"created_time": "example",
"end_time": "example",
"id": "example",
"log_level": "info",
"metrics": {
"circuits_execution_time_ns": 1,
"timestamps": {
"created": "example",
"finished": "example"
}
},
"program_id": "sampler",
"reason_code": 1,
"reason_message": "example",
"reason_solution": "example",
"status": "Running",
"storage": {
"input": {
"bucket_crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket",
"object_name": "example",
"presigned_url": "example",
"region": "us-east",
"region_type": "regional",
"runtime_instance_crn": "crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::",
"type": "s3_compatible"
},
"logs": {
"bucket_crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket",
"object_name": "example",
"presigned_url": "example",
"region": "us-east",
"region_type": "regional",
"runtime_instance_crn": "crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::",
"type": "s3_compatible"
},
"results": {
"bucket_crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket",
"object_name": "example",
"presigned_url": "example",
"region": "us-east",
"region_type": "regional",
"runtime_instance_crn": "crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::",
"type": "s3_compatible"
}
},
"timeout_secs": 1,
"usage": {
"quantum_nanoseconds": 1
}
}{
"additionalProperties": false,
"properties": {
"backend": {
"description": "백엔드 이름",
"examples": [
"ibm_rensselaer"
],
"type": "string"
},
"created_time": {
"description": "작업 생성 시간.",
"format": "date-time",
"type": "string"
},
"end_time": {
"description": "작업이 종단 상태에 도달한 시간.",
"format": "date-time",
"type": "string"
},
"id": {
"description": "작업 고유 식별자 (UUID V4 )",
"type": "string"
},
"log_level": {
"description": "프로그램의 로깅 수준",
"enum": [
"info",
"debug",
"warning",
"error",
"critical"
],
"type": "string"
},
"metrics": {
"description": "작업 실행 지표.",
"additionalProperties": false,
"properties": {
"circuits_execution_time_ns": {
"description": "QPU에서 회로 전체 실행 시간(나노초 단위).",
"format": "int64",
"type": "integer"
},
"timestamps": {
"description": "직무 수명 주기 타임스탬프.",
"additionalProperties": false,
"properties": {
"created": {
"description": "직무가 생성된 시점.",
"format": "date-time",
"type": "string"
},
"finished": {
"description": "업무가 최종 단계에 도달한 시점.",
"format": "date-time",
"type": "string"
}
},
"required": [
"created"
],
"type": "object"
}
},
"required": [
"timestamps"
],
"type": "object"
},
"program_id": {
"description": "프로그램 ID",
"examples": [
"sampler"
],
"type": "string"
},
"reason_code": {
"description": "작업이 실패했을 때 이 필드에는 숫자 오류 코드가 설정됩니다.",
"format": "int64",
"type": "integer"
},
"reason_message": {
"description": "작업이 특정 상태에 있는 이유를 설명하는 사유 메시지. 예: 작업이 실패한 경우, 이 필드에는 오류 메시지가 표시됩니다.",
"type": "string"
},
"reason_solution": {
"description": "실패 시 취해야 할 다음 단계.",
"type": "string"
},
"status": {
"description": "작업의 현재 상태입니다.",
"enum": [
"Running",
"Completed",
"Cancelled",
"Failed"
],
"type": "string"
},
"storage": {
"additionalProperties": false,
"properties": {
"input": {
"description": "입력이 읽힐 위치. 기본 프로그램에 필수적입니다.",
"additionalProperties": false,
"properties": {
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대한 완전히 지정된 CRN bucket\\_crn은 type이 ibmcloud_cos 일 때 필수입니다",
"examples": [
"crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
],
"type": "string"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷 내 객체의 이름/ID. ibmcloud_cos 유형일 때 object\\_name이 필요합니다",
"type": "string"
},
"presigned_url": {
"description": "작업 매개변수를 읽거나 결과 및 로그를 기록하기 위한 사전 서명된 GET 또는 PUT URL. presigned\\_url은 type이 s3_compatible 일 때 필수입니다",
"type": "string"
},
"region": {
"description": "ibmcloud_cos 유형일 때 region이 필요합니다",
"examples": [
"us-east"
],
"pattern": "^[a-zA-Z-]+$",
"type": "string"
},
"region_type": {
"description": "IBM Cloud Object Storage ( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )에 정의된 대로 지역, 크로스 지역 또는 단일 데이터 센터. region\\_type은 type이 ibmcloud_cos 일 때 필수입니다",
"enum": [
"regional",
"cross-region",
"single-site"
],
"type": "string"
},
"runtime_instance_crn": {
"description": "제공된 저장 위치에 접근 권한이 있는 런타임 인스턴스의 서비스 CRN. runtime\\_instance\\_crn은 type이 ibmcloud_cos 일 때 필요합니다",
"examples": [
"crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::"
],
"type": "string"
},
"type": {
"enum": [
"s3_compatible"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"logs": {
"description": "작업 로그가 저장될 위치.",
"additionalProperties": false,
"properties": {
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대한 완전히 지정된 CRN bucket\\_crn은 type이 ibmcloud_cos 일 때 필수입니다",
"examples": [
"crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
],
"type": "string"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷 내 객체의 이름/ID. ibmcloud_cos 유형일 때 object\\_name이 필요합니다",
"type": "string"
},
"presigned_url": {
"description": "작업 매개변수를 읽거나 결과 및 로그를 기록하기 위한 사전 서명된 GET 또는 PUT URL. presigned\\_url은 type이 s3_compatible 일 때 필수입니다",
"type": "string"
},
"region": {
"description": "ibmcloud_cos 유형일 때 region이 필요합니다",
"examples": [
"us-east"
],
"pattern": "^[a-zA-Z-]+$",
"type": "string"
},
"region_type": {
"description": "IBM Cloud Object Storage ( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )에 정의된 대로 지역, 크로스 지역 또는 단일 데이터 센터. region\\_type은 type이 ibmcloud_cos 일 때 필수입니다",
"enum": [
"regional",
"cross-region",
"single-site"
],
"type": "string"
},
"runtime_instance_crn": {
"description": "제공된 저장 위치에 접근 권한이 있는 런타임 인스턴스의 서비스 CRN. runtime\\_instance\\_crn은 type이 ibmcloud_cos 일 때 필요합니다",
"examples": [
"crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::"
],
"type": "string"
},
"type": {
"enum": [
"s3_compatible"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"results": {
"description": "작업 결과가 저장될 위치. 기본 프로그램에 필수적입니다.",
"additionalProperties": false,
"properties": {
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대한 완전히 지정된 CRN bucket\\_crn은 type이 ibmcloud_cos 일 때 필수입니다",
"examples": [
"crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
],
"type": "string"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷 내 객체의 이름/ID. ibmcloud_cos 유형일 때 object\\_name이 필요합니다",
"type": "string"
},
"presigned_url": {
"description": "작업 매개변수를 읽거나 결과 및 로그를 기록하기 위한 사전 서명된 GET 또는 PUT URL. presigned\\_url은 type이 s3_compatible 일 때 필수입니다",
"type": "string"
},
"region": {
"description": "ibmcloud_cos 유형일 때 region이 필요합니다",
"examples": [
"us-east"
],
"pattern": "^[a-zA-Z-]+$",
"type": "string"
},
"region_type": {
"description": "IBM Cloud Object Storage ( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )에 정의된 대로 지역, 크로스 지역 또는 단일 데이터 센터. region\\_type은 type이 ibmcloud_cos 일 때 필수입니다",
"enum": [
"regional",
"cross-region",
"single-site"
],
"type": "string"
},
"runtime_instance_crn": {
"description": "제공된 저장 위치에 접근 권한이 있는 런타임 인스턴스의 서비스 CRN. runtime\\_instance\\_crn은 type이 ibmcloud_cos 일 때 필요합니다",
"examples": [
"crn:v1:bluemix:public:quantum-computing:us-east:a/abc123:abc123::"
],
"type": "string"
},
"type": {
"enum": [
"s3_compatible"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"type": "object"
},
"timeout_secs": {
"description": "작업이 시간 초과되어 취소되기까지의 시간(초).",
"format": "int64",
"type": "integer"
},
"usage": {
"description": "작업 사용 내역.",
"additionalProperties": false,
"properties": {
"quantum_nanoseconds": {
"description": "양자 장치에서의 실행 시간 (나노초 단위)",
"format": "int64",
"type": "integer"
}
},
"type": "object"
}
},
"required": [
"id",
"program_id",
"backend",
"status",
"created_time"
],
"type": "object"
}작업 삭제
작업이 종료된 경우 해당 작업을 삭제합니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.direct-access-job.delete
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.direct-access-job.delete
입력
이름, 유형 | 설명 |
|---|---|
job-id 필수 string |
curl -X DELETE \
'<YOUR_QSA_URL>/v1/jobs/{job-id}' \
-H 'Accept: application/json'import requests
response = requests.request(
"DELETE",
"<YOUR_QSA_URL>/v1/jobs/{job-id}",
headers={
"Accept": "application/json"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 204 | 작업이 성공적으로 삭제되었을 때 반환됨. |
| 401 | 인증에 실패했을 때 반환됩니다. |
| 404 | 작업이 발견되지 않을 때 반환됩니다. |
| 409 | 작업이 아직 종료되지 않았고 삭제하기 전에 취소해야 할 때 반환됩니다. |
작업 취소
작업이 아직 종료되지 않은 경우 작업을 취소합니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.direct-access-job.cancel
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.direct-access-job.cancel
입력
이름, 유형 | 설명 |
|---|---|
job-id 필수 string |
curl -X POST \
'<YOUR_QSA_URL>/v1/jobs/{job-id}/cancel' \
-H 'Accept: application/json'import requests
response = requests.request(
"POST",
"<YOUR_QSA_URL>/v1/jobs/{job-id}/cancel",
headers={
"Accept": "application/json"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 204 | 작업 취소 요청이 성공적으로 제출되었을 때 반환됩니다. |
| 401 | 인증에 실패했을 때 반환됩니다. |
| 404 | 작업이 발견되지 않을 때 반환됩니다. |
| 409 | 작업이 이미 종료되어 취소할 수 없을 때 반환됩니다. |
| 500 | 내부 서버 오류가 발생했을 때 반환됩니다. |