MCPcopy Create free account
hub / github.com/StackStorm/st2 / get_one

Method get_one

st2api/st2api/controllers/v1/rules.py:104–116  ·  view source on GitHub ↗
(self, ref_or_id, requester_user, show_secrets=False)

Source from the content-addressed store, hash-verified

102 )
103
104 def get_one(self, ref_or_id, requester_user, show_secrets=False):
105 from_model_kwargs = {
106 "ignore_missing_trigger": True,
107 "mask_secrets": self._get_mask_secrets(
108 requester_user, show_secrets=show_secrets
109 ),
110 }
111 return super(RuleController, self)._get_one(
112 ref_or_id,
113 from_model_kwargs=from_model_kwargs,
114 requester_user=requester_user,
115 permission_type=PermissionType.RULE_VIEW,
116 )
117
118 def post(self, rule, requester_user):
119 """

Callers

nothing calls this directly

Calls 2

_get_mask_secretsMethod · 0.80
_get_oneMethod · 0.45

Tested by

no test coverage detected