

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# CreateReturnShippingLabel
<a name="API_CreateReturnShippingLabel"></a>

**注意**  
 AWS Snowball Edge 不再向新客户提供。新客户应探索[AWS DataSync](https://aws.amazon.com/datasync/)在线传输、用于安全物理[传输AWS 的数据传输终端](https://aws.amazon.com/data-transfer-terminal/)或 AWS 合作伙伴解决方案。对于边缘计算，请浏览 [AWS Out](https://aws.amazon.com/outposts/) posts。

创建将用于将 Snow 设备退回 AWS的运输标签。

## 请求语法
<a name="API_CreateReturnShippingLabel_RequestSyntax"></a>

```
{
   "JobId": "string",
   "ShippingOption": "string"
}
```

## 请求参数
<a name="API_CreateReturnShippingLabel_RequestParameters"></a>

有关所有操作的通用参数的信息，请参阅[常用参数](CommonParameters.md)。

请求接受采用 JSON 格式的以下数据。

 ** [JobId](#API_CreateReturnShippingLabel_RequestSyntax) **   <a name="Snowball-CreateReturnShippingLabel-request-JobId"></a>
您要为其创建退货运输标签的作业 ID；例如，`JID123e4567-e89b-12d3-a456-426655440000`。  
类型：字符串  
长度限制：固定长度为 39。  
模式：`(M|J)ID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`  
是否必需：是

 ** [ShippingOption](#API_CreateReturnShippingLabel_RequestSyntax) **   <a name="Snowball-CreateReturnShippingLabel-request-ShippingOption"></a>
特定作业的配送速度。此速度并不能决定设备恢复到 AWS多长时间。而是表示它运送到目的地的运输速度。每个区域配送速度如下所示：  
类型：字符串  
有效值：`SECOND_DAY | NEXT_DAY | EXPRESS | STANDARD`  
必需：否

## 响应语法
<a name="API_CreateReturnShippingLabel_ResponseSyntax"></a>

```
{
   "Status": "string"
}
```

## 响应元素
<a name="API_CreateReturnShippingLabel_ResponseElements"></a>

如果此操作成功，则该服务将会发送回 HTTP 200 响应。

服务以 JSON 格式返回以下数据。

 ** [Status](#API_CreateReturnShippingLabel_ResponseSyntax) **   <a name="Snowball-CreateReturnShippingLabel-response-Status"></a>
正在返回的 Snow 设备上的任务的状态信息 AWS。  
类型：字符串  
有效值：`InProgress | TimedOut | Succeeded | Failed`

## 错误
<a name="API_CreateReturnShippingLabel_Errors"></a>

有关所有操作返回的常见错误的信息，请参阅 [常见错误类型](CommonErrors.md)。

 ** ConflictException **   
当其他请求未完成时，如果您多次调用 `CreateReturnShippingLabel`，则会出现此异常。    
 ** ConflictResource **   
当其他请求未完成时，当你`CreateReturnShippingLabel`多次调用时，你就会获得此资源。
HTTP 状态代码：400

 ** InvalidInputCombinationException **   
作业或集群创建失败。一个或多个输入无效。确认[CreateCluster:SnowballType](API_CreateCluster.md#Snowball-CreateCluster-request-SnowballType)值支持您的[CreateJob:JobType](API_CreateJob.md#Snowball-CreateJob-request-JobType)，然后重试。  
HTTP 状态代码：400

 ** InvalidJobStateException **   
无法执行该操作，因为作业的当前状态不允许执行该操作。  
HTTP 状态代码：400

 ** InvalidResourceException **   
找不到指定的资源。请查看您在上次请求中提供的信息，然后重试。    
 ** ResourceType **   
提供的资源值无效。
HTTP 状态代码：400

 ** ReturnShippingLabelAlreadyExistsException **   
如果您调用 `CreateReturnShippingLabel` 并且有效的退货运输标签已经存在，则会出现此异常。在这种情况下，使用 `DescribeReturnShippingLabel` 获取网址。  
HTTP 状态代码：400

## 另请参阅
<a name="API_CreateReturnShippingLabel_SeeAlso"></a>

有关以特定语言之一使用此 API 的更多信息 AWS SDKs，请参阅以下内容：
+  [AWS 命令行界面 V2](https://docs.aws.amazon.com/goto/cli2/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 适用于.NET 的 SDK V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 适用于 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 适用于 Go v2 的 SDK](https://docs.aws.amazon.com/goto/SdkForGoV2/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 适用于 Java 的 SDK V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS JavaScript V3 版软件开发工具包](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 适用于 Kotlin 的 SDK](https://docs.aws.amazon.com/goto/SdkForKotlin/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 适用于 PHP 的 SDK V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS Python 软件开发工具包](https://docs.aws.amazon.com/goto/boto3/snowball-2016-06-30/CreateReturnShippingLabel) 
+  [AWS 适用于 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/snowball-2016-06-30/CreateReturnShippingLabel) 