

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Applications applicationId Unshare
<a name="applications-applicationid-unshare"></a>

## URI
<a name="applications-applicationid-unshare-url"></a>

`/applications/applicationId/unshare`

## HTTP 方法
<a name="applications-applicationid-unshare-http-methods"></a>

### POST
<a name="applications-applicationid-unsharepost"></a>

**操作 ID：**`UnshareApplication`

從 AWS 組織取消共用應用程式。

此操作只能從組織的管理帳戶呼叫。


**路徑參數**  

| 名稱 | 類型 | 必要 | Description | 
| --- |--- |--- |--- |
| applicationId | String | True | 應用程式的 Amazon Resource Name (ARN)。 | 


**回應**  

| 狀態碼 | 回應模型 | Description | 
| --- |--- |--- |
| 204 | None | 成功 | 
| 400 | BadRequestException | 請求中的其中一個參數無效。 | 
| 403 | ForbiddenException | 用戶端未驗證。 | 
| 404 | NotFoundException | 請求中指定的資源 （例如，存取政策陳述式） 不存在。 | 
| 429 | TooManyRequestsException | 用戶端傳送的請求數量超過每單位時間允許的請求數量。 | 
| 500 | InternalServerErrorException |  AWS Serverless Application Repository 服務發生內部錯誤。 | 

### OPTIONS
<a name="applications-applicationid-unshareoptions"></a>


**路徑參數**  

| 名稱 | 類型 | 必要 | Description | 
| --- |--- |--- |--- |
| applicationId | String | True | 應用程式的 Amazon Resource Name (ARN)。 | 


**回應**  

| 狀態碼 | 回應模型 | Description | 
| --- |--- |--- |
| 200 | None | 200 個回應 | 

## 結構描述
<a name="applications-applicationid-unshare-schemas"></a>

### 請求內文
<a name="applications-applicationid-unshare-request-examples"></a>

#### POST 結構描述
<a name="applications-applicationid-unshare-request-body-post-example"></a>

```
{
  "organizationId": "string"
}
```

### 回應內文
<a name="applications-applicationid-unshare-response-examples"></a>

#### BadRequestException 結構描述
<a name="applications-applicationid-unshare-response-body-badrequestexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

#### ForbiddenException 結構描述
<a name="applications-applicationid-unshare-response-body-forbiddenexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

#### NotFoundException 結構描述
<a name="applications-applicationid-unshare-response-body-notfoundexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

#### TooManyRequestsException 結構描述
<a name="applications-applicationid-unshare-response-body-toomanyrequestsexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

#### InternalServerErrorException 結構描述
<a name="applications-applicationid-unshare-response-body-internalservererrorexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

## Properties
<a name="applications-applicationid-unshare-properties"></a>

### BadRequestException
<a name="applications-applicationid-unshare-model-badrequestexception"></a>

請求中的其中一個參數無效。


| 屬性 | Type | 必要 | Description | 
| --- |--- |--- |--- |
| errorCode | string | False | 400 | 
| message | string | False | 請求中的其中一個參數無效。 | 

### ForbiddenException
<a name="applications-applicationid-unshare-model-forbiddenexception"></a>

用戶端未驗證。


| 屬性 | Type | 必要 | Description | 
| --- |--- |--- |--- |
| errorCode | string | False | 403 | 
| message | string | False | 用戶端未驗證。 | 

### InternalServerErrorException
<a name="applications-applicationid-unshare-model-internalservererrorexception"></a>

 AWS Serverless Application Repository 服務發生內部錯誤。


| 屬性 | Type | 必要 | Description | 
| --- |--- |--- |--- |
| errorCode | string | False | 500 | 
| message | string | False |  AWS Serverless Application Repository 服務發生內部錯誤。 | 

### NotFoundException
<a name="applications-applicationid-unshare-model-notfoundexception"></a>

請求中指定的資源 （例如，存取政策陳述式） 不存在。


| 屬性 | Type | 必要 | Description | 
| --- |--- |--- |--- |
| errorCode | string | False | 404 | 
| message | string | False | 請求中指定的資源 （例如，存取政策陳述式） 不存在。 | 

### TooManyRequestsException
<a name="applications-applicationid-unshare-model-toomanyrequestsexception"></a>

用戶端傳送的請求數量超過每單位時間允許的請求數量。


| 屬性 | Type | 必要 | Description | 
| --- |--- |--- |--- |
| errorCode | string | False | 429 | 
| message | string | False | 用戶端傳送的請求數量超過每單位時間允許的請求數量。 | 

### UnshareApplicationInput
<a name="applications-applicationid-unshare-model-unshareapplicationinput"></a>

取消共用應用程式請求。


| 屬性 | Type | 必要 | Description | 
| --- |--- |--- |--- |
| organizationId | string | True | 取消共用應用程式的 AWS Organizations ID。 | 

## 另請參閱
<a name="applications-applicationid-unshare-see-also"></a>

如需在其中一種語言特定 AWS SDKs和參考中使用此 API 的詳細資訊，請參閱下列內容：

### UnshareApplication
<a name="UnshareApplication-see-also"></a>
+ [AWS 命令列界面 V2](/goto/cli2/serverlessrepo-2017-09-08/UnshareApplication)
+ [適用於 .NET V4 的 AWS 開發套件](/goto/DotNetSDKV4/serverlessrepo-2017-09-08/UnshareApplication)
+ [適用於 C\$1\$1 的 AWS SDK](/goto/SdkForCpp/serverlessrepo-2017-09-08/UnshareApplication)
+ [適用於 Go v2 的 AWS 開發套件](/goto/SdkForGoV2/serverlessrepo-2017-09-08/UnshareApplication)
+ [適用於 Java 的 AWS SDK 第 2 版](/goto/SdkForJavaV2/serverlessrepo-2017-09-08/UnshareApplication)
+ [適用於 JavaScript V3 的 AWS 開發套件](/goto/SdkForJavaScriptV3/serverlessrepo-2017-09-08/UnshareApplication)
+ [適用於 Kotlin 的 AWS 開發套件](/goto/SdkForKotlin/serverlessrepo-2017-09-08/UnshareApplication)
+ [適用於 PHP V3 的 AWS 開發套件](/goto/SdkForPHPV3/serverlessrepo-2017-09-08/UnshareApplication)
+ [適用於 Python 的 AWS 開發套件](/goto/boto3/serverlessrepo-2017-09-08/UnshareApplication)
+ [適用於 Ruby V3 的 AWS 開發套件](/goto/SdkForRubyV3/serverlessrepo-2017-09-08/UnshareApplication)