security_cert_remote_ca_certs - Certificate Resource

Added in version 1.0.0.

Synopsis

Certificate Resource.

Use API “/resource-api/v1/security/cert/remote-ca-certs”.

Requirements

The below requirements are needed on the host that executes this module.

  • ansible>=2.17.0

Parameters

  • state The state of the module. "present" means create or update the resource, "absent" means delete the resource.type: strchoices: ['present', 'absent']default: present
  • force_behavior Specify this option to force the method to use to interact with the resource.type: strchoices: ['none', 'read', 'create', 'update', 'delete']default: none
  • bypass_validation Bypass validation of the module.type: booldefault: False
  • params The parameters of the module.[Required]type: dict
    • primary_key [Required]type: str
    • cert_name type: str
    • file_content type: str

Examples

- name: Security Certificate Remote CA Certificates
  hosts: fortisase
  gather_facts: false
  vars:
    primary_key: "example_remote_ca_certs"
  tasks:
    - name: Create/Update Security Certificate Remote CA Certificates
      fortinet.fortisase.security_cert_remote_ca_certs:
        state: present
        params:
          primary_key: "{{ primary_key }}"
          cert_name: "{{ primary_key }}"
          file_content: "{{ lookup('file', 'cert2.crt') | b64encode }}"
    - name: Delete Security Certificate Remote CA Certificates
      fortinet.fortisase.security_cert_remote_ca_certs:
        state: absent
        params:
          primary_key: "{{ primary_key }}"

Return Values

  • http_code type: intreturned: always
  • response type: rawreturned: always

Authors

  • Xinwei Du (@dux-fortinet)