yoctoalex.xc_cloud_modules.stored_object (0.0.6) — module

Manage Service Policies

| "added in version" 0.0.1 of yoctoalex.xc_cloud_modules"

Authors: unknown

Install collection

Install with ansible-galaxy collection install yoctoalex.xc_cloud_modules:==0.0.6


Add to requirements.yml

  collections:
    - name: yoctoalex.xc_cloud_modules
      version: 0.0.6

Description

A service_policy object consists of an unordered list of predicates and a list of service policy rules.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- 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"

Inputs

    
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

Outputs

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