Job Credentials - List By Agent
작업 자격 증명 목록을 가져옵니다.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials?api-version=2021-11-01
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
job
|
path | True |
string |
작업 에이전트의 이름입니다. |
resource
|
path | True |
string |
리소스를 포함하는 리소스 그룹의 이름입니다. Azure 리소스 관리자 API 또는 포털에서 이 값을 가져올 수 있습니다. |
server
|
path | True |
string |
서버의 이름입니다. |
subscription
|
path | True |
string |
Azure 구독을 식별하는 구독 ID입니다. |
api-version
|
query | True |
string |
요청에 사용할 API 버전입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
작업 자격 증명 목록을 성공적으로 검색했습니다. |
|
Other Status Codes |
오류 응답: ***
|
예제
List credentials in a job agent
샘플 요청
샘플 응답
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred1",
"name": "cred1",
"type": "Microsoft.Sql/servers/jobAccounts/credentials",
"properties": {
"username": "myuser"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred2",
"name": "cred2",
"type": "Microsoft.Sql/servers/jobAccounts/credentials",
"properties": {
"username": "anotherUser"
}
}
]
}
정의
Name | Description |
---|---|
Job |
작업에서 대상 데이터베이스에 연결하는 데 사용할 수 있는 저장된 자격 증명입니다. |
Job |
작업 자격 증명 목록입니다. |
JobCredential
작업에서 대상 데이터베이스에 연결하는 데 사용할 수 있는 저장된 자격 증명입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
name |
string |
리소스 이름입니다. |
properties.password |
string |
자격 증명 암호입니다. |
properties.username |
string |
자격 증명 사용자 이름입니다. |
type |
string |
리소스 종류. |
JobCredentialListResult
작업 자격 증명 목록입니다.
Name | 형식 | Description |
---|---|---|
nextLink |
string |
연결하여 결과의 다음 페이지를 검색합니다. |
value |
결과 배열입니다. |