def describe_api_stage(restApiId, stageName, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  stage = conn.get_stage(restApiId=restApiId, stageName=stageName)
  return {'stage': _convert_datetime_str(stage)}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def describe_api_stage ( restApiId , stageName , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) stage = conn . get_stage ( restApiId = restApiId , stageName = stageName ) return { 'stage' : _convert_datetime_str ( stage ) } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
get api stage for a given apiid and stage name cli example: .