yoctoalex / yoctoalex.xc_cloud_modules / 0.0.6 / module / stored_object Manage Service Policies | "added in version" 0.0.1 of yoctoalex.xc_cloud_modules" Authors: unknownyoctoalex.xc_cloud_modules.stored_object (0.0.6) — module
Install with ansible-galaxy collection install yoctoalex.xc_cloud_modules:==0.0.6
collections: - name: yoctoalex.xc_cloud_modules version: 0.0.6
A service_policy object consists of an unordered list of predicates and a list of service policy rules.
--- - name: Configure Service Policy hosts: webservers collections: - yoctoalex.xc_cloud_modules connection: local environment: XC_API_TOKEN: "your_api_token" XC_TENANT: "console.ves.volterra.io" tasks: - name: upload swagger file stored_object: state: present string_value: "{{ lookup('file', '../swagger.json') | string }}" content_format: "json" name: "demo-swagger" object_type: "swagger" namespace: "default"
name: description: - Name of the stored_object. required: true type: str state: choices: - present - absent - fetch default: present description: - When C(state) is C(present), ensures the object is created or modified. - When C(state) is C(absent), ensures the object is removed. type: str namespace: description: - Namespace in which object is to be created required: true type: str mobile_sdk: description: - Describes attributes specific to object type - mobile-sdk type: object bytes_value: description: - Exclusive with [string_value] Binary object contents. Should be encoded in base64 scheme. type: str description: description: - The optional description associated with object type: str object_type: description: - Type of the stored_object required: true type: str string_value: description: - Exclusive with [bytes_value] String formatted contents type: str no_attributes: description: - This can be used for messages where no values are needed type: object content_format: description: - The optional content format associated with object type: str
metadata: creation_timestamp: description: - Creation date & time for the object required: true type: str description: description: - The optional description associated with object type: str mobile_sdk: description: - Describes attributes specific to object type - mobile-sdk type: object name: description: - Name of the stored_object. required: true type: str namespace: description: - Namespace in which object is to be created required: true type: str no_attributes: description: - This can be used for messages where no values are needed type: object url: description: - Url of the stored object required: true type: str version: description: - Version of the stored object required: true type: str status: choices: - STORED_OBJECT_STATUS_NONE - STORED_OBJECT_STATUS_CREATED - STORED_OBJECT_STATUS_UPDATED - STORED_OBJECT_STATUS_ALREADY_EXISTS description: - The stored object status represents status of create object response if object got created, updated or already exists. type: str