6.7 Attachment

Attachment definitions and definition examples are shown below. For details on the Attachment, see “Storing documents”.

(Table) Attachment definitions

Label Default value Required Description
apiVersion: 1.0 Yes API version
kind: Yes Specify "attachment" for Attachment.
type: No Only "container" can be specified for Attachment.
name: Yes Internal name of the Attachment definition Specify the directory name for this YAML file.
label: Yes YAML file display name
description: No Detailed description
nameRule: No -
type: datetime No Select a naming rule from among the following for documents stored in the container.
  • datetime:
    Name by date and time as follows. If a file with the same name exists, a number is automatically incremented at the end of the folder name.
    2021-10-01 15_15_13 UTC
    2021-10-01 15_15_13 UTC.1
    2021-10-01 15_15_13 UTC.2
  • number:
    A number is incremented. The number of digits is specified with the "length" label.
length: 5 No The number of digits when "number" is specified in the "type" label.
timezone: UTC No Time zone when "datetime" is specified in the "type" label. The following time zones can be specified.
  • UTC
  • Asia/Tokyo

<Definition example>

apiVersion: 1.0
kind: attachment

type: container
name: Evidence of VM creation
label: Evidence of VM creation
description: Container to store check list during VM creation.

nameRule:
    type: datetime