> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GET (/ext/unattendedsetup/quickaction)

> GET (/ext/unattendedsetup/quickaction)

# GET (/ext/unattendedsetup/quickaction)

检索有关应用于目标 XBOX One 开发主机上正面板按钮以及可供其使用的脚本的信息。

* [URI 参数](#ID4EX)
* [必需的请求标头](#ID4E5)
* [必需的请求正文](#ID4EFB)
* [响应](#ID4EMB)

## URI 参数

| 参数 | 类型 | 说明 |
| - | - | - |
| Name | base64 编码的字符串 | 可选字符串，指示我们想要获取脚本的内容。 |
| IsBuiltIn | 布尔值 | 可选布尔值，指示这是否是系统提供的内置脚本，或者是用户添加到主机的自定义脚本。 |

## 必需的请求标头

无。

## 必需的请求正文

无。

## 响应

如果调用成功且请求按名称请求脚本，服务将以符合多部分格式的 HTTP 正文形式返回脚本文件。

如果未请求脚本，服务将返回一个具有以下成员的 JSON 对象：

| 成员 | 类型 | 说明 |
| - | - | - |
| IsAvailable | 布尔值 | 此主机上是否可以使用正面板脚本。这对于 XBOX One X Dev Kit 将为 true，对于其他类型的开发工具包将为 false。如果此值为 false，则不会返回任何其他成员。 |
| QuickActions | JSON 对象数组 | 一个数组，包含此主机上所有可用的快速操作。 |
| AssignedActions | JSON 对象数组 | 一个数组，包含分配给此主机上正面板按钮的 5 个快速操作。 |

Quick action JSON 对象具有以下成员：

| 成员 | 类型 | 说明 |
| - | - | - |
| Name | base64 编码的字符串 | 主机上脚本的名称。 |
| IsBuiltIn | 布尔值 | 这是否是系统提供的内置脚本，或者是用户添加到主机的自定义脚本。 |

### HTTP 状态代码

服务针对使用此方法对此资源发出的请求返回本节中的一个状态代码。

| 代码 | 说明 |
| - | - |
| 200/204 | 操作成功。 |
| 4XX | 错误代码。 |
| 5XX | 错误代码。 |

## 另请参阅

##### 父级

[/ext/unattendedsetup/quickaction](https://docs.xbox.com/zh-CN/reference/deviceportal/unattendedsetup/uri-extunattendedsetupquickaction.md)


## Related topics

- [/ext/unattendedsetup/quickaction（API 内容）](https://docs.xbox.com/zh-CN/reference/deviceportal/unattendedsetup/uri-extunattendedsetupquickaction.md)
- [POST (/ext/unattendedsetup/quickaction)](https://docs.xbox.com/zh-CN/reference/deviceportal/unattendedsetup/uri-extunattendedsetupquickaction-post.md)
- [GET (/ext/unattendedsetup/configure)](https://docs.xbox.com/zh-CN/reference/deviceportal/unattendedsetup/uri-extunattendedsetupconfigure-get.md)
- [GET (/ext/unattendedsetup/default)](https://docs.xbox.com/zh-CN/reference/deviceportal/unattendedsetup/uri-extunattendedsetupdefault-get.md)
- [Unattended Setup URI（API 内容）](https://docs.xbox.com/zh-CN/reference/deviceportal/unattendedsetup/atoc-rest-unattendedsetup.md)
