Jobs - List By Agent

작업 목록을 가져옵니다.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs?api-version=2021-11-01

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
jobAgentName
path True

string

작업 에이전트의 이름입니다.

resourceGroupName
path True

string

리소스를 포함하는 리소스 그룹의 이름입니다. Azure 리소스 관리자 API 또는 포털에서 이 값을 가져올 수 있습니다.

serverName
path True

string

서버의 이름입니다.

subscriptionId
path True

string

Azure 구독을 식별하는 구독 ID입니다.

api-version
query True

string

요청에 사용할 API 버전입니다.

응답

Name 형식 Description
200 OK

JobListResult

작업 목록을 성공적으로 검색했습니다.

Other Status Codes

오류 응답: ***

  • 404 JobAgentNotFound - 지정된 작업 에이전트가 지정된 논리 서버에 없습니다.

  • 404 SubscriptionDoesNotHaveServer - 요청된 서버를 찾을 수 없습니다.

  • 404 ServerNotInSubscriptionResourceGroup - 지정된 서버가 지정된 리소스 그룹 및 구독에 없습니다.

예제

List jobs in a job agent

Sample Request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs?api-version=2021-11-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1",
      "name": "job1",
      "type": "Microsoft.Sql/servers/jobAccounts/jobs",
      "properties": {
        "description": "my favourite job",
        "version": 0,
        "schedule": {
          "startTime": "2015-09-24T18:30:01Z",
          "endTime": "2015-09-24T23:59:59Z",
          "type": "Recurring",
          "interval": "PT5M",
          "enabled": true
        }
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job3",
      "name": "job3",
      "type": "Microsoft.Sql/servers/jobAccounts/jobs",
      "properties": {
        "description": "this job will be scheduled once",
        "version": 1,
        "schedule": {
          "startTime": "2017-07-01T03:45:00Z",
          "endTime": "2017-12-27T06:00:00Z",
          "type": "Once",
          "enabled": true
        }
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job2",
      "name": "job2",
      "type": "Microsoft.Sql/servers/jobAccounts/jobs",
      "properties": {
        "description": "this job will never be automatically scheduled",
        "version": 1,
        "schedule": {
          "startTime": "2017-07-01T03:45:00Z",
          "endTime": "2017-12-27T06:00:00Z",
          "type": "Once",
          "enabled": false
        }
      }
    }
  ]
}

정의

Name Description
Job

작업입니다.

JobListResult

작업 목록입니다.

JobSchedule

작업의 속성 예약

JobScheduleType

일정 간격 유형

Job

작업입니다.

Name 형식 Description
id

string

리소스 ID입니다.

name

string

리소스 이름입니다.

properties.description

string

작업에 대한 사용자 정의 설명입니다.

properties.schedule

JobSchedule

작업의 속성을 예약합니다.

properties.version

integer

작업 버전 번호입니다.

type

string

리소스 종류.

JobListResult

작업 목록입니다.

Name 형식 Description
nextLink

string

연결하여 결과의 다음 페이지를 검색합니다.

value

Job[]

결과 배열입니다.

JobSchedule

작업의 속성 예약

Name 형식 기본값 Description
enabled

boolean

일정을 사용할 수 있는지 여부입니다.

endTime

string

9999-12-31T11:59:59+00:00

종료 시간을 예약합니다.

interval

string

ScheduleType이 되풀이되는 경우 일정의 되풀이 간격 값입니다. ISO8601 기간 형식입니다.

startTime

string

0001-01-01T00:00:00+00:00

시작 시간을 예약합니다.

type

JobScheduleType

Once

일정 간격 유형

JobScheduleType

일정 간격 유형

Name 형식 Description
Once

string

Recurring

string