$ ansible-doc -t module cisco.sccfm.update_object_default
> MODULE cisco.sccfm.update_object_default (sccfm-ansible/plugins/modules/update_object_default.py)
Update the default content value of an object in your SCC Firewall
Manager tenant.
The existing overrides are preserved — only `defaultContent' is
replaced.
Supports `NETWORK_OBJECT' and `URL_OBJECT' types.
OPTIONS (= indicates it is required):
- api_token API token for SCCFM.
set_via:
env:
- name: SCCFM_API_TOKEN
default: null
no_log: true
type: str
- region SCCFM region (int, us, eu, apj, au, uae, in, or ci).
set_via:
env:
- name: SCCFM_REGION
default: null
type: str
= uid Unique identifier (UID) of the object to update.
type: str
= value The new default value for the object. For network objects
this can be an IP address (e.g., `10.0.0.1'), a CIDR subnet
(e.g., `10.0.0.0/24'), or an IP range. For URL objects this
should be the URL string.
type: str
AUTHOR: Cisco SCCFM Team
EXAMPLES:
# Example 1: Update the default value of a network object
- name: Update default value for shared network object
cisco.sccfm.update_object_default:
uid: "abc-123-def"
value: "10.10.10.10"
region: "{{ sccfm_region }}"
api_token: "{{ sccfm_api_token }}"
# Example 2: Using module_defaults to avoid repeating credentials
- name: Update object default values
hosts: localhost
gather_facts: false
module_defaults:
group/cisco.sccfm.all:
region: "{{ sccfm_region }}"
api_token: "{{ lookup('env', 'SCCFM_API_TOKEN') }}"
tasks:
- name: Update default value
cisco.sccfm.update_object_default:
uid: "{{ object_uid }}"
value: "{{ new_default_ip }}"
register: update_result
- name: Show result
ansible.builtin.debug:
var: update_result.object_default
# Example 3: Full override workflow — update default then add device override
- name: Configure object with default and device-specific override
hosts: localhost
gather_facts: false
module_defaults:
group/cisco.sccfm.all:
region: "{{ sccfm_region }}"
api_token: "{{ sccfm_api_token }}"
tasks:
- name: Update shared default value
cisco.sccfm.update_object_default:
uid: "{{ object_uid }}"
value: "192.168.1.1"
- name: Add override for branch office device
cisco.sccfm.add_object_override:
uid: "{{ object_uid }}"
target_id: "{{ branch_device_uid }}"
override_value: "10.10.10.10"
RETURN VALUES:
- object_default The updated object state after the default value
was changed.
returned: success
type: dict
contains:
- default_value The new default content value.
type: str
- name Name of the object.
type: str
- object_type Type of the object (e.g., NETWORK_OBJECT,
URL_OBJECT).
type: str
- uid Unique identifier of the object.
type: str