def METHOD_NAME(self, request, project_id, instance_id):
    inst_info = self.get_instance_info(instance_id)
    inst_config = json.loads(inst_info.config)
    metadata = inst_config.get('metadata') or {}
    params = {
        'name': metadata['name'],
        'namespace': metadata['namespace'],
        'category': inst_info.category,
    }
    labels = metadata.get('labels') or {}
    # 校验权限
    base_perm_views.InstancePerm.can_use_instance(
        request, project_id, inst_info.namespace, labels.get(constants.LABEL_TEMPLATE_ID)
    )
    params['cluster_id'] = labels.get(constants.LABEL_CLUSTER_ID)
    return params