def resource_create(resource_id, resource_type, resource_options=None, cibfile=None):
    return item_create(item='resource',
                       item_id=resource_id,
                       item_type=resource_type,
                       extra_args=resource_options,
                       cibfile=cibfile)
Create a resource via pcs command
dataset/ETHPy150Open saltstack/salt/salt/modules/pcs.py/resource_create