sap.sap_operations.me_file_info (1.25.0) — module

File information

| "added in version" 1.10.0 of sap.sap_operations"

Authors: Ondra Machacek (@machacekondra), Kirill Satarin (@kksat)

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install sap.sap_operations:==1.25.0


Add to requirements.yml

  collections:
    - name: sap.sap_operations
      version: 1.25.0

Description

Fetch the info about file from SAP download center

Information is fetched from service https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet. See for example https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Fetch info about the file
  me_file_info:
    username: "S0000000000"
    password: "secret"
    file_id: "0030000000103162022"

Inputs

    
file_id:
    description:
    - File id to fetch the info.
    required: true
    type: str

password:
    description:
    - I(password) of the I(username).
    required: true
    type: str

username:
    description:
    - I(username) of SAP support portal. Either universal id or suser.
    required: true
    type: str

Outputs

file_info:
  description: File values
  returned: always
  sample:
    ChangedBy: ''
    ChangedByName: ''
    ChangedOn: /Date(1644323565000)/
    Checksum: 035167426426e53cadc2112761134fdde66be1033f9f0117966b0b9ad5ea0a97
    ComponentRelease: ''
    CreatedBy: ''
    CreatedByName: ''
    CreatedOn: /Date(1643310038000)/
    EpsFileName: ''
    FileName: 51055299.ZIP
    FileSize: '14975391 '
    FileType: ZIP
    FileVersion: '003'
    InfoMimeType: ''
    InfoText: ''
    InfoXml: ''
    IsAbapObject: false
    IsContentInfoAvailable: false
    IsFcmsViewAvailable: false
    IsSupportPackage: false
    MinimalBasisRelease: ''
    ObjectAttributes:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectAttributes
    ObjectConditions:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectConditions
    ObjectKey: '0030000000103162022'
    ObjectList:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectList
    ObjectProperties:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectProperties
    ObjectSAPNotes:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectSAPNotes
    ObjectSAPNotesCategoryFilter:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectSAPNotesCategoryFilter
    ObjectSAPNotesComponentFilter:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectSAPNotesComponentFilter
    ObjectSAPNotesCountryFilter:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectSAPNotesCountryFilter
    ObjectSAPNotesPriorityFilter:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectSAPNotesPriorityFilter
    ObjectSideEffects:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectSideEffects
    ObjectSourcePackages:
      __deferred:
        uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')/ObjectSourcePackages
    PackageLevel: ''
    PatchType: ''
    RequiredSpamVersion: ''
    Responsible: ''
    ResponsibleName: ''
    Status: AVAILABLE
    StatusDescr: The File is available to download
    Title: SAP HANA Platform Edt. 2.0 SPS05 rev57 Linux x86_64
    __metadata:
      id: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')
      type: SVT_SWDC_UI_SRV.Object
      uri: https://launchpad.support.sap.com/services/odata/svt/swdcuisrv/ObjectSet('0030000000103162022')
  type: dict