

# CreateResourceProvider

Creates a resource provider on the specified appliance with configuration for the provider and its resource targets.

## Request Syntax
<a name="API_BKE_CreateResourceProvider_RequestSyntax"></a>

```
POST /resources/providers HTTP/1.1
Content-type: application/json

{
   "ApplianceArn": "{{string}}",
   "AutoDeleteNotFoundTargetsAfterDays": {{number}},
   "ClientToken": "{{string}}",
   "Name": "{{string}}",
   "ProviderConfiguration": { ... },
   "ProviderType": "{{string}}",
   "SecretConfigurationArn": "{{string}}",
   "Tags": { 
      "{{string}}" : "{{string}}" 
   },
   "TargetConfiguration": { 
      "MssqlDatabase": { 
         "BackupStreamCount": {{number}},
         "FullBackupAfterDays": {{number}},
         "FullBackupAfterScheduleExpression": "{{string}}",
         "IsCopyOnlyFull": {{boolean}},
         "LogBackupFrequencyInMinutes": {{number}}
      },
      "NasFilesystem": { 
         "AllowUnencryptedDataTransfer": {{boolean}}
      },
      "OracledbDatabase": { 
         "BackupChannelCount": {{number}},
         "BackupNodeHostName": "{{string}}",
         "FullBackupAfterDays": {{number}},
         "FullBackupAfterScheduleExpression": "{{string}}",
         "LogBackupFrequencyInMinutes": {{number}},
         "LogRetentionOnHostInHours": {{number}}
      },
      "ServerFilesystem": { 
         "BackupConsistency": "{{string}}",
         "PostBackupScript": { 
            "ScriptParams": "{{string}}",
            "ScriptPath": "{{string}}",
            "TimeoutInMinutes": {{number}}
         },
         "PreBackupScript": { 
            "ContinueBackupOnScriptFailure": {{boolean}},
            "ScriptParams": "{{string}}",
            "ScriptPath": "{{string}}",
            "TimeoutInMinutes": {{number}}
         }
      },
      "VmwareVm": { 
         "BackupConsistency": "{{string}}"
      }
   },
   "TargetTagKeysToSync": [ "{{string}}" ],
   "TargetTagsOnCreate": { 
      "{{string}}" : "{{string}}" 
   }
}
```

## URI Request Parameters
<a name="API_BKE_CreateResourceProvider_RequestParameters"></a>

The request does not use any URI parameters.

## Request Body
<a name="API_BKE_CreateResourceProvider_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [ApplianceArn](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-ApplianceArn"></a>
The Amazon Resource Name (ARN) of the appliance.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 256.  
Pattern: `arn:aws[a-z0-9-]{0,30}:backup-external:[a-z0-9-]{1,30}:[0-9]{12}:appliance:[a-zA-Z0-9-]{36}`   
Required: Yes

 ** [AutoDeleteNotFoundTargetsAfterDays](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-AutoDeleteNotFoundTargetsAfterDays"></a>
The number of days after which resource targets with a status of `NOT_FOUND` are automatically deleted.  
Type: Integer  
Valid Range: Minimum value of 0.  
Required: No

 ** [ClientToken](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-ClientToken"></a>
A unique, case-sensitive identifier that you provide to ensure that the request is idempotent.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[!-~]+`   
Required: No

 ** [Name](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-Name"></a>
The name of the resource provider.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 64.  
Pattern: `[\p{L}\p{Z}\p{N}_.:/=+\-@]*`   
Required: No

 ** [ProviderConfiguration](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-ProviderConfiguration"></a>
The configuration of the resource provider.  
Type: [ResourceProviderConfiguration](API_BKE_ResourceProviderConfiguration.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: Yes

 ** [ProviderType](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-ProviderType"></a>
The type of resource provider.  
Type: String  
Valid Values: `MSSQL_SERVER | NAS_SHARE | ORACLEDB_SERVER | ORACLEDB_CLUSTER | SERVER_HOST | VMWARE_ESXI | VMWARE_VCENTER`   
Required: Yes

 ** [SecretConfigurationArn](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-SecretConfigurationArn"></a>
The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Pattern: `arn:aws[a-z0-9-]{0,30}:secretsmanager:[a-z0-9-]{1,30}:[0-9]{12}:secret:[a-zA-Z0-9/_+=.@-]{1,512}`   
Required: No

 ** [Tags](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-Tags"></a>
The tags to associate with the resource provider.  
Type: String to string map  
Map Entries: Minimum number of 0 items. Maximum number of 200 items.  
Key Length Constraints: Minimum length of 1. Maximum length of 128.  
Key Pattern: `[\p{L}\p{Z}\p{N}_.:/=+\-@]*`   
Value Length Constraints: Minimum length of 0. Maximum length of 256.  
Value Pattern: `[\p{L}\p{Z}\p{N}_.:/=+\-@]*`   
Required: No

 ** [TargetConfiguration](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-TargetConfiguration"></a>
The default backup configurations for the resource provider's resource targets, by target type.  
Type: [ResourceTargetConfigurations](API_BKE_ResourceTargetConfigurations.md) object  
Required: Yes

 ** [TargetTagKeysToSync](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-TargetTagKeysToSync"></a>
The tag keys whose values are synchronized from external resources to their resource targets.  
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 10 items.  
Length Constraints: Minimum length of 1. Maximum length of 100.  
Pattern: `[\p{L}\p{Z}\p{N}_.:/=+\-@]*`   
Required: No

 ** [TargetTagsOnCreate](#API_BKE_CreateResourceProvider_RequestSyntax) **   <a name="Backup-BKE_CreateResourceProvider-request-TargetTagsOnCreate"></a>
The tags to apply when the resource provider's resource targets are created.  
Type: String to string map  
Map Entries: Minimum number of 0 items. Maximum number of 10 items.  
Key Length Constraints: Minimum length of 1. Maximum length of 128.  
Key Pattern: `[\p{L}\p{Z}\p{N}_.:/=+\-@]*`   
Value Length Constraints: Minimum length of 0. Maximum length of 256.  
Value Pattern: `[\p{L}\p{Z}\p{N}_.:/=+\-@]*`   
Required: No

## Response Syntax
<a name="API_BKE_CreateResourceProvider_ResponseSyntax"></a>

```
HTTP/1.1 201
Content-type: application/json

{
   "Arn": "string"
}
```

## Response Elements
<a name="API_BKE_CreateResourceProvider_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 201 response.

The following data is returned in JSON format by the service.

 ** [Arn](#API_BKE_CreateResourceProvider_ResponseSyntax) **   <a name="Backup-BKE_CreateResourceProvider-response-Arn"></a>
The Amazon Resource Name (ARN) of the resource provider.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 256.  
Pattern: `arn:aws[a-z0-9-]{0,30}:backup-external:[a-z0-9-]{1,30}:[0-9]{12}:resource-provider:[a-z0-9-]{1,30}/[a-z0-9]{1,36}` 

## Errors
<a name="API_BKE_CreateResourceProvider_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The request was denied because you do not have permission to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The request conflicts with the current state of the specified resource.  
HTTP Status Code: 409

 ** InternalServerException **   
The request failed because of an internal server error.  
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The specified resource was not found.  
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The request would exceed a service quota.  
HTTP Status Code: 402

 ** ThrottlingException **   
The request was denied because the request rate is too high.  
HTTP Status Code: 429

 ** ValidationException **   
The request contains invalid parameters.  
HTTP Status Code: 400

## See Also
<a name="API_BKE_CreateResourceProvider_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/backup-external-2026-01-01/CreateResourceProvider) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/backup-external-2026-01-01/CreateResourceProvider) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/backup-external-2026-01-01/CreateResourceProvider) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/backup-external-2026-01-01/CreateResourceProvider) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/backup-external-2026-01-01/CreateResourceProvider) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/backup-external-2026-01-01/CreateResourceProvider) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/backup-external-2026-01-01/CreateResourceProvider) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/backup-external-2026-01-01/CreateResourceProvider) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/backup-external-2026-01-01/CreateResourceProvider) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/backup-external-2026-01-01/CreateResourceProvider) 