Skip to main content

List sources

GET 

/bv/aisk/v1/sources

This API is used to list the source resources.

Request

Query Parameters

    name string

    Optional. The name of the source to be filtered. It will return the results which contain the specified name.

    status string[]

    Possible values: [SOURCE_STATUS_INGESTING, SOURCE_STATUS_PREPARING, SOURCE_STATUS_READY, SOURCE_STATUS_UPDATING, SOURCE_STATUS_FAILED, SOURCE_STATUS_DELETING]

    Optional. The list of the source status to be filtered. It will return the results whose status in the specified list of statuses. It will return all of the status results if left empty.

    type string[]

    Possible values: [SOURCE_TYPE_WEBSITE, SOURCE_TYPE_LOCAL_DRIVE, SOURCE_TYPE_VOD, SOURCE_TYPE_VIDEO, SOURCE_TYPE_SUBTITLE, SOURCE_TYPE_TEXT, SOURCE_TYPE_AOD]

    Optional. The list of the source type to be filtered. It will return the results whose type in the specified list of types. It will return all of the type results if left empty.

    current_page int32

    Input only. Indicates the current page to shows. Default: 1.

    items_per_page int32

    Input only. Indicates the number of items to shows per page. Default: 1. Max: 100.

Responses

A successful response.

Schema
    sources object[]
  • Array [
  • id string

    Output only. The uuid of the source.

    type stringrequired

    Possible values: [SOURCE_TYPE_WEBSITE, SOURCE_TYPE_LOCAL_DRIVE, SOURCE_TYPE_VOD, SOURCE_TYPE_VIDEO, SOURCE_TYPE_SUBTITLE, SOURCE_TYPE_TEXT, SOURCE_TYPE_AOD]

    Required. Immutable. The type of the source.

    name stringrequired

    Required. The name of the source.

    status string

    Possible values: [SOURCE_STATUS_INGESTING, SOURCE_STATUS_PREPARING, SOURCE_STATUS_READY, SOURCE_STATUS_UPDATING, SOURCE_STATUS_FAILED, SOURCE_STATUS_DELETING]

    Output only. The status of the source.

    format string

    Possible values: [SOURCE_FORMAT_WEBSITE, SOURCE_FORMAT_PDF, SOURCE_FORMAT_DOC, SOURCE_FORMAT_DOCX, SOURCE_FORMAT_VOD_TO_TEXT, SOURCE_FORMAT_VIDEO_TO_TEXT, SOURCE_FORMAT_SRT, SOURCE_FORMAT_VTT, SOURCE_FORMAT_TEXT, SOURCE_FORMAT_AOD_TO_TEXT]

    Output only.

    size_in_bytes int64

    Output only. The size of the source in bytes.

    file object

    Output only. It'll be available if type is SOURCE_TYPE_LOCAL_DRIVE or SOURCE_TYPE_SUBTITLE.

    id string

    Output only. The uuid of the file.

    type string

    Possible values: [FILE_TYPE_VIDEO, FILE_TYPE_IMAGE, FILE_TYPE_SUBTITLE, FILE_TYPE_DOCUMENT, FILE_TYPE_WEB_LINK, FILE_TYPE_AUDIO]

    Output only. The type of the file.

    name string

    Output only. The name of the file.

    size_in_bytes int64

    Output only. The size of the file in bytes.

    vod object

    Output only. It'll be available if type is SOURCE_TYPE_VOD.

    id string

    Output only. The uuid of the vod.

    video object

    Output only. It'll be available if type is SOURCE_TYPE_VIDEO.

    id string

    Output only. The uuid of the video.

    text object

    Output only. It'll be available if type is SOURCE_TYPE_TEXT.

    content Output only. The content of text (string)
    aod object

    Output only. It'll be available if type is SOURCE_TYPE_AOD.

    id string

    Output only. The uuid of the aod.

    metadata object

    Optional. The metadata of the source.

    keyword_1 object
    data object[]
  • Array [
  • value string
  • ]
  • keyword_2 object
    data object[]
  • Array [
  • value string
  • ]
  • keyword_3 object
    data object[]
  • Array [
  • value string
  • ]
  • integer_range_1 object
    data object[]
  • Array [
  • gte int64
    lte int64
  • ]
  • integer_range_2 object
    data object[]
  • Array [
  • gte int64
    lte int64
  • ]
  • integer_range_3 object
    data object[]
  • Array [
  • gte int64
    lte int64
  • ]
  • boolean_1 object
    data object
    value boolean
    boolean_2 object
    data object
    value boolean
    boolean_3 object
    data object
    value boolean
    text_1 object
    data object
    value string
    text_2 object
    data object
    value string
    text_3 object
    data object
    value string
    next_update_time date-time

    Output only. The time that the source will be updated in the next period.

    character_count int64

    Output only. The number of characters of this source used.

    summary object

    Output only. The summary of this source.

    content string

    The content of summary.

    status string

    Possible values: [SUMMARY_STATUS_WAITING, SUMMARY_STATUS_PROCESSING, SUMMARY_STATUS_READY, SUMMARY_STATUS_FAILED]

    The status of summary.

    error_infos object[]

    Output only. Optional. A list of messages that carry the error infos when vod encoding is failed.

  • Array [
  • reason string

    The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of [A-Z][A-Z0-9_]+[A-Z0-9], which represents UPPER_SNAKE_CASE.

    domain string

    The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com".

    metadata object

    Additional structured details about this error.

    Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.

    property name* string
  • ]
  • created_at date-time

    Output only. The time that the source created.

    updated_at date-time

    Output only. The time that the source last updated.

    error_infos object[]

    Output only. A list of messages that carry the error infos when source is failed.

  • Array [
  • reason string

    The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of [A-Z][A-Z0-9_]+[A-Z0-9], which represents UPPER_SNAKE_CASE.

    domain string

    The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com".

    metadata object

    Additional structured details about this error.

    Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.

    property name* string
  • ]
  • ]
  • pagination object
    total_items int32

    Output only. The total numbers of the list in the current pagination.

    items_per_page int32

    Output only. The number of items per page in the current pagination.

    current_page int32

    Output only. The current page in the current pagination.

Loading...