Create train Data - CreateUFData
Overview
Create Training Dataset
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is CreateUFData . | Yes |
PublicKey | string | The user’s public key can be obtained from Console  | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
ProjectId | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList API  | Yes |
Name | string | Name | Yes |
Describe | string | Description | Yes |
DataSourceType | string | Data Source Type | Yes |
S3Uri | string | US3 url Address | Yes |
S3Bucket | string | US3 bucket name | Yes |
S3Path | string | US3 path | Yes |
S3AccessKeyID | string | US3 AccessKeyID | Yes |
S3SecretAccessKey | string | US3 SecretAccessKey | Yes |
Property | string | File Type: File|Directory | No |
DataType | string | Data Type Text|Image|Audio|Video | No |
Formatting | string | Data Format: alpaca|sharegpt | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
Data | CreateDataResponseData | Response Data Body | Yes |
Data Model
CreateDataResponseData
Field Name | Type | Description Information | Required |
---|---|---|---|
Id | string | Id | No |
Example
Request Example
https://api.ucloud-global.com/?Action=CreateUFData
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=XoWgRSDS
&Name=brFaHAmz
&Describe=dqJlYfLC
&DataSourceType=VdqfPOYk
&S3Uri=bFOQSMGT
&S3Bucket=zVIBhvDH
&S3Path=LXeVlzlt
&S3AccessKeyID=vJmZpysF
&S3SecretAccessKey=TbckXMxb
&Property=MgbVJyDi
&DataType=tsGjKAma
&Formatting=tjVvaCLc
Response Example
{
"Action": "CreateUFDataResponse",
"Id": "dNMXynUW",
"RetCode": 0
}