全部产品
Search
文档中心

资源编排:ALIYUN::CloudSSO::SCIMServerCredential

更新时间:Jul 18, 2024

ALIYUN::CloudSSO::SCIMServerCredential类型用于创建SCIM密钥。

语法

{
  "Type": "ALIYUN::CloudSSO::SCIMServerCredential",
  "Properties": {
    "Status": String,
    "DirectoryId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DirectoryId

String

目录ID。

Status

String

SCIM密钥状态。

取值:

  • Enabled:启用。

  • Disabled:禁用。

返回值

Fn::GetAtt

  • CredentialId:SCIM密钥ID。

  • CredentialSecret:SCIM密钥。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DirectoryId:
    Description:
      en: The ID of the directory.
    Required: true
    Type: String
  Status:
    AllowedValues:
    - Enabled
    - Disabled
    Default: Enabled
    Description:
      en: 'The new status of the SCIM credential. Valid values:

        - Enabled: The SCIM credential is enabled.

        - Disabled: The SCIM credential is disabled.

        The default value is Enabled.'
    Required: false
    Type: String
Resources:
  ScimServerCredential:
    Properties:
      DirectoryId:
        Ref: DirectoryId
      Status:
        Ref: Status
    Type: ALIYUN::CloudSSO::SCIMServerCredential
Outputs:
  CredentialId:
    Description: The ID of the SCIM credential.
    Value:
      Fn::GetAtt:
      - ScimServerCredential
      - CredentialId
  CredentialSecret:
    Description: The secret of the SCIM credential.
    Value:
      Fn::GetAtt:
      - ScimServerCredential
      - CredentialSecret
                        

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Status": {
      "Type": "String",
      "Description": {
        "en": "The new status of the SCIM credential. Valid values:\n- Enabled: The SCIM credential is enabled.\n- Disabled: The SCIM credential is disabled.\nThe default value is Enabled."
      },
      "AllowedValues": [
        "Enabled",
        "Disabled"
      ],
      "Required": false,
      "Default": "Enabled"
    },
    "DirectoryId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the directory."
      },
      "Required": true
    }
  },
  "Resources": {
    "ScimServerCredential": {
      "Type": "ALIYUN::CloudSSO::SCIMServerCredential",
      "Properties": {
        "Status": {
          "Ref": "Status"
        },
        "DirectoryId": {
          "Ref": "DirectoryId"
        }
      }
    }
  },
  "Outputs": {
    "CredentialId": {
      "Description": "The ID of the SCIM credential.",
      "Value": {
        "Fn::GetAtt": [
          "ScimServerCredential",
          "CredentialId"
        ]
      }
    },
    "CredentialSecret": {
      "Description": "The secret of the SCIM credential.",
      "Value": {
        "Fn::GetAtt": [
          "ScimServerCredential",
          "CredentialSecret"
        ]
      }
    }
  }
}