Create TokenAttributeRule(s)
post
                    /v2/trust/{trustname}/attributerule
Create a list of TokenAttributeRule objects with or without sub objects: VirtualUser, Proxy, or NameId, or TokenAttribute(s) in the named {trustname} Trust document.
                Request
Supported Media Types
                - application/json
Path Parameters
                - 
                    trustname: string
                    
                    Name of the Trust document.
The list of TokenAttributeRule objects to be created that is sent through request body. Each TokenAttributeRule may or may not contain its sub objects: VirtualUser, Proxy, or NameId, or TokenAttribute
                
                
                
                Root Schema : schema
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        array- 
            Array of: 
                object  TokenAttributeRule
            
            TokenAttributeRule Model Object
Nested Schema : TokenAttributeRule
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectTokenAttributeRule Model Object
    
    
    
    
        Show Source
        - 
            attributes(optional): 
            array  attributes
            
            The list of all TokenAttribute sub objects
- 
            identifier: 
            string
            Identifier of a TokenAttributeRule. It is one of the two unique identifiers used to identify a TokenAttributeRuleExample:identifier1
- 
            issuername: 
            string
            Name of the token issuer of a TokenAttributeRule. It is one of the two unique identifiers used to identify a TokenAttributeRuleExample:http://abc.com
- 
            nameid(optional): 
            object  NameId
            
            NameId Model Object
- 
            proxy(optional): 
            object  Proxy
            
            Proxy Model Object.
- 
            virtualuser(optional): 
            object  VirtualUser
            
            VirtualUser Model Object.
Nested Schema : attributes
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayThe list of all TokenAttribute sub objects
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  TokenAttribute
            
            TokenAttribute Model Object
Nested Schema : NameId
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectNameId Model Object
    
    
    
    
        Show Source
        - 
            filter(optional): 
            array  filter
            
            Filter
- 
            mapping(optional): 
            object  AttributeMapping
            
            AttributeMapping Model Object.
- 
            name: 
            string
            Name of a NameIdExample:myTokenAttributeName1
Nested Schema : Proxy
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectProxy Model Object.
    
    
    
    
        Show Source
        - 
            proxyhost(optional): 
            string
            The host of a Proxy in a TokenAttributeRule
- 
            proxyport(optional): 
            string
            The port of a Proxy in a TokenAttributeRule
Nested Schema : VirtualUser
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectVirtualUser Model Object.
    
    
    
    
        Show Source
        - 
            defaultRoles(optional): 
            array  defaultRoles
            
            An array of default roles of a VirtualUser
- 
            enabled(optional): 
            string
            Allowed Values:[ "true", "false" ]Indicates if a VirtualUser is enabled or not.Example:true
- 
            tokenRoleAttributes(optional): 
            array  tokenRoleAttributes
            
            
- 
            tokenRoleMappings(optional): 
            array  tokenRoleMappings
            
            A list of TokenRoleMapping sub objects
Nested Schema : TokenAttribute
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectTokenAttribute Model Object
    
    
    
    
        Show Source
        - 
            filter(optional): 
            array  filter
            
            Filter
- 
            mapping(optional): 
            object  AttributeMapping
            
            AttributeMapping Model Object.
- 
            name: 
            string
            Name of a TokenAttributeExample:myTokenAttributeName1
Nested Schema : AttributeMapping
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectAttributeMapping Model Object.
    
    
    
    
        Show Source
        - 
            userAttribute: 
            string
            User attributeExample:myUserAttr1
- 
            userMappingAttribute: 
            string
            User mapping attribute.Example:myUserMappingAttr1
Nested Schema : tokenRoleMappings
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayA list of TokenRoleMapping sub objects
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  TokenRoleMapping
            
            TokenRoleMapping Model Object.
Nested Schema : TokenRoleMapping
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectTokenRoleMapping Model Object.
    
    
    
    
        Show Source
        - 
            mappingRoles: 
            array  mappingRoles
            
            List of role mappings.
- 
            tokenRole: 
            string
            Role of the token.Example:sampleTRole1
Nested Schema : mappingRoles
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayList of role mappings.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    Example:
    
    
['roleMapping1', 'roleMpping2']Example Request (applicaton/json)
                [{ 'issuername': 'issuer1',
     'identifier': 'identifier1',
     'nameid': {'nameidAttribute': 'nameidattr1',
                'mapping': {'userAttribute': 'userAttr1',
                            'userMappingAttribute': 'userMappingAttr1'},
                'filter': ['filter1','filter2']},
     'virtualuser': {'enabled': 'true',
                     'defaultRoles': ['defaultRole1','defaultRole2'],
                     'tokenRoleAttributes': ['attr1','attr2'],
                     'tokenRoleMappings': [{'tokenRole': 'tRole1',
                                            'mappingRoles': ['mRole1','mRole2']}]},
     'attributes': [{'name': 'attr1',
                     'mapping': {'userAttribute': 'userAttr1',
                                 'userMappingAttribute': 'userMAttr1'},
                     'filter': ['filter11','filter12']},
                    {'name': 'attr2',
                     'filter': ['filter21','filter22']}]
  }]Response
Supported Media Types
                - application/json
201 Response
successful operation
                
                
                    Root Schema : ResponseStatus
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectResponseStatus model object.
    
    
    
    
        Show Source
        - 
            MESSAGE(optional): 
            string
            Detail message of the response, if response is successful, its a confirmation, otherwise it is an error message indicating the root cause.Example:PolicySets [myPolicyset1, myPolicyset2] are successfully created.
- 
            STATUSCODE(optional): 
            string
            Allowed Values:[ "20001", "20002", "20003", "20004", "20005", "20011", "20012", "20013", "20014", "20021", "20023", "20024", "20032", "20033", "20034", "20035", "20042", "20043", "20044", "20051", "20052", "20053", "20054", "20055", "20061", "20062", "20063", "20064", "20065", "20071", "20072", "20073", "20074", "20075", "20081", "20082", "20083", "20084", "20085", "20091", "20092", "20093", "20094", "20095", "20101", "20102", "20103", "20104", "20105", "20111", "20112", "20113", "20114", "20115", "20121", "20122", "20123", "20124", "20125", "20131", "20132", "20133", "20134", "20135", "20141", "20142", "20143", "20144", "20145", "20151", "20152", "20153", "20154", "20155", "20161", "20162", "20163", "20164", "20165", "20171", "20172", "20173", "20174", "20175", "40001", "40002", "40003", "40004", "40011", "40012", "40013", "40014", "40021", "40023", "40024", "40032", "40033", "40042", "40043", "40044", "40051", "40052", "40053", "40054", "40061", "40062", "40063", "40064", "40071", "40072", "40073", "40074", "40081", "40082", "40083", "40084", "40091", "40092", "40093", "40094", "40101", "40102", "40103", "40104", "40111", "40112", "40113", "40114", "40121", "40122", "40123", "40124", "40131", "40132", "40133", "40134", "40141", "40142", "40143", "40144", "40151", "40152", "40153", "40154", "40161", "40162", "40163", "40164", "40171", "40172", "40173", "40174" ]OWSM Rest API status code for operations on various APIs. One can write tests and parse the status code based on the rules below. If you plan to process the status code programmatically, you can access the OWSM source file for the constants defined at: oracle.wsm.resources.rest.RestMessageID.java. Status Code Pattern:first digit from left indicates the operation status, 2=successful, 4=failed last digit indicate operation 1=POST, 2=PUT, 3=GET, 4=DELETE, 5=DELETE NONE. second, third, fourth digits from left are used for OWSM Rest API Resource types: 000=PolicySet, 001=PolicyReference, 002=ConfigOverride, 003=Configuration, 004=Repository (not used yet), 005=Trust, 006=Issuer, 007=TrustedKey, 008=KeyIdentifier, 009=RelyingParty, 010=AttributeRule, 011=Attribute, 012=VirtualUser, 013=RoleMapping, 014=Mapping, 015=NamedID, 016=DiscoveryInfo, 017=ProxyExample:20001
400 Response
User bad request, please correct input data and try again.
                
                
                    Root Schema : ResponseStatus
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectResponseStatus model object.
    
    
    
    
        Show Source
        - 
            MESSAGE(optional): 
            string
            Detail message of the response, if response is successful, its a confirmation, otherwise it is an error message indicating the root cause.Example:PolicySets [myPolicyset1, myPolicyset2] are successfully created.
- 
            STATUSCODE(optional): 
            string
            Allowed Values:[ "20001", "20002", "20003", "20004", "20005", "20011", "20012", "20013", "20014", "20021", "20023", "20024", "20032", "20033", "20034", "20035", "20042", "20043", "20044", "20051", "20052", "20053", "20054", "20055", "20061", "20062", "20063", "20064", "20065", "20071", "20072", "20073", "20074", "20075", "20081", "20082", "20083", "20084", "20085", "20091", "20092", "20093", "20094", "20095", "20101", "20102", "20103", "20104", "20105", "20111", "20112", "20113", "20114", "20115", "20121", "20122", "20123", "20124", "20125", "20131", "20132", "20133", "20134", "20135", "20141", "20142", "20143", "20144", "20145", "20151", "20152", "20153", "20154", "20155", "20161", "20162", "20163", "20164", "20165", "20171", "20172", "20173", "20174", "20175", "40001", "40002", "40003", "40004", "40011", "40012", "40013", "40014", "40021", "40023", "40024", "40032", "40033", "40042", "40043", "40044", "40051", "40052", "40053", "40054", "40061", "40062", "40063", "40064", "40071", "40072", "40073", "40074", "40081", "40082", "40083", "40084", "40091", "40092", "40093", "40094", "40101", "40102", "40103", "40104", "40111", "40112", "40113", "40114", "40121", "40122", "40123", "40124", "40131", "40132", "40133", "40134", "40141", "40142", "40143", "40144", "40151", "40152", "40153", "40154", "40161", "40162", "40163", "40164", "40171", "40172", "40173", "40174" ]OWSM Rest API status code for operations on various APIs. One can write tests and parse the status code based on the rules below. If you plan to process the status code programmatically, you can access the OWSM source file for the constants defined at: oracle.wsm.resources.rest.RestMessageID.java. Status Code Pattern:first digit from left indicates the operation status, 2=successful, 4=failed last digit indicate operation 1=POST, 2=PUT, 3=GET, 4=DELETE, 5=DELETE NONE. second, third, fourth digits from left are used for OWSM Rest API Resource types: 000=PolicySet, 001=PolicyReference, 002=ConfigOverride, 003=Configuration, 004=Repository (not used yet), 005=Trust, 006=Issuer, 007=TrustedKey, 008=KeyIdentifier, 009=RelyingParty, 010=AttributeRule, 011=Attribute, 012=VirtualUser, 013=RoleMapping, 014=Mapping, 015=NamedID, 016=DiscoveryInfo, 017=ProxyExample:20001
500 Response
Operation failed with unexpected error.
                
                
                    Root Schema : ResponseStatus
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectResponseStatus model object.
    
    
    
    
        Show Source
        - 
            MESSAGE(optional): 
            string
            Detail message of the response, if response is successful, its a confirmation, otherwise it is an error message indicating the root cause.Example:PolicySets [myPolicyset1, myPolicyset2] are successfully created.
- 
            STATUSCODE(optional): 
            string
            Allowed Values:[ "20001", "20002", "20003", "20004", "20005", "20011", "20012", "20013", "20014", "20021", "20023", "20024", "20032", "20033", "20034", "20035", "20042", "20043", "20044", "20051", "20052", "20053", "20054", "20055", "20061", "20062", "20063", "20064", "20065", "20071", "20072", "20073", "20074", "20075", "20081", "20082", "20083", "20084", "20085", "20091", "20092", "20093", "20094", "20095", "20101", "20102", "20103", "20104", "20105", "20111", "20112", "20113", "20114", "20115", "20121", "20122", "20123", "20124", "20125", "20131", "20132", "20133", "20134", "20135", "20141", "20142", "20143", "20144", "20145", "20151", "20152", "20153", "20154", "20155", "20161", "20162", "20163", "20164", "20165", "20171", "20172", "20173", "20174", "20175", "40001", "40002", "40003", "40004", "40011", "40012", "40013", "40014", "40021", "40023", "40024", "40032", "40033", "40042", "40043", "40044", "40051", "40052", "40053", "40054", "40061", "40062", "40063", "40064", "40071", "40072", "40073", "40074", "40081", "40082", "40083", "40084", "40091", "40092", "40093", "40094", "40101", "40102", "40103", "40104", "40111", "40112", "40113", "40114", "40121", "40122", "40123", "40124", "40131", "40132", "40133", "40134", "40141", "40142", "40143", "40144", "40151", "40152", "40153", "40154", "40161", "40162", "40163", "40164", "40171", "40172", "40173", "40174" ]OWSM Rest API status code for operations on various APIs. One can write tests and parse the status code based on the rules below. If you plan to process the status code programmatically, you can access the OWSM source file for the constants defined at: oracle.wsm.resources.rest.RestMessageID.java. Status Code Pattern:first digit from left indicates the operation status, 2=successful, 4=failed last digit indicate operation 1=POST, 2=PUT, 3=GET, 4=DELETE, 5=DELETE NONE. second, third, fourth digits from left are used for OWSM Rest API Resource types: 000=PolicySet, 001=PolicyReference, 002=ConfigOverride, 003=Configuration, 004=Repository (not used yet), 005=Trust, 006=Issuer, 007=TrustedKey, 008=KeyIdentifier, 009=RelyingParty, 010=AttributeRule, 011=Attribute, 012=VirtualUser, 013=RoleMapping, 014=Mapping, 015=NamedID, 016=DiscoveryInfo, 017=ProxyExample:20001