code: def post(method, hmc, uri, uri_parms, body, logon_required,
               wait_for_completion):
          
          assert wait_for_completion is True  # synchronous operation
          try:
              console = hmc.consoles.lookup_by_oid(None)
          except KeyError:
              raise InvalidResourceError(method, uri)
          check_required_fields(method, uri, body, ['name'])
          new_password_rule = console.password_rules.add(body)
          return {'element-uri': new_password_rule.uri}
docs: Operation: Create Password Rule.